Skip to content

snap: fix s390x hypervisor snap packaging#202

Open
MylesJP wants to merge 1 commit into
canonical:mainfrom
MylesJP:fix/s390x-snap-support
Open

snap: fix s390x hypervisor snap packaging#202
MylesJP wants to merge 1 commit into
canonical:mainfrom
MylesJP:fix/s390x-snap-support

Conversation

@MylesJP

@MylesJP MylesJP commented Jun 26, 2026

Copy link
Copy Markdown

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

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 gboutry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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?

@MylesJP

MylesJP commented Jul 7, 2026

Copy link
Copy Markdown
Author

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