is it possible to run virtualbox inside a docker container

前端 未结 3 1148
花落未央
花落未央 2020-12-24 01:57

I tried running the container in privileged mode, but still the vboxdrv cannot be loaded.

I get

WARNING: The vboxdrv kernel module is not loaded. Eit         


        
3条回答
  •  离开以前
    2020-12-24 02:47

    Edited at 2016-03-27 12:54 UTC

    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.

    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

    For the details, please see my Dockerfile and run.sh

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

提交回复
热议问题