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

About SoCRaT

Systems 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: Logo

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

Facebook photo

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

Connecting to %s