Virtualbox: install guest addition in a GNU/Linux OS as guest

This is the first issue to solve after the OS installation.

After the installation of the Virtualbox Guest Addition, you will have some features as shared folders, better video support, seamless windows, time synchronization.

Thus, you have to start the virtual machine and follow this simple recipe.

You can obtain the Virtualbox Guest Addition in two ways:

  1. Download the .iso file of the choosen version from this link;
  2. click on Devices in the top bar to the leftvirtualbox_1
    then scroll to Insert Guest Addition CD imagevirtualbox_2

  3. Now, open a terminal in the virtual machine, login as root, resynchronize the package index files from their sources with apt-get update and then install the newest versions of all packages currently installed on the system with apt-get upgrade. Then install the dkms package:
    [email protected]:~# apt-get install dkms

  4. For Debian distro, install the ModuleAssistant package:
    [email protected]:~# apt-get install module-assistant

    and then type
    [email protected]:~# m-a prepare

    to download the headers corresponding to the current kernel, and other ‘build-essential’ tools.

  5. Move inside the folder where the VBOXADDITIONS has been mounted (usually in /media/cdrom0) and install the Virtualbox Guest Addition:
    [email protected]:~# cd /media/cdrom0
    [email protected]:/media/cdrom0# sh

  6. Now simply reboot your virtual machine, and the Virtualbox Guest Addition is installed (as prove of that the machine will appear in full-screen mode:

About Francesco Serafin

I am a PhD student at the Department of Civil, Environmental and Mechanical Engineering at the University of Trento. My two greatest loves: Computer Science and Water (take three with my Lenovo!:D). As a result, the aim of my life is to make both passions coexist. My gpg public key available at

Leave a Reply

Your email address will not be published.