virtualbox - RayGutt/PersonalWiki GitHub Wiki
# Start, headless (you need to ssh)
VBoxManage startvm "es7-node-0" --type=**headless**
ssh matt@es7-node-0
VBoxManage list vms
VBoxManage list runningvms
# Stop
VBoxManage controlvm 'es7-node-0' acpipowerbutton
# Doesnt't work but isn't it nice ?
for guest in $(VBoxManage list runningvms | awk '{ print $1 }')
do
VBoxManage controlvm $guest acpipowerbutton
done
Transfer my vms to and from my USB stick:
# from the computer to the USB stick
rsync -avh /home/VM/es_cluster /media/matthieu/extSSD/VM/
Using snapshots, you will only have to transfer the snapshot, because the main vm files will remain unchanged.