virtualbox - packer - cannot shutdown virtual machine -


i trying close virtual machine using command

"shutdown_command": "echo 'packer' | sudo -s shutdown -p now"

but returns:

virtualbox-ovf: sudo: shutdown: command not found

how shutdown vm ?

i not sure how created packer user (btw, vagrant user, not packer) user not able find shutdown command, path variable might have been unset.

shutdown under /sbin or /usr/sbin (depending distros) fix issue should able run

"shutdown_command": "echo 'packer' | sudo -s /sbin/shutdown -p now" 

if not, check shutdown installed (whereis shutdown) , replaced location


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -