Closed geerlingguy closed 4 years ago
Debugging info:
$ cat /var/log/vboxadd-setup.log
Building the main Guest Additions 6.0.12 module for kernel 4.18.0-80.7.1.el8_0.x86_64.
Error building the module. Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.18.0-80.7.1.el8_0.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
Makefile:958: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
make: *** [/tmp/vbox.0/Makefile-footer.gmk:111: vboxguest] Error 2
Could not find the X.Org or XFree86 Window System, skipping.
modprobe vboxguest failed
See above issue, upstream. Testing if that's the fix.
I keep getting the same problem, not sure why.
Trying a manual install:
$ vagrant upload /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso /tmp/VBoxGuestAdditions.iso
$ vagrant ssh
Inside the VM:
$ sudo su
# mkdir /mnt/vbguest
# mount -t iso9660 -o loop /tmp/VBoxGuestAdditions.iso /mnt/vbguest/
# cd /mnt/vbguest
# sh VBoxLinuxAdditions.run
...
Ended up with the same error.
So tried:
# yum install -y elfutils-libelf-devel
# sh VBoxLinuxAdditions.run
And... the install seems to get through the kernel mods, but still errors out at:
ValueError: File context for /opt/VBoxGuestAdditions-6.0.12/other/mount.vboxsf already defined
I'm wondering if the sh
context in the Packer build is different than the sh
context me in an interactive session? I'm going to debug the packer_rhel role to see if that package is showing up in yum list installed
right before attempting the additions installation.
It's definitely there during install:
elfutils-libelf-devel.x86_64 0.174-6.el8 @BaseOS
Weird. It looks like the install succeeds in the build:
virtualbox-iso: stdout_lines:
virtualbox-iso: - Verifying archive integrity... All good.
virtualbox-iso: - Uncompressing VirtualBox 6.0.12 Guest Additions for Linux........
virtualbox-iso: - 'VirtualBox Guest Additions: Starting.'
virtualbox-iso: - 'VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel '
virtualbox-iso: - modules. This may take a while.
virtualbox-iso: - 'VirtualBox Guest Additions: To build modules for other installed kernels, run'
virtualbox-iso: - 'VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>'
virtualbox-iso: - 'VirtualBox Guest Additions: or'
virtualbox-iso: - 'VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all'
virtualbox-iso: - 'VirtualBox Guest Additions: Building the modules for kernel '
virtualbox-iso: - 4.18.0-80.7.1.el8_0.x86_64.
Maybe Vagrant's guest additions detection doesn't work with CentOS 8 yet, and I've burned more than half a day on a ghost chase?
Actually, the check for Guest Additions happens inside Vagrant, and vagrant-vbguest just uses that flag to determine whether to install... so maybe it's a Vagrant issue?
Looks like they're not installed:
# lsmod | grep vboxguest
(no output)
# modprobe vboxadd
modprobe: FATAL: Module vboxadd not found in directory /lib/modules/4.18.0-80.7.1.el8_0.x86_64
Checking if /sbin/rcvboxadd quicksetup all
might help ... nope.
Going to have to give up on this for now. It seems to install without error, but it ain't working.
Maybe VirtualBox 6.0.12 fixed this.
@ifurther still experiencing the error under VBox 6 (ubuntu 18)
Closing as all development work for my packer boxes is moving into a central repository, see: https://github.com/geerlingguy/packer-boxes/issues/45
Unless using this box with the
vagrant-vbguest
Vagrant plugin, you won't end up with Guest Additions being found (and even then, it looks like the installation fails. Something may be breaking during the installation.When I started up box version 1.0.1, I got the following message:
The shell provisioner and
vagrant ssh
are still working fine, though.