On Thu, 22 Feb 2024 16:54:23 -0500, bad sector <***@_invalid.net> wrote:
<snip>
Post by bad sectorPost by David W. HodginsIn the guest, the guest additions must be installed. That can come either
from linux distro as a package, or in a running guest use the "Devices" menu
entry to insert the guest additions iso. If it hasn't been previously downloaded,
you'll be asked whether it should be downloaded (from virtualbox.org).
Regards, Dave Hodgins
Thanks, that's exactly how it goes but the
download fails, at least I presume the error
message is one of failure.
"
Downloading Guest Additions
Name: VBoxGuestAdditions
Unknown reason
......................100%
"
Does the Geuest Additions iso HAVE to
be exactly the same version #? Maybe I
could just DL a next-best-one from somewhere?
It has to match the version of the kernel running on the host.
I'm running virtualbox-7.0.14-1.mga9 on the host.
When I select the devices menu entry to insert the guest additions iso, and
then select to download it, I get ...
"The VirtualBox Guest Additions disk image file has been successfully downloaded from https://download.virtualbox.org/virtualbox/7.0.14/VBoxGuestAdditions_7.0.14.iso and saved locally as /home/dave/.VirtualBox/VBoxGuestAdditions_7.0.14.iso.
Do you wish to register this disk image file and insert it into the virtual optical drive?"
As I'm using kde plasma, after inserting the disk image file, I use the "Disks
and Devices" systray entry to mount and open it, which opened it in dolphin.
Opening konsole, and the using "su -" to switch to root, the iso has been mounted
at "/run/media/dave/VBox_GAs_7.0.14". Note the version number matches the vb
version on the host. As root, I run
=============
# cd /run/media/dave/VBox_GAs_7.0.14
# ls -l|grep -i linux
-r-xr-xr-x 1 dave dave 6306247 Jan 15 09:03 VBoxLinuxAdditions.run*
[***@x9v VBox_GAs_7.0.14]# ./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
This system appears to have a version of the VirtualBox Guest Additions
already installed. If it is part of the operating system and kept up-to-date,
there is most likely no need to replace it. If it is not up-to-date, you
should get a notification when you start the system. If you wish to replace
it with this version, please do not continue with this installation now, but
instead remove the current version first, following the instructions for the
operating system.
If your system simply has the remains of a version of the Additions you could
not remove you should probably continue now, and these will be removed during
installation.
Do you wish to continue? [yes or no]
yes
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.6.14-desktop-2.mga9.
dracut: Executing: /usr/bin/dracut -f --kver 6.6.14-desktop-2.mga9
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
<snip>
dracut: dracut: using auto-determined compression method 'gzip'
dracut: *** Creating initramfs image file '/boot/initrd-6.6.14-desktop-2.mga9.img' done ***
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.
=============
Note that it uses dkms to build the modules for the kernel running in the guest,
so the dkms package must be installed, and the portion of the kernel source used
to compile kernel modules
In mageia those packages are called dkms, dkms-minimal, and for the kernel
source kernel-server-devel (or kernel-desktop-devel, etc., depending on the
flavor of the kernel that's running).
You can see in the above output, I already had the guest additions installed,
hence the kernel modules were already running.
As the guest is also running Mageia 9, I had installed in the guest ...
$ rpm -qa|grep virtualbox
virtualbox-guest-additions-7.0.14-1.mga9
I did the above changes in a snapshot for the vb guest so I can easily undo
the changes.
Regards, Dave Hodgins