[問題] centos底下裝VirtualBox執行的問題

看板Linux作者 (Ryan)時間15年前 (2010/10/22 12:07), 編輯推噓2(2011)
留言13則, 5人參與, 最新討論串1/1
作業系統是centos 主機是ibm 中/大型伺服器等級 amd 有支援vmx. 依照http://wiki.centos.org/zh-tw/HowTos/Virtualization/VirtualBox指示下安裝 對照過kernel都是同樣版本 執行 /etc/init.d/vboxdrv setup 出現以下錯誤 Error! Your kernel headers for kernel 2.6.18-194.17.1.el5xen cannot be found at/lib/modules/2.6.18-194.17.1.el5xen/build or /lib/modules/2.6.18-194.17.1.el5xen/source. [FAILED] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong) ------------ log檔顯示: Uninstalling modules from DKMS Attempting to install using DKMS Creating symlink /var/lib/dkms/vboxhost/3.2.10/source -> /usr/src/vboxhost-3.2.10 DKMS: add Completed. You can use the --kernelsourcedir option to tell DKMS where it's located. Failed to install using DKMS, attempting to install without Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. ----------------- google了半天 爬了很多文也找不出問題點 有勞版上高手幫忙指點指點 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.240.214.178

10/22 12:19, , 1F
kernel-devel?kernel-headers?
10/22 12:19, 1F

10/22 14:23, , 2F
一堆人裝vbox都不看vbox的手冊...
10/22 14:23, 2F

10/22 15:29, , 3F
你沒有裝kernel source
10/22 15:29, 3F

10/22 16:24, , 4F
kernel-devel與headers都裝完了,看過手冊就是抓不到問題
10/22 16:24, 4F

10/22 16:24, , 5F
才上來問的,謝謝!
10/22 16:24, 5F

10/22 16:35, , 6F
Specify KERN_DIR=<directory> and run Make again. Stop
10/22 16:35, 6F

10/22 16:37, , 7F
也許你裝的kernel-devel不是 2.6.18-194.17.1.el5xen
10/22 16:37, 7F

10/22 16:44, , 8F
kernel-devel-2.6.18-194.17.1.el5
10/22 16:44, 8F

10/23 04:39, , 9F
那你找找kernel-xen-devel-2.6.18-194.17.1.el5
10/23 04:39, 9F

10/23 04:40, , 10F
因為你現在使用的kernel版本名本身就不同
10/23 04:40, 10F

10/23 04:41, , 11F
所以virtual box去找時發現找不到這版本的kernel source
10/23 04:41, 11F

10/23 04:42, , 12F
簡單的說 你kernel-devel裝是裝了,但沒裝對版本
10/23 04:42, 12F

10/25 09:24, , 13F
的確是kernel的版本安裝錯誤..看來不能自動得手動,感謝!
10/25 09:24, 13F
文章代碼(AID): #1CmGteKa (Linux)