Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.06 KB

virtualbox-cli-commands.md

File metadata and controls

50 lines (41 loc) · 1.06 KB

ALL YOU NEED TO WORK WITH VIRTUALBOX

Global virtualbox property

  • to change default virtualbox machine location:
vboxmanage setproperty machinefolder /path/to/directory

Management of virtualbox machines

  • to list all vms and running vms:
VBoxManage list vms
VBoxManage list runningvms
  • shutdown, reset a vm:
VBoxManage controlvm <uuid|name> poweroff
VBoxManage controlvm <uuid|name> reset
  • to start a vm in CLI and GUI:
VBoxManage startvm <uuid|name> --type headless
VBoxManage startvm <uuid|name>
  • to get back up from vms:
VBoxManage export <uuid|name> -o <backup-name>.ova
  • to import an .ova machine:
VBoxManage import <backup-name>.ova
  • to see all the virtual box ostypes:
VBoxManage list ostypes
  • if your virtual machine is running, and you want to close its window and trying to bring it up in headless mode, first save the state and then bring it up headless:
VBoxManage controlvm <uuid|name> savestate
VBoxManage startvm <uuid|name> --type headless