What is VirtuaBox?

VirtualBox is an open source x86 emulator, on Devuan is not possible to install because of systemd dependencies, for this reason I recompiled from source. This post contains an how-to for setting up and using VirtualBox.

Installation

Add this to your sources.list:

Terminal

deb http://hezeh.org/packages ascii main contrib non-free
  

At this point update your packges list and install:

Terminal

sudo apt-get update && sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox
  

virtualbox on devuan

Server

You can start VirtualBox in Headless mode using VBoxHeadless like this:

Terminal

VBoxHeadless -startvm "virtual_machine_name"
  

You should run this inside a screen instance and detach the screen after starting the VM with Ctrl+a d. At least in version 4.0.x you won’t need to use screen. Just start the vm with:

Terminal

VBoxManage startvm "virtual_machine_name" --type headless