问题描述
我尝试以特权模式运行容器,但仍然无法加载vboxdrv。
I tried running the container in privileged mode, but still the vboxdrv cannot be loaded.
我得到
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.11.0-22-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
推荐答案
在 -27 12:54 UTC
我有完全相同的问题,我可以成功地将最新版本的VirtualBox与扩展包和phpvirtualbox在CentOS 7上。
I have the exact same issue and I can successfully dockerize the latest version of VirtualBox with the Extension Pack and phpvirtualbox on CentOS 7.
你必须安装大量的依赖关系,如kernel-devel,make,gcc和dkms。在完成docker构建之后,你必须运行这些标志的$ docker image图像,这个标志是 - privileged = true -v / dev /:/ dev /
。您需要标记 - privileged = true
以1.10.3的docker版本运行图像
You have to install tons of dependencies such as kernel-devel, make, gcc and dkms. After finishing the docker build, you need the flag --privileged=true
to run the image with the docker version of 1.10.3
有关详细信息,请参阅我的和
有关详细信息,请查看特别是,,和
For the details, please have a look my repository especially Makefile
, virtualbox.Dockerfile
, vboxwebsrv.Dockerfile
and phpvirtualbox.Dockerfile
这篇关于是否可以在docker容器内运行virtualbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!