There are times when you need to remotely shutdown any running virtual machines on a linux-box. This is how to do it.
- Ssh to the host:
# ssh sorin@lanfear - Su to user running the vm:
# su - - List all vms:
# vboxmanage list vms
vm1
vm2
... - Shutdown vm1:
# vboxmanage controlvm "vm1" poweroff - Start vm2:
# vboxmanage startvm "vm2" --type gui
# vboxmanage startvm "vm2" --type headless