Frequently-used VirtualBox Commands

You might be surprised that VirtualBox can be perfectly managed from the command line, you can create VMs, modify VM settings, startup/shutdown VMs, take snapshots …etc

Here is the collection of commands I commonly use for my VirtualBox VMs:

  • “VBoxManage list vms” –> List the existing VMs as well as their IDs
  • “nohup VBoxHeadless -s VM_NAME &” –> Start the VM in the background, and isn’t dependent on your session, i.e. when you logout, the VM will not terminate. Note: This command starts the VRDP server automatically (available only with the extension pack installed), even if it’s not enabled
  • “VBoxManage controlvm VM_NAME poweroff” –> Shut the VM down
  • “VBoxManage snapshot VM_NAME take snapshot_name” –> Take a snapshot of your VM
Advertisements

About SoCRaT

Software Engineer, OSS & Linux Geek
This entry was posted in VirtualBox and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s