May 9, 2010

VirtualBox Kernel Errors on Ubuntu

솔직히 은행일만 아니면 깔고싶지 않은 것들인데.. 어쨌거나 설치하면서 만난 에러:

root@edward-desktop:/home/edward# sudo /etc/init.d/vboxdrv setup
WARNING: All config files need .conf: /etc/modprobe.d/bttv.modprobe, it will be ignored in a future release.
 * Stopping VirtualBox kernel module                                                                                                *  done.
 * Recompiling VirtualBox kernel module                                                                                            
 * Look at /var/log/vbox-install.log to find out what went wrong
root@edward-desktop:/home/edward# cat /var/log/vbox-install.log
Attempting to install using DKMS
  removing old DKMS module vboxdrv version  3.1.6

------------------------------
Deleting module version: 3.1.6
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.1.6/source ->
                 /usr/src/vboxdrv-3.1.6

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.31-21-server cannot be found at
/lib/modules/2.6.31-21-server/build or /lib/modules/2.6.31-21-server/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. 

이럴때 그냥 심플하게 :

# apt-get install linux-headers-`uname -r`
# /etc/init.d/vboxdrv setup

No comments:

Post a Comment