Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Jenkins installed in a LXC container.

In one Jenkins job, I want to test my project deployment with vagrant + Virtualbox.

So, I try to execute VirtualBox in my LXC container.

First difficulty, load vbox kernel modules. To fix this first issue, I've appended that line in my lxc container configuration :

# vboxdrv
lxc.cgroup.devices.allow = c 10:59 rwm

With this line, I can execute :

root@jenkins-lxc:/tmp/test1# /etc/init.d/vboxdrv setup
[ ok ] Stopping VirtualBox kernel modules:.
[ ok ] Uninstalling old VirtualBox DKMS kernel modules:.
[ ok ] Trying to register the VirtualBox kernel modules using DKMS:.
[ ok ] Starting VirtualBox kernel modules:.

Next issue :

root@jenkins-lxc:/tmp/test1# vboxmanage  hostonlyif create 
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component
HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 68 of file VBoxManageHostonly.cpp

I don't know how to fix this last issue "failed to open /dev/vboxnetctl: No such file or directory".

Have you some tips to fix it ?

share|improve this question
Why run VirtualBox in a LXC container? – sciurus Oct 6 '13 at 23:40
I use vagrant and I execute some task for installation application server. I would like append continuous test against this task. – Stéphane Klein Nov 20 '13 at 13:34

You don't need virtualbox to use vagrant. Instead of running your tests in a VM in virtualbox, run them in another container and use vagrant to manage it with vagrant-lxc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.