2014年5月31日星期六

Build VirtualBox Guest Additions for BLFS

Note: VirtualBox (4.3.18 or before) guest additions needs the "/etc/rc.d/init.d/function" script file and this file is not exist in LFS 7.6 so you have to get it from LFS 7.5.

1.   Make sure “/etc/lfs-release” file exits (refer to LFS document Section 9.1)
2.   Make sure the Linux kernel source codes exist.
3.   Make sure VBoxBoxLinuxAdditions.run is executable (use “chmod” command to change its permission).
4.   Copy the current kernel configuration file to the Linux source code folder and run “make menuconfig” to load the configuration file and then build the kernel. (No need to copy the kernel to the “/boot” folder)
5.   Set the global variable “KERN_DIR” to the Linux kernel source path: export KERN_DIR="Linux kernel source path"
6.   Execute “VBoxBoxLinuxAdditions.run” to install all drivers and software. If the build is successful, you can execute “lsmod” command and find vboxguest, vboxsf and vboxvideo from the output.
7.   We modify the section “Device” of the “/etc/X11/xorg.conf” to load VirtualBox video driver:
     Section “Device”
          Identifier “VirtualBox”
          Driver “vboxvideo”
    EndSection
8.      Now, we can execute “startx” to start the X Window.

沒有留言: