snap: fix s390x hypervisor snap packaging#202
Open
MylesJP wants to merge 1 commit into
Open
Conversation
Enable the snap to run the libvirt/nova-compute stack on s390x by addressing the packaging issues found during LPAR validation. Build QEMU with the s390x-softmmu target so nova-compute can find a native s390x emulator. Expose /etc/mdevctl.d to libvirtd through a read-only system-files plug, matching libvirt's mediated-device discovery behaviour. Create /usr/sbin/ovs-vswitchd as a fallback symlink when the non-DPDK Open vSwitch binary is staged, so ovsdb-server startup can report the OVS version. These changes are no-ops for existing amd64/arm64 paths except for the fallback symlink guard, which only runs when /usr/sbin/ovs-vswitchd is otherwise missing. Assisted-by: Codex 5.5 Signed-off-by: Myles Penner <myles.penner@canonical.com>
gboutry
requested changes
Jun 29, 2026
gboutry
left a comment
Collaborator
There was a problem hiding this comment.
Can you raise a request on the snapcraft forum for the new plug you request and ensure it's approved before landing this PR?
Can you verify that no other interfaces grant this specific capability first?
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the snap to run the libvirt/nova-compute stack on s390x by addressing the packaging issues found during LPAR validation.
Build QEMU with the s390x-softmmu target so nova-compute can find a native s390x emulator.
Expose /etc/mdevctl.d to libvirtd through a read-only system-files plug, matching libvirt's mediated-device discovery behaviour.
Create /usr/sbin/ovs-vswitchd as a fallback symlink when the non-DPDK Open vSwitch binary is staged, so ovsdb-server startup can report the OVS version.
These changes are no-ops for existing amd64/arm64 paths except for the fallback symlink guard, which only runs when /usr/sbin/ovs-vswitchd is otherwise missing.
Assisted-by: Codex 5.5