Rocky9 rebuild VboxGuestAdditions at every reboot
teluq-pbrideau opened this issue · 0 comments
I’ve discovered this bug while creating a vagrant box with nfs share:
Vagrant.configure("2") do |config|
config.vm.provider 'virtualbox'
config.vm.box = "roboxes/rocky9"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder '.', '/vagrant', type: "nfs", nfs_udp: false
end
There is a long delay when creating the box, and it finally crash with the error:
No guest IP was given to the Vagrant core NFS helper. This is an
internal error that should be reported as a bug.
When running with --debug
, i’ve discovered the command that run is /usr/bin/VBoxManage guestproperty get {ID} /VirtualBox/GuestInfo/Net/1/V4/IP
, that return No value set!
until the VboxGuestAdditions is recompiled every reboot.
While booting, ps aux
display a lot of stuff that VBoxGuestAdditions is compiling, and it take about 45 seconds on my hardware.
Running /bin/sh /opt/VBoxGuestAdditions-6.1.40/init/vboxadd status
once the guest additions are recompiled guide for the error, there is missing libraries. Installing manually these libraries solve the entire problem. No more recompiling at boot, no more delay, no more crash when booting a rocky9 box.
yum install libX11 libXt libXext libXmu
Extra Packages for Enterprise Linux 9 - x86_64 125 kB/s | 29 kB 00:00
Dependencies resolved.
==========================================================================================================
Package Architecture Version Repository Size
==========================================================================================================
Installing:
libX11 x86_64 1.7.0-7.el9 appstream 652 k
libXext x86_64 1.3.4-8.el9 appstream 39 k
libXmu x86_64 1.1.3-8.el9 appstream 74 k
libXt x86_64 1.2.0-6.el9 appstream 180 k
Installing dependencies:
libICE x86_64 1.0.10-8.el9 appstream 70 k
libSM x86_64 1.2.3-10.el9 appstream 41 k
libX11-common noarch 1.7.0-7.el9 appstream 152 k
libXau x86_64 1.0.9-8.el9 appstream 30 k
libxcb x86_64 1.13.1-9.el9 appstream 224 k
Transaction Summary
==========================================================================================================
Install 9 Packages
Total download size: 1.4 M
Installed size: 4.7 M