How to Install VirtualBox Guest Additions in Debian 9.8

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

How to Install VirtualBox Guest Additions in Debian 9.8

Installing guest extensions for the Debian 9.8 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 9.8 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 9.8 VM. Installation of Guest Additions in Linux environments may vary.

How to Install Guest Additions in Virtual Machine in Oracle VM VirtualBox

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

   Step 1

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

Debian 9.8 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.

How to Install VirtualBox Guest Additions in Debian 9.8

   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.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 5

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

VBox_GAs_6.0.4

   Step 6

Type your root password and click on the Authenticate button.

Authenticate

   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 in Debian 9.8

   Step 10

Open the terminal on your desktop.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 11

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

Debian 9.8 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 9.8 ISO image!

apply the apt update command

   Step 13

Now, type the apt upgrade command and press Enter. 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.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 15

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 16

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 17

Wait while the installation is in progress.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 18

And finally, apply the m-a prepare command.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 19

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 20

Once again, open CDROM0 as Root.

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 21

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 22

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 23

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 24

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

How to Install VirtualBox Guest Additions in Debian 9.8

   Step 25

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

How to Install VirtualBox Guest Additions in Debian 9.8

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 9.8 running on VirtualBox on the Windows 10 operating system. Thanks for following us!

If this article is helpful, please send us feedback by commenting…

   Related Articles


How to Install Linux Mint 18 on VirtualBox in Windows 10
♦ How to Install VirtualBox Guest Additions on Linux Mint
♦ How to Take 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 *

4 × 3 =