Install VirtualBox Guest Additions on Debian 10 Buster

|
Published:
|
|

So if you have installed Debian 10 Buster on VirtualBox, you might have realized that it is not in full-screen view by default. If you need to set it to full-screen view, follow though this guide on how to install VirtualBox Guest Additions on Debian 10 Buster. There are so many feature that VirtualBox Guest additions can offer. This include;

The Guest Additions offer the following features:

  • Mouse pointer integration
  • Shared folders for easy sharing of files between the host and the guest
  • Ensures better and accelerated video performance.
  • Seamless windows integration
  • Generic host/guest communication channels that enables you to control and manage guest execution.
  • Provides Host-Guest time synchronization.
  • Shared clipboard between host and guest vm.
  • Automated logins.

To read more on VirtualBox Guest addition features on the VirtualBox User Manual.

Install Debian 10 Buster on VirtualBox by following the link below;

Install Debian 10 Buster on VirtualBox

Install VirtualBox Guest Additions on Debian 10 Buster

VirtualBox guest additions can be installed through the use VirtualBox guest addition ISO. The Guest additions ISO file can be mounted on a VirtualBox virtual machine via the Virtualbox manager or by installing with the package manager.

To mount the guest additions ISO file using VirtualBox manager, open the virtual machine and click Devices > Insert Guest Additions CD image on the Menu bar.

Our Debian 10 Buster uses KDE Plasma as desktop manager. Hence, when VirtualBox guest addition ISO file is inserted, you are prompted on how to open. Select Open with File Manager.

install VirtualBox Guest Additions on Debian 10 Buster

It is also mounted as a removable device. You can open the file manager and click the iso file to mount it. It is mounted under , under /media/cdrom0.

mount virtualbox guest additions on  debian 10 buster

Install VirtualBox Guest Additions

Now, to install VirtualBox guest additions, you need to have the kernel headers, DKMS framework, and build tools installed. To verify whether these tools are installed, you can run the command below;

dpkg -l | grep -E "dkms|linux-headers-$(uname -r)|build-essential"
ii  build-essential                               12.6                         amd64        Informational list of build-essential packages
ii  dkms                                          2.6.1-4                      all          Dynamic Kernel Module Support Framework
ii  linux-headers-4.19.0-5-amd64                  4.19.37-5                    amd64        Header files for Linux 4.19.0-5-amd64

If none is installed, run the command below to install them;

sudo apt update -y && apt upgrade
sudo apt install dkms linux-headers-$(uname -r) build-essential

Once the installation is done, you can now install VirtualBox guest additions by executing the command below;

sudo sh /media/cdrom0/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.8 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.8 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.19.0-5-amd64.
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted

Once the installation is done, restart your virtual machine in order to reload the kernel modules.

Once the system reboots, it should boot to full-screen mode.

Debian 10 Buster full screen on virtualbox
debian 10 buster full screen desktop

Well, that is all on how to install VirtualBox Guest Additions on Debian 10 Buster. Enjoy

Related Tutorials;

Install VirtualBox Guest Additions on Ubuntu 18.04

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

10 thoughts on “Install VirtualBox Guest Additions on Debian 10 Buster”

  1. Followed the instructions and somehow it didn’t work. After the reboot the screen stays black. Started twice from scratch with an default installation of debian buster 10.1. Any ideas?

    Reply
  2. Thank you for this tutorial. Unfortunately, while guest additions is installed (and the version matches the Virtual box installation – both are VirtualBox VM 6.1.6 r137129) and I tried increasing the graphics memory to 128M, it doesn’t seem to work for me…

    This is for a Debian 10 guest running on an Ubuntu host.

    I’ve tried re-installing multiple times to no avail.
    I noticed that under View, Auto-resize Guest Display is grey out.

    Does anyone have any suggestions?
    Here is some additional info:

    $ dpkg -l | grep -E “dkms|linux-headers-$(uname -r)|build-essential”
    ii build-essential 12.6 amd64 Informational list of build-essential packages
    ii dkms 2.6.1-4 all Dynamic Kernel Module Support Framework
    ii linux-headers-4.19.0-8-amd64 4.19.98-1+deb10u1 amd64 Header files for Linux 4.19.0-8-amd64

    $ uname -r
    4.19.0-8-amd64

    Thank you in advance!!

    Will

    Reply
    • Hello Will, if you have properly installed guest additions, then I would suggest;
      1. one more reboot of the vm and recheck the auto-resize if the vm upon boot up, doesn’t auto-resize.
      2. Switch the graphics controller to btwn VBoxVGA or VBoxSVGA or VMSVGA
      try and see

      Reply

Leave a Comment