是否可以在docker容器内运行virtualbox [英] is it possible to run virtualbox inside a docker container

查看:1081
本文介绍了是否可以在docker容器内运行virtualbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试以特权模式运行容器,但仍然无法加载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 MUST run the docker image with these flags --privileged=true -v /dev/:/dev/. you need the flag --privileged=true to run the image with the docker version of 1.10.3

<罢工>有关详细信息,请参阅我的 Dockerfile run.sh

有关详细信息,请查看我的存储库特别是 Makefile virtualbox.Dockerfile vboxwebsrv.Dockerfile phpvirtualbox.Dockerfile

For the details, please have a look my repository especially Makefile, virtualbox.Dockerfile, vboxwebsrv.Dockerfile and phpvirtualbox.Dockerfile

这篇关于是否可以在docker容器内运行virtualbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆