9 Advanced topics 9.4 Advanced configuration for Linux and Solaris guests 9.4.1 Manual setup of selected guest services on Linux The VirtualBox Guest Additions contain several different drivers. If for any reason you do not wish to set them all up, you can install the Guest Additions using the following command: sh ./VBoxLinuxAdditions.run no_setup After this, you will need to at least compile the kernel modules by running the command /usr/lib/VBoxGuestAdditions/vboxadd setup as root (you will need to replace lib by lib64 on some 64bit guests), and on older guests without the udev service you will need to add the vboxadd service to the default runlevel to ensure that the modules get loaded. To setup the time synchronization service, run the command /usr/lib/VBoxGuestAdditions/vboxadd-service setup and add the service vboxadd-service to the default runlevel. To set up the X11 and OpenGL part of the Guest Additions, run the command /usr/lib/VBoxGuestAdditions/vboxadd-x11 setup (you do not need to enable any services for this). To recompile the guest kernel modules, use this command: /usr/lib/VBoxGuestAdditions/vboxadd setup After compilation you should reboot your guest to ensure that the new modules are actually used. 9.4.2 Guest graphics and mouse driver setup in depth This section assumes that you are familiar with configuring the X.Org server using xorg.conf and optionally the newer mechanisms using hal or udev and xorg.conf.d. If not you can learn about them by studying the documentation which comes with X.Org. The VirtualBox Guest Additions come with drivers for X.Org versions X11R6.8/X11R6.9 and XFree86 version 4.3 (vboxvideo_drv_68.o and vboxmouse_drv_68.o) X11R7.0 (vboxvideo_drv_70.so and vboxmouse_drv_70.so) X11R7.1 (vboxvideo_drv_71.so and vboxmouse_drv_71.so) X.Org Server versions 1.3 and later (vboxvideo_drv_13.so and vboxmouse_drv_13.so and so on). By default these drivers can be found in the directory /opt/VBoxGuestAdditions-version/lib/VBoxGuestAdditions and the correct versions for the X server are symbolically linked into the X.Org driver directo- ries. For graphics integration to work correctly, the X server must load the vboxvideo driver (many recent X server versions look for it automatically if they see that they are running in VirtualBox) and for an optimal user experience the guest kernel drivers must be loaded and the Guest Ad- ditions tool VBoxClient must be running as a client in the X session. For mouse integration to work correctly, the guest kernel drivers must be loaded and in addition, in X servers from X.Org X11R6.8 to X11R7.1 and in XFree86 version 4.3 the right vboxmouse driver must be loaded 139
Previous Page Next Page