Linux localhost 3.13.0-24-generic
#46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
服务器上的主机,没有桌面端
virtualbox:
virtualbox-5.0_5.0.4-102546~Ubuntu~trusty_amd64
已安装
root@localhost:~/workspace/jenkins-docker-ansible# VBoxManage --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.13.0-24-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.
5.0.4r102546
root@localhost:~/workspace/jenkins-docker-ansible# sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
root@localhost:~/workspace/jenkins-docker-ansible#
原因是没有启动virtualbox,但是启动命令默认是开启图形化界面的,主机没有图形化界面。该如何解决这个问题?
Masalah selesai.
Maklumat berikut telah dilaporkan semasa melaksanakan
sudo /etc/init.d/vboxdrv setup
:Kompil semula gagal, kemudian saya menyemak konfigurasi hos dan mendapati
gcc
,make
dan perisian lain tidak dipasangMaka itu sahaja.
Permulaan bukan desktop
Rujuk perkara berikut:
Gunakan baris arahan untuk memulakan mesin maya VirtualBox
Permulaan baris arahan VirtualBox
Baris arahan VirtualBox untuk mencipta dan mengurus mesin maya