在ubuntu 16.04下了docker, 装了docker-machine和virualbox,卡在下面这个错误
$ sudo docker-machine create --driver virtualbox myvm3
Running pre-create checks...
Error with pre-create check: "We support Virtualbox starting with version 5.
Your VirtualBox install is \"
WARNING: The vboxdrv kernel module is not loaded.
Either there is no module available for the current kernel (4.8.0-56-generic) or it failed to load.
Please recompile the kernel module and install it by sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.\\n5.1.22r115126\".
Please upgrade at https://www.virtualbox.org"
网上搜到的解决方法是/etc/rc.d/vboxdrv setup
,可是我都没这个vboxdrv。还好搜包的时候看到这么一句。
virtualbox-dkms - x86 virtualization solution - kernel module sources for dkms
那就装一下额,意外的好了 – –
所以这个问题解决方法是
$ sudo apt-get install virtualbox-dkms