分类: LINUX
2017-04-27 22:25:27
7 安装扩展: 未验证
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.16-95972.vbox
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
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=
解决办法:
yum install kernel
yum install kernel-devel
yum install kernel-headers
yum install gcc*
yum install make
reboot
/etc/init.d/vboxdrv setup