Setup VirtualBox in Devuan

I played with QEMU for few hours and previous VirtualBox experince made me back to it.  QEMU’s virtual machine was sloppy.


Find the header package of current kernel version of the system. ‘ uname -a’ will show the version number of kernel image.

In my Devuan, the header pacakge is linux-headers-3.16.0-4-amd64

$ sudo aptitude install linux-headers-3.16.0-4-amd64

Install VirtualBox packages

$ sudo aptitude install virtualbox virtualbox-qt virtualbox-dkms

Check the kernel modules of VirtualBox are loaded.

$ lsmod | grep
vboxpci 23077 0
vboxnetadp 25443 0
vboxnetflt 23324 1
vboxdrv 340067 4 vboxnetadp,vboxnetflt,vboxpci

Add the user to vboxusers group. This is critical part of the VirtualBox operation.

$ sudo adduser user_name vboxusers

There are VirtualBox tutorials in Linux that explain how to creat a virtual machine. So I would not write here.

Start VBoxMange in a console or click VirtualBox on the popup menu of your window manager.



I used devuan-jessie-netboot-amd64-alpha2.iso to create a Devuan virtual machine. At the end of package installation of Select and install software section, I a failure message which was trivial one.

I chose GRUB installation and it was successful.


Assign external IP address to a virtual machine

Default network adapter for the guest (virtual machine) is NAT which separates the guest machine from the host’s private network.  The link explains various network setting of the guest machine.(

I uses Briged Adapter because it’s easy to set up. Start or activate the Virtual Box Manager, select the guest machine. If the machine is running, power it off.

Select Network menu.

Select Adapter 1.

Change NAT to Briged Adapter in ‘Attached to’. Assign an active network device of the host, i.e. eth0. To find active network devices, run ‘sudo ifconfig’.  For example, here is my result.

$ sudo ifconfig
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536

inet netmask

Next time you start the guest machine, it will have a private IP address automatically, i.e.

Start a virtual machine in a console

You can skip the two steps of starting a virtual machine. Normally VBoxManage starts the Virtual Box Manager then you select a virtual machine, press Run.

Below command will show all virtual machines. In my case I had one virtual machine.

$ VBoxManage list vms
“alpha1” {5a818ca5-dbf6-4ba4-95f8-030b1b4aa6e5}

VBoxMange startvm virtual_machine_name launces the virtual machine.

$ VBoxManage startvm alpha1
Waiting for VM “alpha1” to power on…
VM “alpha1” has been successfully started.

I made in ~/bin directory.

VBoxManage startvm alpha1


About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s