Skip to content

Guest Additions

joshuamcgrady edited this page Aug 11, 2021 · 3 revisions

Errors:

sudo /media/$USER/VBox*/VBoxLinux*.run: command not found

sudo /media/$USER/VBox*/VBoxLinux*.run: No such file or directory

Fix:

Please ensure that you follow all of the steps.

Dialog Warning s CAUTION! It may appear that your terminal has become frozen/stalled when running one or more of the following commands in this guide. Do NOT close the Terminal or reboot your computer/VM while these commands are running. Please allow them to finish. Stopping these installation procedures while they are taking place can result in the virtual disk of your VM becoming corrupted which will lead to the VM no longer working and/or booting up.

1. Unmount the Guest Additions ISO in both the VM (Virtual Machine) and Virtual Box

Unmount the Guest Additions ISO in the VM and Virtual Box.

1.1 Unmounting Guest Additions in the VM:

Open the File Manager in your Xubuntu OS (Operating System) by clicking the Menu button Xubuntu Menu Button in the top-left corner of the Xubuntu VM, then selecting File Manager File Manager.

Check under Devices on the left-hand side of the File Manager for a device named similar to VBox_GAs_6.0.14 and click the Eject button.

Dialog Info s Note: Do not be concerned if you do not find the Guest Additions ISO mounted in the File Manager. Please continue with the rest of the steps.

1.2 Unmounting Guest Additions in the VM:

Shutdown the VM then open Virtual Box.

Look under Storage and click the filename that appears next to IDE Secondary Master which will make a pop-up window appear. Select Remove disk from Virtual Drive from this pop-up window.

Once you have unmounted the ISO, it should state [Optical Drive]: Empty instead of showing a filename.

Dialog Info s Note: Do not be concerned if you do not find see the Guest Additions ISO mounted in Virtual Box. Please continue with the rest of the steps.

2. Mount Guest Additions from the Virtual Box VM Title Bar:

Start your VM and wait for the Operating System to load.

Once the Operating System has loaded, click Devices at the top of the screen and then select Insert Guest Additions CD Image... at the bottom of the dropdown menu.

3. Open Terminal in the Mounted Guest Additions ISO:

A folder should open automatically showing the files of the Guest Additions ISO.

Dialog Info s NOTE: If a folder did not automatically open to the Guest Additions ISO folder, navigate to it using the File Manager.

Right-click on an empty space in this folder to bring up a context menu, and then select Open Terminal Here.

The Terminal will then look as follows when opened:

4. Run the following commands before installing Guest Additions:

In the Terminal that has opened, run these commands one at a time, ensure that they are spelt exactly the same as written:

Dialog Info s NOTE: You will most likely be prompted for your password when running these commands. It may not appear that the Terminal is accepting any input when typing in your password. This is a security precaution of linux. Please continue to type in your password and press Enter when done.

sudo apt update

sudo apt upgrade

sudo apt install gcc make perl

5. Run the Guest Additions installation command:

Once the commands above have finished, please run the following command in the Terminal that you previously opened. This will install Guest Additions to your Xubuntu OS:

sudo sh VBoxLinuxAdditions.run

Your Terminal will look similar to the image below once it begins installing.

6. Turn on Shared Clipboard between the Host OS and your VM:

Once Guest Additions has finished installing, you can turn on Copy Pasting between your Host OS and the VM.

Select Devices from the Virtual Box title bar of your VM, navigate into Shared Clipboard and then select Bidirectional so that it becomes selected.

7. Reboot your VM:

You are now free to reboot your VM. Once it has rebooted you are done with the Guest Additions installation procedure.