Skip to content

Instantly share code, notes, and snippets.

@mkouhei
Created August 23, 2017 22:17
Show Gist options
  • Select an option

  • Save mkouhei/5d9cd30627f8e983d7ba3fa41ed7a8aa to your computer and use it in GitHub Desktop.

Select an option

Save mkouhei/5d9cd30627f8e983d7ba3fa41ed7a8aa to your computer and use it in GitHub Desktop.
#!/bin/sh -e
vmname=$1
VBoxManage showvminfo $vmname | grep State: | grep -q 'powered off' || ( echo "VM: $vmname is not powered off." ; exit 1 )
VBoxManage startvm $vmname --type gui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment