ESXi Remote command exited with '1': vim-cmd vmsvc/power.off 954 with latest source of Packer

37 views
Skip to first unread message

Steven Langlois

unread,
Oct 10, 2016, 1:47:10 PM10/10/16
to Packer
I downloaded and compiled the latest master to pick up the fix for 

https://github.com/mitchellh/packer/issues/3087

https://github.com/mitchellh/packer/pull/3050


However, in so doing, I am getting an error when the VMware VM is being shut down


==> vmware-iso: Gracefully halting virtual machine...

2016/10/10 12:09:56 packer: 2016/10/10 12:09:56 starting remote command: /sbin/halt -h -p

2016/10/10 12:09:56 packer: 2016/10/10 12:09:56 Remote command exited without exit status or exit signal.

2016/10/10 12:09:56 packer: 2016/10/10 12:09:56 opening new ssh session

2016/10/10 12:09:56 packer: 2016/10/10 12:09:56 starting remote command: vim-cmd vmsvc/power.getstate 954

2016/10/10 12:09:57 ui: ==> vmware-iso: Stopping virtual machine...

==> vmware-iso: Stopping virtual machine...

2016/10/10 12:09:57 packer: 2016/10/10 12:09:57 opening new ssh session

2016/10/10 12:09:57 packer: 2016/10/10 12:09:57 starting remote command: vim-cmd vmsvc/power.off 954

2016/10/10 12:09:58 packer: 2016/10/10 12:09:58 Remote command exited with '1': vim-cmd vmsvc/power.off 954

2016/10/10 12:09:58 ui error: ==> vmware-iso: Error stopping VM: 'vim-cmd vmsvc/power.off 954'

==> vmware-iso:

==> vmware-iso: Stdout: Powering off VM:

==> vmware-iso:

==> vmware-iso:

==> vmware-iso: Stderr: Power off failed

==> vmware-iso:

==> vmware-iso: Error stopping VM: 'vim-cmd vmsvc/power.off 954'

==> vmware-iso:

2016/10/10 12:09:58 ui: ==> vmware-iso: Unregistering virtual machine...


If I go back to 0.10.2 I do not get this error but of course I still have the issue where the output directory need to exist on the local machine.


I searched for this error in the group but could not find it so apologies if this is already a known issue.


Thank you.

Matthew Hooker

unread,
Oct 10, 2016, 3:23:12 PM10/10/16
to Packer
Thanks for the report. I don't believe we know of this issue.

Would you mind opening an issue on github? It would be ideal if you could make a gist of the entire debug output as well as provide a packer.json file that can reproduce this.

I briefly looked through `git log -p v0.10.2..HEAD builder/vmware/iso` and didn't see anything obvious, so worth investigating more
Reply all
Reply to author
Forward
0 new messages