Virtual Box

From The World according to Vissie
Jump to navigation Jump to search

Install

This worked for me on Arch Linux:

pacaur -S linux-headers
pacaur -S virtualbox virtualbox-guest-iso

You will be ask for installing the core-packages:

for linux kernel choose virtualbox-host-modules-arch for other kernels choose virtualbox-host-dkms

sudo modprobe vboxguest
sudo modprobe vboxvideo
sudo modprobe vboxsf
sudo modprobe vboxdrv
sudo gpasswd -a username vboxusers

If all fails, reboot.

CLI

https://www.oracle.com/technetwork/articles/servers-storage-admin/manage-vbox-cli-2264359.html List all VMs

VBoxManage list vms

List all running VMs

VBoxManage list runningvms

List all running VMs with extended information

VBoxManage list runningvms

Start VM in headless mode

VBoxManage startvm MyVM --type headless

Debian Stretch

I had issues using the packages version.

sudo apt-get install linux-headers-amd64 linux-headers-4.9.0-7-amd64
wget https://download.virtualbox.org/virtualbox/5.2.18/virtualbox-5.2_5.2.18-124319~Debian~stretch_amd64.deb