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.
Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute
/etc/init.d/vboxdrv setup
as root.
看來是沒有內核源碼,所以導致無法重新編譯內核。google了一下,發現需要安裝kernel-devel。
安裝kernel-devel
解決:yum -y install kernel-devel
但是安裝之後執行
/etc/init.d/vboxdrv setup
還是報錯。
查看了日誌/var/log/vbox-install.log,竟然是不認識gcc命令。
yum install gcc
再次執行/etc/init.d/vboxdrv setup,成功的安裝好了vbox,:-)