Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 20:22
Show Gist options
  • Save NapoleonWils0n/4056136 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4056136 to your computer and use it in GitHub Desktop.
macosx: VirtualBox command line
#!/bin/sh
# VirtualBox command line
#|------------------------------------------------------------------------------
#| start virtual machine from the command line
#|------------------------------------------------------------------------------
VBoxManage startvm virtualMachineName
# eg
VBoxManage startvm debian
#|------------------------------------------------------------------------------
#| list virtual machnes
#|------------------------------------------------------------------------------
VBoxManage list vms
#|------------------------------------------------------------------------------
#| Pause and resume the virtual machine
#|------------------------------------------------------------------------------
# pause the virtual machine
VBoxManage controlvm virtualMachineName pause
#eg
VBoxManage controlvm debian pause
# resume the virtual machine
VBoxManage controlvm virtualMachineName resume
# eg
VBoxManage controlvm debian pause
#|------------------------------------------------------------------------------
#| Save the virtual machine
#|------------------------------------------------------------------------------
VBoxManage controlvm virtualMachineName savestate
# eg
VBoxManage controlvm debian savestate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment