[root@localhost sysadmin]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-431.20.3.el6.i686 cannot be found at
/lib/modules/2.6.32-431.20.3.el6.i686/build or /lib/modules/2.6.32-431.20.3.el6.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@localhost sysadmin]#
CentOS 32비트 버전을 사용하고 있습니다.
답변1
kernel-headers
다음을 수행하여 설치하십시오.
yum install kernel-headers
또한 위의 커널이 업데이트되어 실제로 실행 중인지 확인하십시오(커널을 업데이트한 경우 재부팅).