must be performed in guest or host?
1.
Oracle VM VirtualBox®
User Manual
https://www.virtualbox.org/manual/ch04.html#idp11274368
Installing the Linux Guest Additions
[..]
Installation generally involves the following steps:
Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This works similarly as described in the section called “The VirtualBox kernel module”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.
Again, as with Linux hosts, we recommend using DKMS if it is available for the guest system. If it is not installed, use this command for Ubuntu/Debian systems:
[..]
2.
# SliTaz package receipt.
PACKED_SIZE="15.1M"
UNPACKED_SIZE="62.9M"
PACKAGE="virtualbox-ose"
VERSION="4.0.8"
CATEGORY="misc"
SHORT_DESC="Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)"
MAINTAINER="slaxemulator@gmail.com"
SOURCE="VirtualBox"
[..]
# virtualbox-ose-additions
cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions"
mkdir -p $fs/usr/bin
mkdir -p $fs/sbin
mkdir -p $fs/etc/X11/xorg.conf.d
install -m755 VBoxClient VBoxControl VBoxService "$fs/usr/bin"
install -m755 mount.vboxsf "$fs/sbin"
install -m644 $src/src/VBox/Additions/x11/Installer/50-vboxmouse.conf \
$fs/etc/X11/xorg.conf.d/50-vboxmouse.conf
install -m755 -D $src/src/VBox/Additions/x11/Installer/98vboxadd-xclient \
$fs/usr/bin/VBoxClient-all
install -m755 -D $src/src/VBox/Additions/x11/Installer/vboxclient.desktop \
$fs/etc/xdg/autostart/vboxclient.desktop
install -D vboxmouse_drv_19.so \
"$fs/usr/lib/X11/modules/input/vboxmouse.so"
install -D vboxvideo_drv_19.so \
"$fs/usr/lib/X11/modules/drivers/vboxvideo.so"
install -d "$fs/usr/lib/dri"
install -m755 VBoxOGL*.so "$fs/usr/lib"
ln -s /usr/lib/VBoxOGL.so "$fs/usr/lib/dri/vboxvideo_dri.so"
install -m755 -D pam_vbox.so "$fs/lib/security/pam_vbox.so"
# virtualbox-ose-additions-modules
cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src"
cd vboxguest
install -D -m644 vboxguest.ko \
"$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxguest.ko"
cd ../vboxsf
install -D -m644 vboxsf.ko \
"$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxsf.ko"
cd ../vboxvideo
install -D -m644 vboxvideo.ko \
"$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxvideo.ko"
install -D -m 0644 "$stuff/60-vboxguest.rules" \
"$fs/etc/udev/rules.d/60-vboxguest.rules"
[..]