Skip to content

Instantly share code, notes, and snippets.

@morteza-mori
Forked from mortymacs/vbox-cli-manual.md
Created August 1, 2017 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morteza-mori/60d7177f4235e7a93b0d85bc46065e7b to your computer and use it in GitHub Desktop.
Save morteza-mori/60d7177f4235e7a93b0d85bc46065e7b 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 runningvm

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