How to Install Virtualbox Guest Additions on Debian Step by Step

In this tutorial I will show you how to install virtualbox guest additions on Debian virtual machine. Guest additions allow your guest OS to be full screen. So you can use the guest OS just like you are using a normal OS. I am using elmentary OS as the host OS, but the following method works for any host OS.

Tip: Guest additions are to be installed inside a guest OS.

Install Virtualbox Guest Additions on Debian

Log into Debian (Guest OS) as root and update your software.

apt-get update && apt-get upgrade

Install required packages for building kernel modules.

apt-get install build-essential module-assistant

Prepare your system for building kernel module

m-a prepare

In the virtual machine window, select Devices > Insert Guest Additions CD image.

virtualbox guest addition

It will ask you to download the guest additions iso image. Click Download.

virtualbox guest additions

virtualbox guest additions

If you can’t download it from the above window, then go to http://download.virtualbox.org/virtualbox/. Select a version and download VBoxGuestAdditions iso to your home directory.

Once downloaded, insert the iso image. If you see the following error, click force umount.

Install Virtualbox Guest Additions on Debian

In Debian terminal, run

mount /media/cdrom

Under /media/cdrom directory there’s a shell script named VboxLinuxAdditions.run. Run this script.

sh /media/cdrom/VBoxLinuxAdditions.run

Outputs

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.34 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.16 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.

Note that building kernel module must be successful. Now restart your virtual machine. You should be able to enter full screen mode by pressing Right Ctrl + F.

Wrapping Up

I hope this tutorial helped you install VirtualBox guest additions in Debian. You may also want to read:

As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂

Rate this tutorial
[Total: 73 Average: 4.6]

15 Responses to “How to Install Virtualbox Guest Additions on Debian Step by Step

  • Bruno Sauer
    3 weeks ago

    Thank you LinuxBabe – you saved my day :->

  • thanks mate 😉

  • Thanks for the info! Worked like a charm! (-:

  • Andreas
    5 years ago

    Thanks

  • Thanks. This helped me sort out my problem.

  • Mehmet SADIK
    5 years ago

    Thank you so much. It was a great help. It really worked well for me.

  • Thanks

  • Perfect ! Thank you 😉

  • Zyo Rjaya
    5 years ago

    Thank you, I try this tutorial and success fully.

  • Thanks a lot!

  • Rick Lell
    5 years ago

    LinuxBabe… you are truly a blessing to the community. Peace.

  • almost accurate. Pressing Right ctrl-F did not do anything in my my linux guest installation: Debian x64.
    I had to type “lxrandr”, which started a resolution-choosing program.
    There I could select different resolutions, try them out, and finally accept.
    Rock n roll
    A

  • great post. regards

  • Jerry Gentry
    3 years ago

    This was the most usable method I came across. I followed your instructions and finally got Debian in virtualbox to go fullscreen. Thanks!

  • To the point. Thanks and congrats

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here