#sudosh./VBoxLinuxAdditions.run
提示失败
BuildingtheVirtualBoxGuestAdditionskernelmodules[FAILED]
Yoursystemdoesnotseemtobesetuptobuildkernelmodules.
Lookat/var/log/vboxadd-
install.logtofindoutwhatwentwrong.
Onceyouhavecorrectedit,youcanrun/etc/init.d/vboxaddsetuptobuildthem.
#gedit/var/log/vboxadd-install.log
内容Makefile:23:***Error:unabletofindthesourcesofyourcurrentLinuxkernel.SpecifyKERN_DIR=<directory>andrunMakeagain..Stop.
CreatinguserfortheGuestAdditions.
CreatingudevrulefortheGuestAdditionskernelmodule.
安装GCC
#yuminstallgcc
#yuminstallgcckernel-develkernel-headers
重启。
再次安装VBoxLinuxAdditions,OK。