1. 程式人生 > >VirtualBoX虛擬機器裡安裝linux系統,在虛擬系統裡安裝增強功能報錯解決方法

VirtualBoX虛擬機器裡安裝linux系統,在虛擬系統裡安裝增強功能報錯解決方法

Removing installed version 4.1.10 of VirtualBox Guest Additions... Removing existing VirtualBox DKMS kernel modules           [確定] Removing existing VirtualBox non-DKMS kernel modules       [確定] 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. The missing package can be probably installed with yum install kernel-devel-2.6.18-238.el5 Not building the VirtualBox advanced graphics driver as this Linux version is too old to use it. Building the main Guest Additions module                   [失敗] (Look at /var/log/vboxadd-install.log to find out what went wrong) Doing non-kernel setup of the Guest Additions              [確定] Installing the Window System drivers Installing X.Org 7.1 modules                               [確定] Setting up the Window System to use the Guest Additions    [確定] 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 componen[確定] /tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。 Creating user for the Guest Additions. Creating udev rule for the Guest Additions kernel module.