How to install Oracle VM VirtualBox Guest Additions on Debian Linux?

The VirtualBox Guest Additions consist of device drivers and system applications that optimize the operating system for better performance and usability. The most useful features of Guest Additions are the installation of drivers for the graphics and seamless mouse capture/release.

 

  1. Insert the Guest Additions CD Image
    Insert -> Insert Guest Additions CD image...
     
  2. Cancel any automatically run prompt
     
  3. Open terminal
    Activities -> Search -> Terminal
     
  4. Change to root
    su
     
  5. Update and upgrade Debian
    apt-get update && apt-get upgrade
     
  6. Mount the CD
    mount /media/cdrom
     
  7. Download the GNU C Compiler (gcc), utility for directing compilation (make), Perl language (perl) & Header files for Linux amd64 configuration (linux-headers-amd64)
    apt install gcc make perl linux-headers-amd64
     
  8. Run the install
    sh /media/cdrom/VBoxLinuxAdditions.run
     
  9. Eject the CD
    Device -> Optical Drives -> Remove disk from virtual drive