How to Install VirtualBox Extension Pack in Debian 9? – To make more use of the Debian 9 virtual machine you have installed on Oracle VM VirtualBox, you need to install Guest Additions.
How to Install VirtualBox Extension Pack in Debian 9?

How to Install VirtualBox Extension Pack in Debian 9?

Installing guest extensions for the Debian 9 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 virtual machine.

In our previous article, we implemented Debian 9 installation 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 virtual machine. Installation of Guest Additions in Linux environments may vary.

How to Install Guest Additions in Debian 9.3 Virtual Machine in Oracle VM VirtualBox?

Follow the steps below to install Extension Pack on the Debian 9 virtual machine running on VirtualBox.

   Step 1

If you run the Debian 9 virtual machine on VirtualBox as full screen, you will have the same problem as below. Therefore Guest Additions are required.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 2

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 3

In the window that opens, click Run.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 4

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 5

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 6

Type your root password and click on the Authenticate button.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 7

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

How to Install VirtualBox Extension Pack in Debian 9?

   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.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 9

The Guest Additions installation for Debian 9 did not start properly because you need to install the necessary packages as you see in the image below.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 10

Open the terminal on your desktop.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 11

To install the required packages, add the Debian 9 ISO image to the virtual machine.

How to Install VirtualBox Extension Pack in Debian 9?

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

How to Install VirtualBox Extension Pack in Debian 9?

   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.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 14

Wait while the necessary packages are installing.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 15

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 16

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 17

Wait while the installation is in progress.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 18

And finally, apply the m-a prepare command.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 19

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 20

Once again, open CDROM0 as Root.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 21

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 22

As you can see in the image below, this time the Guest Additions installation for Debian 9 has been successfully completed.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 23

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

How to Install VirtualBox Extension Pack in Debian 9?

   Step 24

After restarting the virtual machine, you can resize the virtual machine as follows.

How to Install VirtualBox Extension Pack in Debian 9?

   Step 25

Also, you can now use the Debian 9 virtual machine as Full Screen.

How to Install VirtualBox Extension Pack in Debian 9?

Our Recommendation

You can purchase “VirtualBox Book” from Amazon.

How to Install VirtualBox Extension Pack in Debian 9? ⇒ Video

For the Guest Additions installation of Debian 9 running on Oracle VM VirtualBox, you can watch the following video and also subscribe to our YouTube channel to support us…

  Final Word

How to Install VirtualBox Extension Pack in Debian 9?  – In this article, we have implemented the guest additions required for Debian 9.3 running on VirtualBox on the Windows 10 operating system. Thanks for following us!

If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!

Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!

Articles Related to How to Install VirtualBox Extension Pack in Debian 9

Products Related to How to Install VirtualBox Extension Pack in Debian 9
Related Products


Leave a Reply

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

one × four =