#sudo sh ./VBoxLinuxAdditions.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.
#gedit /var/log/vboxadd-install.log 内容
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
安装GCC
#yum install gcc
# yum install gcc kernel-devel kernel-headers
重启。
再次安装VBoxLinuxAdditions,OK。
相关文章
- 在VirtualBox中安装了Ubuntu后,Ubuntu的屏幕分辨率非常小,操作非常不便。通过安装VirtualBox提供的“增强功能组件”,-摘自网络
- Eclipse中安装反编译工具Fernflower(Enhanced Class Decompiler)
- 虚拟机中安装多台Linux (Oracle VM VirtualBox)
- 在VirtualBox中安装ArchLinux
- 虚拟机中VMware tools工具的安装
- VirtualBox中安装Ubuntu虚拟机
- 虚拟机VirtualBox中安装Ubuntu
- Linux中安装VirtualBox虚拟机
- winxp安装VirtualBox虚拟机及在vm中安装ubuntu jeos 8.04.3 LTS
- VirtualBoX虚拟机里安装linux系统,在虚拟系统里安装增强功能报错解决方法