Anleitung zur Installation der Sun xVM VirtualBox Gasterweiterungen unter Debian Lenny
Wenn man Debian als Desktopsystem in einer VM installieren möchte, sollte man gleich nach der Installation der jeweiligen Desktop-Umgebung (Gnome, KDE usw.) die Gasterweiterungen installieren. Diese sorgen für eine verbesserte Integration des Gastsystems in das Wirtsystem.
- Mauszeigerintegration
- Copy/Paste zwischen Wirt und Gast und umgekehrt
- höhere Grafikauflösung
usw. (http://de.wikipedia.org/wiki/VirtualBox#Gasterweiterungen)
Für die Gasterweiterungen existiert in Sun xVM VirtualBox ein ISO-Image (VBoxGuestAdditions.iso), welches dem jeweiligen Gastsystem in das virtuelle CD-Rom-Laufwerk eingebunden werden kann. Ggf. muss man das CD-Rom noch mounten, damit man auf die Dateien des Images zugreifen kann.
debian:/cdrom# ls -l insgesamt 25619 dr-xr-xr-x 3 root root 2048 27. Apr 20:21 32Bit dr-xr-xr-x 2 root root 2048 27. Apr 20:21 64Bit -r--r--r-- 1 root root 230 16. Apr 12:50 AUTORUN.INF -r-xr-xr-x 1 root root 3842 27. Apr 20:21 autorun.sh -r-xr-xr-x 1 root root 2862808 27. Apr 20:17 VBoxLinuxAdditions-amd64.run -r-xr-xr-x 1 root root 2597749 27. Apr 20:21 VBoxLinuxAdditions-x86.run -r--r--r-- 1 root root 12047872 27. Apr 20:15 VBoxSolarisAdditions.pkg -r-xr-xr-x 1 root root 4569472 27. Apr 19:53 VBoxWindowsAdditions-amd64.exe -r-xr-xr-x 1 root root 477712 27. Apr 19:40 VBoxWindowsAdditions.exe -r-xr-xr-x 1 root root 3668400 27. Apr 19:42 VBoxWindowsAdditions-x86.exe
Folgende Pakete sollten noch vor Installation der Gasterweiterungen per aptitude installiert werden.
debian:/cdrom# aptitude install build-essential linux-headers-`uname -r`
Danach folgt die eigentliche Installation der Gasterweiterungen (bei der 64Bit-Version von Debian muss dies mit VBoxLinuxAdditions-amd64.run gestartet werden).
debian:/cdrom# sh ./VBoxLinuxAdditions-x86.run Verifying archive integrity... All good. Uncompressing VirtualBox 2.2.2 Guest Additions for Linux installation........... ................................................................................ ................................................................................ ................................................... VirtualBox 2.2.2 Guest Additions installation This system does not seem to have support for OpenGL direct rendering. VirtualBox requires Linux 2.6.27 or later for this. Please see the log file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message. Building the VirtualBox Guest Additions kernel module... Building the shared folder support kernel module... Installing the VirtualBox Guest Additions... Successfully installed the VirtualBox Guest Additions. You must restart your guest system in order to complete the installation. debian:/cdrom#
Danach noch ein Neustart des virtuellen Debians ausführen und man kann die Funktionen der Gasterweiterungen benutzen.