VirtualBox 出新貨了。
Dowload List 裡沒有 ebuilds,又聽說預編版可以直接 pass USB 硬體給 Guest OS,只好抓 All distributions 下來裝,tar 開後告訢你:
VirtualBox has been installed successfully, but the kernel module could not
be built. When you have fixed the problems preventing this, execute
/etc/init.d/vboxdrv setup
as administrator to build it.
就用 root 下指令吧:
# /etc/init.d/vboxdrv setup
/etc/init.d/vboxdrv: line 97: /sbin/functions.sh: 沒有此一檔案或目錄
打開 /etc/init.d/vboxdrv 這個檔,原來它會認我的系統是 Gentoo,開始上天下地找 function.sh 這個檔,原來 gentoo 新的架構已把 function.sh 移到 /etc/init.d/functions.sh,打開 /etc/init.d/vboxdrv 修改成
elif [ “$system” = “gentoo” ]; then
#. /sbin/functions.sh
. /etc/init.d/functions.sh
fail_msg() {
eerror “$1”
再執行就 OK 啦。
# /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module … [ ok ]
* Removing old VirtualBox kernel module … [ ok ]
* Recompiling VirtualBox kernel module … [ ok ]
* Starting VirtualBox kernel module … [ ok ]
Comments
2 responses to “Gentoo 嚐鮮 VirtualBox 2.0.4”
ebuild在jokey overlay里有。
自从2.0.4以来,VBox的bin版总是没声音,只好用ose自己编译。
re transtone:
我的 VBox bin 版是有聲音的,
我是因為 ose 版不能使用 usb 即時插拔才用 bin 版,
現在也已升級用 2.0.6 版了.