Skip to content
GitHub

Virtualbox


VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.

Download newest release from Virtualbox.org

sudo apt update && sudo apt upgrade -y
sudo apt install build-essential dkms linux-headers-$(uname -r)

Mount the Guest Additions and run autorun.sh.

When no USB-device is reported to send to vm

Section titled “When no USB-device is reported to send to vm”
sudo adduser $USER vboxusers

Example

DescriptionCommandOption(s)
List All VMSVBoxManage list vms-
List running VMSVBoxManage list runningvmsMore details add -l
Show VM PropertiesVBoxManage showvminfo <vm>-
Start VM (Not HeadLess)VBoxManage startvm <vm>--type headless
Stop Time Sync Between Host and ClientVBoxManage setextradata <vm> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"-
Send ACPI Shutdown SignalVBoxManage controlvm <vm> acpipowerbutton-
PowerOff VMVBoxManage controlvm <vm> poweroff-
Reset VMVBoxManage controlvm <vm> reset-
Pauze VMVBoxManage controlvm <vm> pause-
Resume VMVBoxManage controlvm <vm> resume-
MemoryVBoxManage modifyvm <vm> --memory 1024-
CPUsVBoxManage modifyvm —cpus 4`-

For example running Ubuntu Server headless with Virtualbox on top, you can install xorg (sudo apt install xorg) to be able to use SSH and manage the interface.