安裝時遇到提示:linux
Building the VirtualBox Guest Additions kernel modulesui
The headers for the current running kernel were not found. If the followingthis
module compilation fails then this could be the reason.rest
...fail!component
記得之前安裝一樣的版本沒有此問題,估計是安裝時漏選了一些軟件包。解決以下:it
1. cp VBoxLinuxAdditions.run VBoxLinuxAdditions-x86.runio
2.chmod +x VBoxLinuxAdditions-x86.runmodule
3.aptitude install dkms gcc makegcc
4.aptitude install linux-headers-$(uname -r)軟件
5../VBoxLinuxAdditions-x86.run
以下提示成功,而後重啓,ok!:
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.4 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
另外鏡像另一臺主機時提示uuid衝突,用一下命令解決
cd /D D:\Program Files\Oracle\VirtualBox
D:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands sethduuid "D:\My
Virtual Machines/debian-1.vdi"
UUID changed to: 630ca607-b1c1-4ad1-8897-176e20b46e9a
D:\Program Files\Oracle\VirtualBox>