2009-06-05

Virtualbox guest additions

Shared folders

Seamless windows/Mouse pointer integration




VirtualBox Guest Additions

Host: WINXP
Guest: Slitaz-2.0

1. tazpkg get-install slitaz-toolchain

2. tazpkg get-install linux-source
Build your own custom Linux Kernel for SliTaz

3. install Xorg server
The Xorg server

4. Sun VirtualBox®
User Manual Version 2.2.2 Edition
4.3.1. Installing the Linux Guest Additions
Linux Guest Additions

5. Howto: Install Linux Guest Additions + Xorg config

6. HOWTO: Use Shared Folders

root@slitaz:~# /etc/init.d/vboxadd start
Starting VirtualBox Additions ...done.
root@slitaz:~# lsmod | grep vbox
vboxvfs 37484 0
vboxadd 60340 1 vboxvfs
root@slitaz:~# ls -al /home/xp-share/
drwxr-xr-x 2 root root 4096 Jun 5 22:45 .
drwxr-xr-x 6 root root 4096 Jun 5 22:45 ..
root@slitaz:~# mount.vboxsf slitaz /home/xp-share
root@slitaz:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 10321136 4474260 5322592 46% /
/dev/root 10321136 4474260 5322592 46% /
tmpfs 387240 0 387240 0% /dev/shm
none 260140544 246246888 13893656 95% /home/xp-share
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /home/xp-share type vboxsf (rw,nodev)
root@slitaz:~#
root@slitaz:~# tail -n 12 /var/log/vboxadd-install.log
Installing the Guest Additions kernel module system service.
Installing the shared folder system service.
Installing the time synchronisation system service.
Installing the VBoxControl command line interface.
Installing the X Window System user service.
install_x11_startup_app(): dest is vboxclient.desktop
Creating udev rule for the Guest Additions kernel module.
Installing the X Window System drivers
Installing Xorg 7.1 modules

Successfully completed.

root@slitaz:~# ls -l /lib/modules/2.6.25.5-slitaz/misc/
-rw-rw-r-- 1 root root 56708 Jun 5 13:38 vboxadd.ko
-rw-rw-r-- 1 root root 45300 Jun 5 13:39 vboxvfs.ko
-rw-rw-r-- 1 root root 2641 Jun 5 13:39 vboxvideo.ko
root@slitaz:~#

....
root@slitaz:~# tail -n 7 /usr/bin/98vboxadd-xclient
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#

/usr/bin/VBoxClient --clipboard
/usr/bin/VBoxClient --autoresize
/usr/bin/VBoxClient --seamless
root@slitaz:~# ps ax | grep VBox
1716 root /usr/bin/VBoxClient --clipboard
1731 root /usr/bin/VBoxClient --seamless
1764 root grep VBox
root@slitaz:~# lsmod | grep vbox
vboxvideo 1792 0
vboxvfs 37484 1
vboxadd 60340 4 vboxvfs
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /home/xp-share type vboxsf (rw,nodev)
root@slitaz:~#
root@slitaz:~# ls /home/xp-share
0523-mirror.txt
0528-dmesg.txt
0528-slitaz-cn.txt
0528-slitaz-cn.txt.bak
0602-vbox.txt
2
big1
Bootable_NoEmulation.img
boot-grub.iso
boot-usb.iso
bzImage
chinese-pack-0.1.tazpkg
chinese-pack-0.2.tazpkg
chinese-pack.tar.gz
chinese_pack_total-4.1.0.11.pet
cn
coolpc.pdf
deb2tazpkg
gcin
get
....

slitaz-2.xml