vmclose (260B)
1 #!/usr/bin/env bash 2 3 VM=${1:-razoredge} 4 5 # pause vms 6 if type VBoxManage > /dev/null; then 7 if VBoxManage controlvm "$VM" savestate 8 then 9 notify-send "$VM saved" 10 else 11 notify-send "$VM already saved" 12 fi 13 fi 14 15 sleep 5 16 pkill VirtualBox