Skip to content

Instantly share code, notes, and snippets.

@antnzr
Created August 14, 2020 06:21
Show Gist options
  • Save antnzr/e7c99df581823c749e684cc81c548de3 to your computer and use it in GitHub Desktop.
Save antnzr/e7c99df581823c749e684cc81c548de3 to your computer and use it in GitHub Desktop.

Revisions

  1. antnzr created this gist Aug 14, 2020.
    16 changes: 16 additions & 0 deletions vbox_cli
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # a list of the VMs
    VBoxManage list vms

    # to run the "Ubuntu Server" VM
    VBoxManage startvm "Ubuntu Server" --type headless

    # to pause that VM
    VBoxManage controlvm "Ubuntu Server" pause --type headless

    # to restart that paused VM
    VBoxManage controlvm "Ubuntu Server" resume --type headless

    # to shut down the VM
    VBoxManage controlvm "Ubuntu Server" poweroff --type headless