Fix libvirt.sh install script for Ubuntu 26.04#3410
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the libvirt installation helper to select an available QEMU package at install time, improving compatibility across Debian/Ubuntu variants where qemu-kvm may not be present.
Changes:
- Introduce a
QEMU_PACKAGEvariable defaulting toqemu-kvm. - Switch to
qemu-system-x86when it appears to be available viaapt-cache search. - Use the selected QEMU package in the
apt-get installcommand for libvirt dependencies.
* Use available QEMU package * Pin vagrant to version 2.4.9-1 (otherwise the libvirt plugin does not compile)
1c92353 to
c9997b3
Compare
|
@sdargoeuves @ssasso -- It would be great if you could check whether this works for you. The install script ran fine on Ubuntu 22.04 and 26.04, but my 26.04 VM ran out of disk space (a story for another day), so I couldn't run "netlab test libvirt". I also had to pin Vagrant to a higher version (2.9.4-1) or it wouldn't compile the libvirt plugin. I will upgrade Vagrant on my primary server (still on Ubuntu 22.04) to see whether it works reliably. |
|
I suspect running this on a system with preinstalled |
Good point. Any ideas (apart from a warning saying "don't use this script on custom KVM installations")? |
No description provided.