Skip to content

Instantly share code, notes, and snippets.

@bhubr
Last active December 22, 2022 09:55
Show Gist options
  • Save bhubr/b3f38de9f38480e758a971b24ff16e19 to your computer and use it in GitHub Desktop.
Save bhubr/b3f38de9f38480e758a971b24ff16e19 to your computer and use it in GitHub Desktop.
VBoxManage quick cheat-sheet (run headless VMs)

VBoxManage

List VMs

VBoxManage list vms

Result:

"Alpine Linux" {fa8e791f-9668-4d7b-a1a1-c5d93304bb9d}
"Ubuntu 20.04 blank" {e3c9cea6-b601-4a59-9d29-e755e54e1514}

Start VM in headless mode

VBoxManage startvm "Ubuntu 20.04 blank" --type=headless

Result:

Waiting for VM "Ubuntu 20.04 blank" to power on...
VM "Ubuntu 20.04 blank" has been successfully started.

Stop VM

ACPI shutdown (clean shutdown)

VBoxManage controlvm "Ubuntu 20.04 blank" acpipowerbutton

Power off (immediate shutdown)

VBoxManage controlvm "Ubuntu 20.04 blank" poweroff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment