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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -