Skip to content

feat(libvirt): disable Xen/libxl driver support#16463

Open
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-xen-libvirt
Open

feat(libvirt): disable Xen/libxl driver support#16463
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-xen-libvirt

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

Azure Linux targets Hyper-V/KVM, not Xen. Since our builders have the %fedora macro set, the upstream spec enables the libxl driver on x86_64/aarch64 by default, pulling in xen-devel at build time and producing libvirt-daemon-driver-libxl / libvirt-daemon-xen subpackages with libxenstore.so.4 runtime dependencies.

Disable via build.without = ["libxl"]. Verified: build succeeds, no xen/libxl subpackages are produced, and no output RPMs carry xen dependencies.

Part of fixing: workitem

Azure Linux targets Hyper-V/KVM, not Xen. Since our builders have the
%fedora macro set, the upstream spec enables the libxl driver on
x86_64/aarch64 by default, pulling in xen-devel at build time and
producing libvirt-daemon-driver-libxl / libvirt-daemon-xen subpackages
with libxenstore.so.4 runtime dependencies.

Disable via build.without = ["libxl"]. Verified: build succeeds, no
xen/libxl subpackages are produced, and no output RPMs carry xen
dependencies.
@christopherco christopherco marked this pull request as ready for review April 5, 2026 07:23
Copilot AI review requested due to automatic review settings April 5, 2026 07:23
Copy link
Copy Markdown
Contributor

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

This PR adjusts the Azure Linux component configuration for libvirt to avoid building Xen/libxl support, aligning libvirt’s build output with Azure Linux’s Hyper-V/KVM focus and preventing Xen-related build/runtime dependencies when %fedora is set.

Changes:

  • Add a dedicated libvirt.comp.toml that disables the libxl build option via build.without.
  • Remove the now-dedicated libvirt component entry from components-full.toml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
base/comps/libvirt/libvirt.comp.toml Introduces per-component build config to disable the libxl (Xen) driver.
base/comps/components-full.toml Removes the libvirt entry since it now has a dedicated *.comp.toml file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants