Skip to content

Fix libvirt.sh install script for Ubuntu 26.04#3410

Open
ipspace wants to merge 1 commit into
devfrom
u26-libvirt-install
Open

Fix libvirt.sh install script for Ubuntu 26.04#3410
ipspace wants to merge 1 commit into
devfrom
u26-libvirt-install

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented May 18, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_PACKAGE variable defaulting to qemu-kvm.
  • Switch to qemu-system-x86 when it appears to be available via apt-cache search.
  • Use the selected QEMU package in the apt-get install command for libvirt dependencies.

Comment thread netsim/install/libvirt.sh Outdated
@ipspace ipspace changed the title Fix libvirt.sh install script to use available QEMU package Fix libvirt.sh install script for Ubuntu 26.04 May 18, 2026
* Use available QEMU package
* Pin vagrant to version 2.4.9-1 (otherwise the libvirt plugin does
  not compile)
@ipspace ipspace force-pushed the u26-libvirt-install branch from 1c92353 to c9997b3 Compare May 18, 2026 17:12
@ipspace ipspace requested review from sdargoeuves and ssasso May 18, 2026 17:12
@ipspace ipspace linked an issue May 18, 2026 that may be closed by this pull request
@ipspace
Copy link
Copy Markdown
Owner Author

ipspace commented May 18, 2026

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Ubuntu 26.04: netlab install libvirt fails

2 participants