Is there any up to date instructions for installing Virtualbox Guest Additions in a SliTaz 4.0 target?
A search showed a result for SliTaz 3.0, but it didn't seem to work properly.
Is there any up to date instructions for installing Virtualbox Guest Additions in a SliTaz 4.0 target?
A search showed a result for SliTaz 3.0, but it didn't seem to work properly.
Hi,
This is what I did to install the VirtualBox Guest Additions in a fresh install of Slitaz 4.0 on a Host running Vista 32 bit:
VirtualBox version on Host: 4.1.12 (with Extensions Pack installed)
Host Machine: Windows Vista 32 bit
Guest: Slitaz 4.0 (Installed from slitaz-4.0.iso, using the "Slitaz Live" option on the boot menu)
In Slitaz 4.0:
- install the following packages:
linux-api-headers package (2.6.37)
linux-module-headers package (2.6.37)
bzip2 package
***Note: the slitaz-toolchain package will get installed as a dependency of the linux-module-headers package.
- mount the VBoxAdditions iso
- in terminal, cd into the mount point for the VBoxAdditions iso
(in my case that was /media/VBOXADDITIONS_4.1.12_77245)
- run as root ./VBoxLinuxAdditions.run
- ignore text about scripts added to /etc/init.d
- ignore text about modprobe -c failing (the version of modprobe built into Busybox here doesn't support option -c)
- open as root /etc/X11/xorg.conf.d and delete the following files:
/etc/X11/xorg.conf.d/10-ServerLayout.conf
/etc/X11/xorg.conf.d/50-Monitor.conf
/etc/X11/xorg.conf.d/60-Device.conf
/etc/X11/xorg.conf.d/70-Screen.conf
these are not needed, or they conflict with the same named sections of the VirtualBox generated /etc/X11/xorg.conf file.
- open as root /etc/rcS.conf and add "vboxguest vboxsf vboxvideo" to the LOAD_MODULES line, e.g.
LOAD_MODULES=" snd_hda_intel 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
That worked for me on a standard install of Slitaz 4.0.
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 (hopefully not Software Rasterizer)
Clipboard sharing with Host works for me (easy to check by copying/pasting between Guest and Host).
Shared folders work for me. Note that I manually mount the shared folders as/when I need them, so I haven't testing automatic mounting.
Hope that helps you.
@pipein
Thank you very much for your reply. I followed your instructions and everything is working as I hoped for.
When I ran the glxinfo command, it showed using Software Rasterizer.
glxinfo | grep render
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fragment_program,
You mentioned "(hopefully not Software Rasterizer)", what decides which method it uses?
Sorry I didn't reply to your message sooner. I have some health issues to deal with.
@GoodGuy98
1st of all, I wish you good health.
Please make sure that you have enabled 3D acceleration in the virtual machine's display settings (back on the Host). i.e. On the Host, in the VirtualBox Manager GUI, go to the Display Tab for your SliTaz virtual machine and check the "Enable 3D Acceleration" box on the Video/Extended Features section. (See attached image)
@pipein
I checked enable 3D acceleration and now it displays:
OpenGL renderer string: Chromium
Thanks again for all your help. I will mark it resolved so others can benefit from your help as well.
@GoodGuy98
Good to hear things worked for you.
@pipein
Thanks I followed your steps now host-guest copy&paste, share folders working fine :-)
It would be nice if SliTaz was submitted to the VirtualBox folks so they can add support
for it like many of the distros. Does anyone know what that would take?
@pipein
Thank you! Good instruction!
9001 Internets for you good sir! Thank you very much for taking the time to write this guide. I found it very useful and it worked for me :)
@pipein
Great job!
Terribly useful!
Everything went smooth (even glxinfo talks about Chromium).
In order to get the shared folders always mounted, I included a new line in .profile so that it would do the needed mount.
Thank you so much!
@pipein
I forgot to mention I'm using VirtualBox 4.1.2.
Thanks again!
You must log in to post.