-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install Parallels Tools on first boot with Bento Ubuntu 22.04 image #458
Comments
When I set When I set |
@mpdude This image seems to be running a very old version of the QEMU hypervisor, you could try to build your own vagrant box using this packer recipe found here https://github.com/Parallels/packer-examples/tree/main We are in the process of creating our own vagrant images in VagrantCould, meanwhile, you can also join our Discord Server to discuss any doubts or check when this will be released |
When using [this Ubuntu Vagrant box](https://app.vagrantup.com/bento/boxes/ubuntu-22.04/versions/202303.13.0) with Parallels Desktop, the `vagrant-parallels` plugin upon boot detects that the version of Parallels Tools installed in the box is outdated and tries to update it. The problem is that a due re-compilation of Parallels Tools depends on `linux-headers-5.15.0-67-generic`, with the package name/version matching the version of the currently running kernel. However, the Kernel version included in the box image has since then replaced with a newer version (in the upstream Ubuntu repositories), and it seems the matching header files can no longer be installed. They probably came from an Ubuntu security update release channel where the package has been replaced with a newer version since the box was built. Full details can be found in the issue at Parallels/vagrant-parallels#458. By keeping the `linux-headers-*` package during/after installation, also a freshly booted box should be able to perform the update. The package is, in fact, installed automatically when Parallels Tools are added, but after that is is removed by the `cleanup_ubuntu.sh` script.
When using [this Ubuntu Vagrant box](https://app.vagrantup.com/bento/boxes/ubuntu-22.04/versions/202303.13.0) with Parallels Desktop, the `vagrant-parallels` plugin upon boot detects that the version of Parallels Tools installed in the box is outdated and tries to update it. The problem is that a due re-compilation of Parallels Tools depends on `linux-headers-5.15.0-67-generic`, with the package name/version matching the version of the currently running kernel. However, the Kernel version included in the box image has since then replaced with a newer version (in the upstream Ubuntu repositories), and it seems the matching header files can no longer be installed. They probably came from an Ubuntu security update release channel where the package has been replaced with a newer version since the box was built. Full details can be found in the issue at Parallels/vagrant-parallels#458. By keeping the `linux-headers-*` package during/after installation, also a freshly booted box should be able to perform the update. The package is, in fact, installed automatically when Parallels Tools are added, but after that is is removed by the `cleanup_ubuntu.sh` script. Signed-off-by: Matthias Pigulla <mp@webfactory.de>
Fixed in chef/bento#1526 |
Hey there,
I have a problem to bring up a box with the following Vagrantfile:
The
box_version
is given for stability/reproducibility. It's this one.Here is the abbreviated result from
vagrant up
:This is the kernel currently running in the VM:
Also, a manual install attempt fails:
My guess is that this base image was built with a kernel version that is not the one of the original Ubuntu 22.04 distribution, but rather from an intermediate (security?) update. However, the
linux-headers
package is no longer available in a matching version. I don't know for sure, but maybe the Ubuntu "security" APT repositories provide only current versions of updated packages?When I run a full
apt-get -y dist-upgrade
, the5.15.0-79-generic
kernel version will be installed, the current security version as of today. And uponvagrant reload
, the installation of Parallels Tools will proceed.The problem is that there is no clean
vagrant up
way of bringing up this box: Before installing Parallels Tools, we'd need to install the latest updated kernel package and reboot – and that would be necessary as part of the initial bootstrap process.Is there anything we can do about this from the
vagrant-parallels
side of things?Is this something that needs to be addressed by the box providers, e. g. bento? Would they need to provide a base image with a (possibly very outdated) kernel version that always has a
linux-headers
version available?The text was updated successfully, but these errors were encountered: