I primarily use VirtualBox to run Ubuntu guests. As such, I attempted to set up an Ubuntu 22.04 guest OS. Setting up the guest OS proceeded without issue. However, when I attempted to install the VBoxGuestAdditions-7.0.8, the process would not complete and the VM hung during the installation process. Here is the output on the terminal during the install:
Code: Select all
/mnt$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.8 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
/opt/VBoxGuestAdditions-7.0.8/bin/VBoxClient: error while loading shared libraries: libXt(.)so.6: cannot open shared object file: No such file or directory
/opt/VBoxGuestAdditions-7.0.8/bin/VBoxClient: error while loading shared libraries: libXt(.)so.6: cannot open shared object file: No such file or directory
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 5.15.0-75-generic.
update-initramfs: Generating /boot/initrd.img-5.15.0-75-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
Here are the step-by-step instructions to reproduce.
1. Boot up VM with installed guest OS (Ubuntu 22.04).
2. Run all updates:
Code: Select all
sudo apt update && sudo apt upgrade -y
Code: Select all
sudo apt install -y bzip2 gcc make perl
Code: Select all
wget https://download.virtualbox(.)org/virtualbox/7.0.8/VBoxGuestAdditions_7.0.8.iso
Code: Select all
sudo mount -o loop ~/path/to/VBoxGuestAdditions_7.0.8.iso /mnt
Code: Select all
sudo /mnt/VBoxLinuxAdditions.run
I have read in other threads that the 7.0.8 release "may have problems", so will be attempting to backport to 7.0.6 for the time being. That said, I'm surprised they've released 7.0.8 as the default download if this is happening.
I hope this helps with some troubleshooting or others who are encountering the same or similar issues with the Guest Additions on Linux guest OSes.