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
服務(wù)器上的主機,沒有桌面端
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,但是啟動命令默認是開啟圖形化界面的,主機沒有圖形化界面。該如何解決這個問題?
歡迎選擇我的課程,讓我們一起見證您的進步~~
Problem solved.
The following information was reported when executingsudo /etc/init.d/vboxdrv setup
:
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
Recompile failed, then I checked the configuration of the host and found that gcc
,make
and other software were not installed
sudo apt-get install gcc make build-essential
Then that’s it.
Non-desktop startup
Refer to the following:
Use the command line to start VirtualBox virtual machine
VirtualBox command line startup
VirtualBox command line to create and manage virtual machines