How to Install VirtualBox Guest Additions in Debian 10

In this article, we will install Guest Additions for Debian 10 virtual machine running on Oracle VM VirtualBox software.

How to Install VirtualBox Guest Additions in Debian

How to Install Guest Additions in Debian Virtual Machine

To use the Debian 10 virtual machine that you have installed in Oracle VM VirtualBox more efficiently, you need to install Guest Additions.

Installing guest extensions for the Debian 10 virtual machine will increase the performance of the virtual machine, and you can use the virtual machine screen resolution as Full Screen. Also, after installing guest additions, you can exchange files between the physical computer and the VM.

In our previous article, we implemented Debian 10 setup using VirtualBox. You can find this article on the link below.

In this article, we will install the Guest Additions plugin for the VirtualBox Debian 10 VM. Installation of Guest Additions in Linux distributions may vary.

How to Build Guest Additions Step by Step

Follow the stages below to setup Client Software on the Debian 10 VM running on VBox.

   Step 1

If you run the Debian 10 VM on VBox as full screen, you will have the same problem as below. Therefore Guest Additions are required.

Debian VM full screen error

   Step 2

From the menu, click on Devices and from the menu opened select Insert Guest Additions CD image.

Insert Guest Additions CD image

   Step 3

In the window that opens, click Run.

This medium contains software intended to be automatically started

   Step 4

As shown in the image below, the Client Software could not be started automatically on Debian. Click the OK button to close the window.

Error autorunning software

   Step 5

Go to the VBox_GAs_6.0.4 added to the virtual machine and click on the “Open as Root” option.

Open as root

   Step 6

Type your Debian root password and click on the Authenticate button.

Authentication is required to run Nemo as root

   Step 7

To open the terminal in the location, click the Right button / Open in Terminal.

Right button / Open in Terminal in Debian

   Step 8

Once the terminal is turned on, you can use the “ls” command to view files in the media. In /media/cdrom0#, type sh VBoxLinuxAdditions.run and press Enter.

sh VBoxLinuxAdditions.run

   Step 9

The VBox Driver Pack installation did not start properly because you need to setup the necessary packages as you see in the image below.

setup the necessary packages

   Step 10

Open the terminal on your desktop.

Open in Terminal

   Step 11

To build the required packages, add the Debian 10 ISO image to the virtual machine.

Debian ISO image

   Step 12

Use the command “su –” on the terminal, then type your root password and press Enter. Next, apply the apt update command.

In the image below you can see that you need to attach the Debian 10 ISO image!

apply the apt update command

   Step 13

Now, type the apt upgrade command and press the Enter button. The setup informs you that it will use additional space and press Yes (Y) to confirm and press Enter.

apt upgrade

   Step 14

Wait while loading the required packages.

Unpacking linux-image

   Step 15

In this step, type apt install build-essential module-assistant dkms and press the Enter button.

apt install build-essential module-assistant dkms

   Step 16

Type Y for the question Do you want to continue and press Enter.

Do you want to continue?

   Step 17

Wait while the installation is in progress.

Setting up gcc

   Step 18

And finally, apply the m-a prepare command.

m-a prepare

   Step 19

After installing the necessary packages for the virtual pc, you can proceed installing the Guest Additions.

Guest Additions Setup Done

   Step 20

Once again, open CDROM0 as Root.

Running Terminal

   Step 21

To start Guest Additions setup, run sh VBoxLinuxAdditions.run.

sh VBoxLinuxAdditions.run

   Step 22

As you can see in the image below, this time the installation has been successfully completed.

VirtualBox Guest Additions: Starting

   Step 23

To restart the Debian 10 virtual machine, execute shutdown -r now.

shutdown -r now

   Step 24

After restarting the VM, you can resize it as follows.

Virtual Machine Screen Size

   Step 25

Also, you can now use the Debian 10 VM as Full Screen.

VM Full Screen

How to Install Guest Additions ⇒ Video

For the additional software installation on Oracle VM VBox, you can watch the following video and also subscribe to our YouTube channel to support us…

   Final Word


In this article, we have implemented the guest additions required for Debian 10 running on VirtualBox on the Windows 10 operating system. Thanks for following us!

   Related Articles


How to Install Linux Mint on VirtualBox
♦ How to Configure Guest Additions on Linux Mint
♦ How to Use Snapshot in VirtualBox on Windows 10
♦ How to Clone VM in VirtualBox on Windows 10
♦ How to Re-Add Virtual Machines in VirtualBox

Add a Comment

Your email address will not be published. Required fields are marked *

shares
error: