サーバー更新(6)VirtualBox

参照
https://www.virtualbox.org/wiki/Linux_Downloads

# yum install SDL

# wget http://download.virtualbox.org/virtualbox/4.2.0/VirtualBox-4.2-4.2.0_80737_el6-1.x86_64.rpm

# rpm -ivh VirtualBox-4.2-4.2.0_80737_el6-1.x86_64.rpm

準備中... ########################################### [100%]
1:VirtualBox-4.2 ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS [失敗]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [失敗]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@serv3 ~]#

# cat /var/log/vbox-install.log

Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. 中止.

# yum install kernel-devel kernel-headers

# rpm -e VirtualBox-4.2-4.2.0_80737_el6-1.x86_64
# rpm -ivh VirtualBox-4.2-4.2.0_80737_el6-1.x86_64.rpm
# usermod -G vboxusers hogehoge