2008年10月21日 星期二

VirtualBox - Spawning Session 解法 in Ubuntu

在安裝完一次的 Kernel 更新之後,VirtualBox 就出現問題了,啟動虛擬機的時候會跑一個視窗,上面寫著 Spawning Session 然後一直卡在進度 0 % 沒有動作,如果用舊版的 Kernel 就可以正常執行,試著找了一下,在官網也沒有找到什麼解答:

http://forums.virtualbox.org/viewtopic.php?p=37897&sid=da7c0a20c648e320c82afb45d58678a5

然後嘗試想用命令啟動 (覺得是 Management UI 的問題),發現這麼一段錯誤訊息:

jty@ubuntu:~$ VBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.27-4-generic) or it failed to load.
Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
Unknown application - VBox

原來是因為 Kernel Module 的版本不對了,所以才出現狀況的,按著上面的指令重新編譯一次 Kernel Module,就可以了…

PS: 注意指令的大小寫是不同意義的! eg: VBox # vbox