CentOS 6.0 fix for VBoxGuestAdditions installation for VirtualBox
2013-06-14 09:44
465 查看
安装virtualbox增强功能的时候,出现
Building the main Guest Additions module [FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong)
的错误,google了一下找到以下解决方案。
原网址:http://vbtechsupport.com/1139/
Virtualbox is a useful tool for testing various Linux and Windows operating systems in a virtualized environment. However, while testing mymodified Centmin Nginx installation script on CentOS 6.0 64bit, I came across an issue with installing VBoxGuestAddition
components – the VirtualBox Guest Additions’ kernel modules failed to get built. Prior to CentOS 6.0, you could fix this by ensuring kernel-headers and other prerequisites were installed first.
The error message:
If you check log /var/log/vboxadd-install.log you’ll see
Once you do that, reinstall the VirtualBox Guest Additions
Building the main Guest Additions module [FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong)
的错误,google了一下找到以下解决方案。
原网址:http://vbtechsupport.com/1139/
Virtualbox is a useful tool for testing various Linux and Windows operating systems in a virtualized environment. However, while testing mymodified Centmin Nginx installation script on CentOS 6.0 64bit, I came across an issue with installing VBoxGuestAddition
components – the VirtualBox Guest Additions’ kernel modules failed to get built. Prior to CentOS 6.0, you could fix this by ensuring kernel-headers and other prerequisites were installed first.
yum -y install dkms kernel* gcc
The error message:
sh ./VBoxLinuxAdditions-amd64.run 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. Doing non-kernel setup of the Guest Additions[ OK ] Installing the Window System drivers Installing X.Org Server 1.7 modules[ OK ] Setting up the Window System to use the Guest Additions[ OK ] You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions. Installing graphics libraries and desktop services components[ OK ] |
*** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop. |
The Fix
However, with CentOS 6.0 the above solution didn’t work as it seems the YUM mirrors aren’t all updated yet so you have specify the exact kernel-header version during installyum -y install dkms gcc kernel-headers-`uname -r` kernel-devel-`uname -r` |
sh ./VBoxLinuxAdditions-amd64.run Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module[ OK ] Building the shared folder support module[ OK ] Building the OpenGL support module[ OK ] Doing non-kernel setup of the Guest Additions[ OK ] Starting the VirtualBox Guest Additions [ OK ] Installing the Window System drivers Installing X.Org Server 1.7 modules[ OK ] Setting up the Window System to use the Guest Additions[ OK ] You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions. Installing graphics libraries and desktop services components[ OK ]
相关文章推荐
- centos 7 virtualbox guest additions installation centos minimal
- howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL).
- (1) Centos 7 install VirtualBox guest additions
- Installing Guest Additions in VirtualBox for an Ubuntu Server Guest
- Linux # Virtual Box VBoxGuestAdditions.iso
- VirtualBox+CentOS6.5安装增强功能包 - Building the main Guest Additions module [失败]
- CENTOS 5 virtualbox additions installation and ...
- VirtualBox Guest Additions on Fedora 21/20, CentOS/RHEL 7.1/6.6/5.11
- Install VirtualBox Guest Additions on Fedora 16/15, CentOS/RHEL 6/5.7
- How to install VirtualBox Guest Additions in CentOS 6(在CentOS中安装VirtualBox增强功能)
- VirtualBox+CentOS6.6安装增强功能包 - Building the main Guest Additions module [失败]
- 在Ubuntu11.10中使用VirtualBoxGuestAdditions.iso 启用VBox中的Windows虚拟机
- For RAC, Vmware or Virtualbox? I choose VBox!
- virtualbox KALI install guest additions failed because linux-headers-*
- centos下virtualbox里面xp 安装VBoxGuestAdditions
- VirtualBox Guest Additions
- 安装Virtualbox Guest Additions(解决Virtualbox中Ubuntu分辨率过小)
- For RAC, Vmware or Virtualbox? I choose VBox!
- 虚拟机vmwaretools+virtualboxguestadditions