This is my first question on VirtualBox forum. Hopefully someone is able to help me with it. I am relative new to Linux and has no deep knowledge about the system. Most of the issues I run into become solved by searching the internet. However, for the situation below I did not find any solution yet.
It is about the Devices -> Upgrade Guest Additions function which is available in VirtualBox since version 7.0. When I run an Ubuntu based Linux (e.g. Ubuntu or Mint) I get the following error after a few minutes.
Name: C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
Automatic update of Guest Additions has failed: files were installed, but kernel modules were not reloaded automatically. Please consider rebooting the guest.
Result Code:
VBOX_E_GSTCTL_GUEST_ERROR (0X80BB000F)
Component:
GuestSessionWrap
Interface:
IGuestSession {234f0627-866d-48c2-91a5-4c9d50f04928}
Long time I thought this was probably a bug in VirtualBox, but it looks like this is not the case.
I found out that when I run the following command the Upgrade Guest Additions function does not give an error anymore:
Code: Select all
sudo rcvboxadd reload
I could not find a solution for this on the internet. Hence my question here.
The following thins I already checked:
Check if GCC is installed in VM
Code: Select all
$ gcc --version
Code: Select all
gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code: Select all
make --version
Code: Select all
GNU Make 4.3
Dit programma is gecompileerd voor x86_64-pc-linux-gnu.
Copyright (C) 1988-2020 Free Software Foundation, Inc.
Licentie GPLv3+: GNU GPL versie 3 of nieuwer <URL/licenses/gpl.html>
Dit is vrije software: u mag het vrijelijk wijzigen en verder verspreiden.
Er is GEEN GARANTIE, voor zover de wet dit toestaat.
Code: Select all
$ uname -r output:
Code: Select all
$ apt search linux-headers-$(uname -r)
Code: Select all
linux-headers-6.5.0-17-generic/mantic-updates,mantic-security,now 6.5.0-17.17 amd64 [geïnstalleerd,automatisch]
Linux kernel headers for version 6.5.0 on 64 bit x86 SMP
Code: Select all
$ ls -l /usr/src/linux-headers-$(uname -r)
Code: Select all
drwxr-xr-x 3 root root 4096 feb 8 23:11 arch
lrwxrwxrwx 1 root root 31 jan 11 13:47 block -> ../linux-headers-6.5.0-17/block
lrwxrwxrwx 1 root root 31 jan 11 13:47 certs -> ../linux-headers-6.5.0-17/certs
lrwxrwxrwx 1 root root 32 jan 11 13:47 crypto -> ../linux-headers-6.5.0-17/crypto
lrwxrwxrwx 1 root root 39 jan 11 13:47 Documentation -> ../linux-headers-6.5.0-17/Documentation
lrwxrwxrwx 1 root root 33 jan 11 13:47 drivers -> ../linux-headers-6.5.0-17/drivers
lrwxrwxrwx 1 root root 28 jan 11 13:47 fs -> ../linux-headers-6.5.0-17/fs
drwxr-xr-x 4 root root 4096 feb 8 23:11 include
lrwxrwxrwx 1 root root 30 jan 11 13:47 init -> ../linux-headers-6.5.0-17/init
lrwxrwxrwx 1 root root 34 jan 11 13:47 io_uring -> ../linux-headers-6.5.0-17/io_uring
lrwxrwxrwx 1 root root 29 jan 11 13:47 ipc -> ../linux-headers-6.5.0-17/ipc
lrwxrwxrwx 1 root root 32 jan 11 13:47 Kbuild -> ../linux-headers-6.5.0-17/Kbuild
lrwxrwxrwx 1 root root 33 jan 11 13:47 Kconfig -> ../linux-headers-6.5.0-17/Kconfig
drwxr-xr-x 2 root root 4096 feb 8 23:11 kernel
lrwxrwxrwx 1 root root 29 jan 11 13:47 lib -> ../linux-headers-6.5.0-17/lib
-rw-r--r-- 1 root root 71937 jan 11 13:47 Makefile
lrwxrwxrwx 1 root root 28 jan 11 13:47 mm -> ../linux-headers-6.5.0-17/mm
-rw-r--r-- 1 root root 2120271 jan 11 13:47 Module.symvers
lrwxrwxrwx 1 root root 29 jan 11 13:47 net -> ../linux-headers-6.5.0-17/net
lrwxrwxrwx 1 root root 39 jan 11 13:47 rust -> ../linux-lib-rust-6.5.0-17-generic/rust
lrwxrwxrwx 1 root root 33 jan 11 13:47 samples -> ../linux-headers-6.5.0-17/samples
drwxr-xr-x 7 root root 12288 feb 8 23:11 scripts
lrwxrwxrwx 1 root root 34 jan 11 13:47 security -> ../linux-headers-6.5.0-17/security
lrwxrwxrwx 1 root root 31 jan 11 13:47 sound -> ../linux-headers-6.5.0-17/sound
drwxr-xr-x 4 root root 4096 feb 8 23:11 tools
lrwxrwxrwx 1 root root 32 jan 11 13:47 ubuntu -> ../linux-headers-6.5.0-17/ubuntu
lrwxrwxrwx 1 root root 29 jan 11 13:47 usr -> ../linux-headers-6.5.0-17/usr
lrwxrwxrwx 1 root root 30 jan 11 13:47 virt -> ../linux-headers-6.5.0-17/virt
To get the Upgrade Guest Additions available you need to have installed Guest Additions before. Otherwise the option is greyed out in the menu. I installed the Guest Additions via the Device -> Insert Guest Additions CD image... option. I did this the following way:
- Inset CD image
- Open the CD image by clicking the disc icon on the left side of the screen
- Right click -> Open in terminal
- type No errors after running
Code: Select all
sudo ./sh VBoxLinuxAdditions.run
Host:
Windows 10 Home
Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
8GB RAM
Guest
Ubuntu 23.10
4GB RAM
GNOME: 45.2
Hopefully someone is able to help me further. It is just a curious question. I saw someone else already asked about this. See:
viewtopic.php?t=109543