what i really dislike: Debian 2 setup goes like „this and that“ Debian 3 „now setup goes different“

it’s always like that… the ways that were tested and worked, do not work anymore in the next release, potentially invalidating all old recipes.

guys i know you are good and can do better 🙂 – ASAP (As Simple As Possible 🙂 and leave it that way… forever 🙂 = reliable)

update: 2018-06-05: also tested on:
host: Operating System: CentOS Linux 7 (Core) / Kernel: Linux 4.15.9
guest:  Operating System: Debian GNU/Linux 9 (stretch) / Kernel: Linux 4.9.0-6-amd64

also tested on/with:

host: Linux Debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux
guest: Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux
modprobe vboxadd; # test if virtualbox additions are installed

modprobe: FATAL: Module vboxadd not found. # this is what you get if they are not (correctly) installed

apt-get install build-essential module-assistant linux-headers-$(uname -r); # install stuff needed to compile
m-a prepare; # do stuff with the module assistant

virtualbox insert guest additions cd

# it should get mounted automatically if you have a GUI (gnome-core) installed if not:
mkdir /media/cdrom; # might allready exist
mkdir /virtualbox; # i am used to copy this over to root before compiling

# Debian3:
mount /dev/cdrom /media/cdrom; # should work

# Debian9:
mount /dev/sr0 /media/cdrom; # should work

cp -rv /media/cdrom/* /virtualbox; # i like to copy all the stuff to a harddisk folder before executing
sh /virtualbox/VBoxLinuxAdditions.run; # run stuff

vim /var/log/vboxadd-install.log; # in case of error - check logs
vim /var/log/VBoxGuestAdditions.log; # in case of error - check logs

# check if modules/drivers were installed
modprobe|grep --color vbox; # should list a bunch of virtualbox related modules

reboot; # and test if it's workin' now


uninstall guest additions:

which vbox-uninstall-guest-additions 

# This executable provides a well-known way to uninstall VirtualBox Guest
# Additions in order to re-install them from a different source. A common case
# is uninstalling distribution-provide Additions to install the version provided
# by VirtualBox. Distributions should put the right command in here to do the
# removal, e.g. "dnf remove VirtualBox-guest-additions". Leaving kernel modules
# provided by the distribution kernel package in place is acceptable if the
# location does not clash with the VirtualBox-provided module location (misc).