Unable to Install the VirtualBox Guest Additions to My Ubuntu VM

Discussions about using Linux guests in VirtualBox.
Post Reply
HashMan
Posts: 10
Joined: 5. Feb 2017, 04:14

Unable to Install the VirtualBox Guest Additions to My Ubuntu VM

Post by HashMan »

Hi All,

I am trying to setup my virtual box lab environment, but I am unable to install VirtualBox Guest Additions. Host (PC) is Windows and Guest is Ubuntu.

I already went through these steps.

1. Update Ubuntu

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

2. On the virtual machine window, click on Devices > Insert Guest Additions CD Image.

3. On the command line type the command:

$ sudo ./VBoxLinuxAdditions.run

Error Message: sudo: /.VBoxLinuxAdditions.run: command not found

Alternatively, I used sh ./VBoxLinuxAdditions.run

Error Message: sh: 0: cannot open ./VBoxLinuxtAdditions.run: No such file

From the disk image from the desktop, I click VBoxLinuxAdditions.run to no avail. What do I do now?

References used:

a. https://www.youtube.com/watch?v=Kbez-XdXqrw&t=120s

b.https://docs.oracle.com/en/virtualizati ... ditionsiso

c. https://linuxconfig.org/install-virtual ... inux-guest

d. https://help.ubuntu.com/community/Virtu ... 1658085098
multiOS
Volunteer
Posts: 824
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: Unable to Install the VirtualBox Guest Additions to My Ubuntu VM

Post by multiOS »

Navigate to the 'CD' drive first using your linux file manager so that you can actually see the installation files, then launch the Terminal app from that location and try:

Code: Select all

sudo sh ./VBoxLinuxAdditions.run
Last edited by multiOS on 17. Jul 2022, 23:26, edited 1 time in total.
HashMan
Posts: 10
Joined: 5. Feb 2017, 04:14

Re: Unable to Install the VirtualBox Guest Additions to My Ubuntu VM

Post by HashMan »

Hi MutiOS,

It worked, thanks for your help. A new bee is getting the lab closer to learning time.

Thanks once more,

HashMan
multiOS
Volunteer
Posts: 824
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: Unable to Install the VirtualBox Guest Additions to My Ubuntu VM

Post by multiOS »

Thanks for confirming. Good luck with your project.
Post Reply