Cent OSではVirtual Boxを起動できません。

Cent OSではVirtual Boxを起動できません。
[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

また、上記のカーネルが更新され、実際に実行されていることを確認してください(カーネルを更新した場合は再起動)。

おすすめ記事