在笔记本安装Ubuntu11.04增强功能失败
 
 
 
  
fuliang@fuliang-VirtualBox:~$ sudo /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
 
  
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
 
  
 
在Building VirtualBox Guest Additions kernel modules的时候,缺少kernal的头文件,
使用下面的命令安装:
 
 
  
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
 
  
 
其实build-essential linux-headers已经是最新的了,只是缺少dkms(Dynamic Kernel Module Support),当有新的kernal安装的时候,它能让kernal的设备驱动自动的重新构建。
详情见: http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
之后再
 
 
  
sudo /etc/init.d/vboxadd setup
 
  
 
成功:
 
 
  
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
 
  
 
  引用
 
 
 fuliang@fuliang-VirtualBox:~$ sudo /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
在Building VirtualBox Guest Additions kernel modules的时候,缺少kernal的头文件,
使用下面的命令安装:
  引用
 
 
 sudo apt-get install dkms build-essential linux-headers-$(uname -r)
其实build-essential linux-headers已经是最新的了,只是缺少dkms(Dynamic Kernel Module Support),当有新的kernal安装的时候,它能让kernal的设备驱动自动的重新构建。
详情见: http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
之后再
  引用
 
 
 sudo /etc/init.d/vboxadd setup
成功:
  引用
 
 
 Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
 
                   
                   
                   
                   
                             本文解决了在Ubuntu11.04上安装VirtualBox Guest Additions时遇到的问题,即构建内核模块时找不到当前运行内核的头文件。通过安装dkms包并重新设置Guest Additions完成了安装。
本文解决了在Ubuntu11.04上安装VirtualBox Guest Additions时遇到的问题,即构建内核模块时找不到当前运行内核的头文件。通过安装dkms包并重新设置Guest Additions完成了安装。
           
       
           
                 
                 
                 
                 
                 
                
               
                 
                 
                 
                 
                
               
                 
                 扫一扫
扫一扫
                     
              
             
                  
 被折叠的  条评论
		 为什么被折叠?
被折叠的  条评论
		 为什么被折叠?
		 
		  到【灌水乐园】发言
到【灌水乐园】发言                                
		 
		 
    
   
    
   
             
            


 
            