Guest Additions on Slitaz 4.0RC3 in a Virtualbox Machine

A quick and dirty how-to over the installation of the so called "GuestAdditions" on Slitaz 4.0RC3 in a Virtualbox Machine:

  1. Install the packages bzip2, gcc, make, linux-module-headers
    for p in bzip2 gcc make linux-module-headers ; do tazpkg get-install $p ; done
  2. Create the directory /usr/src if needed. The install script requires it. The script will nevertheless complain about the -c option being unsupported by the modprobe version built in BusyBox. We will take care of that later.
  3. Mount VBoxGuestAdditions.iso and execute The kernel modules compilation will fail as expected but the installation of the rest will go through (Window Systemdrivers and X modules).
  4. Edit /etc/init.d/vboxadd and
    • comment out the "if" block that begins with if $MODPROBE -c (lines 40 to 42),
    • locate and comment out the two lines beginning with useradd in the extra_setup() function and add thereafter
      adduser -h /var/run/vboxadd -G daemon -S -s /bin/false vboxadd >/dev/null 2>&1
    • Further down in /etc/init.d/vboxadd, comment out the line which begins with groupadd and add thereafter
      addgroup -S vboxsf  >/dev/null2>&1
  5. Run /etc/init.d/vboxadd setup. This time everything should happily compile and install.
  6. Edit /etc/rcS.conf, locate the line that begins with LOAD_MODULES and complete the list of modules with vboxguest vboxsf vboxvideo
  7. Reboot.