Skip to content

Instantly share code, notes, and snippets.

@mortymacs
Last active February 21, 2018 07:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mortymacs/5ccd6985e888eb44a8b86adf2dcafef3 to your computer and use it in GitHub Desktop.
Save mortymacs/5ccd6985e888eb44a8b86adf2dcafef3 to your computer and use it in GitHub Desktop.
VirtualBox Useful Commands

Create vm

VBoxManage createvm --name "Debian 9" --register

Modify vm

VBoxManage modifyvm "Debian 9" --memory 1024

Start vm

VBoxManage startvm "Debian 9"

Start vm (without gui)

VBoxManage startvm "Debian 9" --type headless

Stop vm

VBoxManage controlvm "Debian 9" poweroff soft

Snapshot vm

VBoxManage snapshot "Debian 9" take "Aug 1 - Debian 9"

Restore vm

VBoxManage snapshot "Debian 9" restore ""Aug 1 - Debian 9""

List vm

VBoxManage list vms

List of running vm

VBoxManage list runningvms

Reference:

https://www.virtualbox.org/manual/ch08.html

https://www.virtualbox.org/manual/ch07.html#vboxheadless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment