Installing VirtualBox Guest Additions in slitaz 5.0 rc2 and rolling:
(tested with VirtualBox 4.3.18 installed on Host, including the Extensions Pack)
(tested with slitaz-5.0-rc2.iso dated 20140519)
(tested with slitaz-rolling.iso dated 20141025)
- In the slitaz virtual machine make sure you have a working internet connection. I sometimes need to stop/restart eth0 using TazPanel (Slitaz Panel) the first time to get a connection.
- open Package Manager and recharge the package list.
- install the following packages:
linux-module-headers (3.2.53)
mesa-dri
bzip2
- mount the VBoxAdditions iso using the VirtualBox menu option Devices->Insert Guest Additions CD image...
- in terminal, change directory to the mount point for the VBoxAdditions iso e.g.
cd /media/cdrom/
- run as root the following command:
sh ./VBoxLinuxAdditions.run
- ignore text about scripts added to /etc/init.d (installer does not recognize your Linux Distribution etc)
- ignore text about kernel headers for current running version not found
- open terminal as root and issue the following commands:
adduser -h /var/run/vboxadd -G daemon -S -s /bin/false vboxadd >/dev/null 2>&1
addgroup -S vboxsf >/dev/null 2>&1
- open as root /etc/rcS.conf and add "vboxguest vboxsf vboxvideo" to the LOAD_MODULES line, e.g.
LOAD_MODULES=" vboxguest vboxsf vboxvideo"
- open as root /etc/slim.conf and change the login_cmd line to start VBoxClient-all before it executes ~./xinitrc, e.g.
login_cmd VBoxClient-all & exec /bin/sh -l ~/.xinitrc %session
***Note: instead of editing /etc/slim.conf, you could add "VBoxClient-all &" without the quotes to a new line above the CASE 1$ line in each users ~/.xinitrc file.
- reboot
To check that the vbox modules are loaded, open terminal and type
lsmod | grep vbox
That should show:
vboxguest
vboxsf
vboxvideo
(as well as drm using vboxvideo)
Also, you can install the mesa-demos package to get the glxgears and glxinfo utilities.
After you install mesa-demos, open terminal and type
glxinfo | grep render
That should show:
direct rendering: Yes
OpenGL renderer string: Chromium
glxinfo and glxgears will show a false error:
libGL error: failed to load driver: vboxvideo
which according to the VirtualBox bugtracker is due to the way vboxvideo hooks itself into the Mesa library instead of being loaded in the normal way by Mesa... so ignore it... if you have OpenGL render = Chromium and direct rendering = Yes then accelerated 3D is supported.
Clipboard sharing Host<=>Guest works if you enable it in the VirtualBox menus or in your virtual machine settings.
Shared folders work (I manually mount the shared folders as/when I need them). For instance, if I wanted to mount the (hypothetical) share called pubdoc and access it as a desktop folder called Docs (make sure the folder exists first) then I issue the following command in terminal as root:
mount -t vboxsf pubdoc /home/tux/Desktop/Docs