Are 7.0.14 GAs installed correctly on Ubuntu 22.04

Discussions about using Linux guests in VirtualBox.
Post Reply
jes100
Posts: 3
Joined: 26. Jan 2024, 13:34

Are 7.0.14 GAs installed correctly on Ubuntu 22.04

Post by jes100 »

Hi all,

I'm a relative newbie to VB and a complete newbie to Ubuntu, so please treat me gently ;-).

My main objective is to install MySQL somewhere but I'm having lots of problems just getting a working VM up and running. Here's what I'm using, if you need anything else, please just ask:

Host : Windows 10 22H2
Virtual Box : 7.0.14
Guest : $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

I'm trying to install the GAs for 7.0.14 (because someone suggested that they may be required to get shared clipboards working).

Code: Select all

jes@ubuntu1:/media/jes/VBox_GAs_7.0.14$ sudo ./VBoxLinuxAdditions.run 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.14 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Removing installed version 7.0.14 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-15-generic.
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: cannot reload kernel modules: one or more module(s) 
is still in use
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.

es@ubuntu1:/media/jes/VBox_GAs_7.0.14$ cat /var/log/vboxadd-setup.log
kernel modules and services were not reloaded
Post-reboot:

Code: Select all

jes@ubuntu1:/media/jes/VBox_GAs_7.0.14$ lsmod | grep vboxguest
vboxguest              57344  1

jes@ubuntu1:/media/jes/VBox_GAs_7.0.14$ /usr/sbin/VBoxService --version
7.0.14r161095

jes@ubuntu1:~$ dpkg -l | grep virtualbox-guest
ii  virtualbox-guest-utils                     6.1.48-dfsg-1~ubuntu1.22.04.1           amd64        x86 virtualization solution - non-X11 guest utilities
ii  virtualbox-guest-x11                       6.1.48-dfsg-1~ubuntu1.22.04.1           amd64        x86 virtualization solution - X11 guest utilities

jes@ubuntu1:~$ sudo modprobe vboxadd
[sudo] password for jes: 
modprobe: FATAL: Module vboxadd not found in directory /lib/modules/6.5.0-15-generic

jes@ubuntu1:~$ sudo modprobe vboxvfs
modprobe: FATAL: Module vboxvfs not found in directory /lib/modules/6.5.0-15-generic
What, if anything, am I doing wrong ? What, if anything, am I/is my VM missing in order to be able to install GAs (and confirm that they are correctly installed) ?

Thanks loads in advance for any guidance that anyone's able to offer.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Are 7.0.14 GAs installed correctly on Ubuntu 22.04

Post by scottgus1 »

Guest Additions have prerequisites in Linux, same as Virtualbox on the host, see https://www.virtualbox.org/manual/ch04. ... ions-linux and https://www.virtualbox.org/manual/ch02. ... nux-prereq

After implementing the above, Please start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. In the "Logs" subfolder, zip the VM's "vbox.log", and post the zip file, using the forum's Attachments tab. (Configure your host OS to show all extensions so you can find the "vbox.log", not "vbox.log.1", etc.)
jes100
Posts: 3
Joined: 26. Jan 2024, 13:34

Re: Are 7.0.14 GAs installed correctly on Ubuntu 22.04

Post by jes100 »

Hi scottgus1, thanks for getting back to me.

Will do as you suggested and get back to you.
jes100
Posts: 3
Joined: 26. Jan 2024, 13:34

Re: Are 7.0.14 GAs installed correctly on Ubuntu 22.04

Post by jes100 »

Hi all,

Just FYI for any other newbies who might be struggling with GA issues and gnashing teeth in a similar way to me .....

On another, newly-created Virtual Box 7.0.14 VM running Ubuntu 22.04:

====================================================================
= Confirmed GAs NOT installed
====================================================================

Code: Select all

[root@localhost VBox_GAs_7.0.14]# lsmod | egrep 'Module|guest'
Module                  Size  Used by
vboxguest              53248  0
====================================================================
= Installing GAs in VM - Attempt #1 failed
====================================================================

Code: Select all

jes@ubuntu2:/media/jes/VBox_GAs_7.0.14$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.14 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run 
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-15-generic.

This system is currently not set up to build kernel modules.

Please install the gcc make perl packages from your distribution.					

VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules were not reloaded
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
====================================================================
= Installed make, perl, gcc
====================================================================

Code: Select all

jes@ubuntu2:/media/jes/VBox_GAs_7.0.14$ sudo apt-get install make perl gcc
< LINES REMOVED FOR CLARITY >
====================================================================
= Installing GAs in VM - Attempt #2 failed
====================================================================

Code: Select all

jes@ubuntu2:/media/jes/VBox_GAs_7.0.14$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.14 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Removing installed version 7.0.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-15-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules were not reloaded
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
====================================================================
= Installed gcc-12
====================================================================

Code: Select all

jes@ubuntu2:/media/jes/VBox_GAs_7.0.14$ sudo apt-get install gcc-12
< LINES REMOVED FOR CLARITY >
====================================================================
= Installing GAs in VM - Attempt #3 worked
====================================================================

Code: Select all

jes@ubuntu2:/media/jes/VBox_GAs_7.0.14$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.14 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Removing installed version 7.0.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-15-generic.
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic 
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.14 r161095 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some user session specific services (Shared Clipboard, Drag and Drop, Seamless or Guest Screen Resize) were not restarted automatically
====================================================================
= Confirmed GAs ARE installed
====================================================================

Code: Select all

jes@ubuntu2:~$ lsmod | grep vboxguest
vboxguest             532480  7 vboxsf
Thanks again @scottgus1!
Post Reply