Created
November 11, 2012 20:22
-
-
Save NapoleonWils0n/4056136 to your computer and use it in GitHub Desktop.
macosx: VirtualBox command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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