SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:guides:virtualbox [2013/05/15 14:32]
emgi [Step 2 - Play the virtual machine.]
en:guides:virtualbox [2015/03/28 10:35]
linea
Line 64: Line 64:
 Other virtualization (free software) is also available such as lguest or qemu. Other virtualization (free software) is also available such as lguest or qemu.
  
-<note tip>See guest additions for SliTaz 4.0 [[http://​forum.slitaz.org/​topic/​installing-virtualbox-guest-additions-in-slitaz-40-target#​post-10791|in the forum]]</​note>​+===== Installing Virtualbox Guest Additions ===== 
 + 
 + 
 +<note tip>This procedure is intended for Slitaz 5.0.\\  
 +This procedure was tested with:\\  
 +- VirtualBox 4.3.20 installed on Host, including the Extensions Pack;\\  
 +- slitaz-5.0-rc2.iso dated 20140519;\\  
 +- slitaz-rolling.iso 32-bit dated 20150201. 
 + 
 +See guest additions for SliTaz 4.0 [[http://​forum.slitaz.org/​topic/​installing-virtualbox-guest-additions-in-slitaz-40-target#​post-10791|in the forum]] ​also.</​note>​ 
 + 
 +Virtualbox Guest Additions needs to be manually installed by Slitaz.\\  
 + 
 +Steps: 
 + 
 +**1.** In the Slitaz virtual machine make sure you have a working internet connection. Sometimes you need to stop/​restart eth0 using TazPanel (Slitaz Panel) the first time to get a connection. 
 + 
 +**2.** Open Package Manager and recharge the package list. 
 + 
 +**3.** Install the following packages: 
 + 
 +  linux-module-headers (3.2.53) 
 +  mesa-dri 
 +  bzip2 
 + 
 +**4.** Mount the VBoxAdditions iso using the VirtualBox menu option Devices -> Insert Guest Additions CD image... 
 + 
 +**5.** In a terminal, change directory to the mount point for the VBoxAdditions iso, e.g. 
 + 
 +  $ cd /​media/​cdrom/​ 
 + 
 +**6.** 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. 
 + 
 +**7.** Open a 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 
 + 
 +**8.** Open as root /​etc/​rcS.conf and add "​vboxguest vboxsf vboxvideo"​ to the LOAD_MODULES line, e.g. 
 + 
 +<​file>​LOAD_MODULES="​ vboxguest vboxsf vboxvideo"</​file>​ 
 + 
 +**9.** Open as root /​etc/​slim.conf and change the login_cmd line to start VBoxClient-all before it executes ~./xinitrc, e.g. 
 + 
 +<​file>​login_cmd VBoxClient-all & exec /bin/sh -l ~/.xinitrc %session</​file>​ 
 + 
 +<note tip>​Instead of editing /​etc/​slim.conf,​ you could add "​VBoxClient-all &" without the quotes to a new line above the CASE 1$ line in every users ~/.xinitrc file.</​note>​ 
 + 
 +**10.** Reboot. 
 +---- 
 +To check that the vbox modules are loaded, open a 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 a 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 (The author manually mounts the shared folders as and when he needs them). For instance, if you wanted to mount the (hypothetical) share called //pubdoc// and access it as a desktop folder called //Docs// (make sure the folder exists first) then you issue the following command in a terminal as root: 
 + 
 +  # mount -t vboxsf pubdoc /​home/​tux/​Desktop/​Docs 
 + 
 +References: [[http://​forum.slitaz.org/​topic/​installing-virtualbox-guest-additions-in-slitaz-50#​post-34521|Slitaz Forum topic]]
 ----  ---- 
 \\ \\
 
en/guides/virtualbox.txt · Last modified: 2015/04/01 04:05 by mojo