1、安装virtualbox:
1> 下载VirtualBox的RHEL软件库配置文件:
2> 安装RPMForge.
下载http://rpmfind.net/linux/rpm2html/search.php?query=rpmforge-release(x86-64)
3> 安装DKMS(Dynamic Kernel Module)
4> 安装开发环境和内核:
5> 安装qt和qt-
6> 安装VirtualBox我是先在官网下载下来的,版本是VirtualBox-4.3-4.3.26_98988_el7-1.x86_64.rpm, https://www.virtualbox.org/wiki/Downloads
7> 安装扩展:
这个地方就出问题了。
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackFile, interface IExtPackFile, callee nsISupports
VBoxManage: error: Context: "Install(fReplace, NULL, ptrProgress.asOutParam())" at line 1140 of file VBoxManageMisc.cpp
但此时系统中已有virtualbox了,所以说这个问题可以忽略,继续接下来的。
这里又出现了错误:
Building the VirtualBox Guest Additions kernel modules [FAILED]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them.
查看错误日志:
/tmp/vbox.o/Makefile.include.header:97: ***
Error: unable to find the source of your current Linux kernel.Specify KERN_DIR=<directory> and run make again. Stop.
解决办法:
重启
大功告成!