Updating guest additions on ubuntu/focal64 hits timeout

Bug #2023758 reported by Giacomo Tommaso Petrucci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
New
Medium
John Chittum
virtualbox (Ubuntu)
New
Undecided
Unassigned
virtualbox-guest-additions (Ubuntu)
New
Undecided
Unassigned

Bug Description

On my host I have a more recent version of the VirtualBox guest additions, so while provisioning the VM Vagrant tries to update them. But the installation hangs and finally hits a timeout. Here you can find the full output: https://pastebin.com/uKVCczX0.

The content of /var/log/vboxadd-setup.log is:

$ cat /var/log/vboxadd-setup.log
Building the main Guest Additions 7.0.8 module for kernel 5.4.0-150-generic.
Building the shared folder support module.
Building the graphics driver module.
Could not find the X.Org or XFree86 Window System, skipping.

Content of /etc/cloud/build.info:
$ cat /etc/cloud/build.info
build_name: server
serial: 20230612

Edit:
You can reproduce this using the following minimal Vagrantfile on an host with a recent version of the guest additions:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/focal64"
end

description: updated
Revision history for this message
Giacomo Tommaso Petrucci (gt95) wrote :

A similar, but slightly different thing, also happens with ubuntu/jammy64. There the installation hangs without hitting the timeout, and I manually interrupted it after more than an hour (close to an hour and a half). Here is the full output: https://pastebin.com/xLYRHnf1.
The Vagrantfile that I used is as follows:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/jammy64"
end

Robby Pocase (rpocase)
Changed in cloud-images:
importance: Undecided → Medium
assignee: nobody → John Chittum (jchittum)
Revision history for this message
John Chittum (jchittum) wrote :

Could you also provide all the following so I can see about setting up a reproducer:

Host OS and Host OS Version
Virtualbox Version

Canonical produced vagrant images already come with a version of VBox Guest Additions that matches the kernel. There is no functional need in the guest to install a new version. Could you confirm if the vagrant images work without attempting to use the vbox guest additions plugin to install the latest drivers?

For the Jammy issue, you may be running into a different issue, which is a mismatch in key algorithms. the default vagrant key may be incompatible. For the Jammy version, could you try replacing the default ssh key with your own via a setup script? If you're not already using ansible or puppet, you can do shell provisioner: https://stackoverflow.com/questions/30075461/how-do-i-add-my-own-public-key-to-vagrant-vm

Revision history for this message
Giacomo Tommaso Petrucci (gt95) wrote :

I'm running an up-to-date installation of Arch Linux, the kernel version is

$ uname -a
Linux lenovo 6.3.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 10 Jun 2023 00:35:35 +0000 x86_64 GNU/Linux

VirtualBox version is Oracle VM VirtualBox VM Selector v7.0.8

How can I prevent the vbox guest additions plugin from installing the latest drivers?

Revision history for this message
John Chittum (jchittum) wrote :

the easiest is, of course, to uninstall the plugin. If that's not an option, you can utilize configuration

https://github.com/dotless-de/vagrant-vbguest

there's a `no_install` option that looks like it should do the trick.

There is a high likelihood of mismatch between virtualbox, vbox guest, and the guest kernels. We can only provide basic help on non-Ubuntu based hosts. Especially given the big different in Arch w/ a 6.3.7 kernel and a guest with a 5.4 kernel.

The other option is to use a different version of Virtualbox. the version in Ubuntu 22.04 is 6.1.38.

I can try on a lunar system, which is running 7.0.6 Virtualbox.

Revision history for this message
Giacomo Tommaso Petrucci (gt95) wrote :

I can confirm that uninstalling the plugin lets the provisioning complete successfully for both images, here is the output for Focal: https://pastebin.com/9ZwguuBp
And here is the output for Jammy: https://pastebin.com/3kEPrWGL

Revision history for this message
Patrick Karjala (pkarjala) wrote :

Adding some additional context to this: Virtual Box 6.1.x will only be supported until December 2023 as per https://www.virtualbox.org/wiki/Downloads

Because of the general transition to Virtual Box 7.0.x on various host OSes, it may be time to consider a transition to the guest additions in the base Ubuntu 22.04 image to the 7.x version of guest additions?

Revision history for this message
John Chittum (jchittum) wrote :

I cannot speak to Ubuntu and Debian maintainer's stances on what upstream does with support. Generally speaking, without an SRU Exception[0], a package will remain on the same version as is released on the LTS version, with patches being applied. On Jammy, that is based on 6.1.38.

Currently Virtualbox is in `universe`, which means it receives community support. I can add Virtualbox to this bug for any maintainers to respond to plans.

[0] https://wiki.ubuntu.com/StableReleaseUpdates#Why

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.