Power Control¶
vboxmanage startvm ${VM_UUID} --type headless
vboxmanage controlvm ${VM_UUID} acpipowerbutton
vboxmanage controlvm ${VM_UUID} poweroff
vboxmanage controlvm ${VM_UUID} reset
Power off All VMs¶
vboxmanage list runningvms \
| grep -Eo '\{[0-9a-f-]{36}\}' \
| sed -re 's/^\{//;s/\}$//' \
| xargs -t -L 1 -I '{}' vboxmanage controlvm {} acpipowerbutton