[SRU] virt-aa-helper: allow riscv64 EDK II
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Sergio Durigan Junior | ||
| Noble |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
| Oracular |
Fix Released
|
Undecided
|
Sergio Durigan Junior | ||
| Plucky |
Fix Released
|
Undecided
|
Sergio Durigan Junior | ||
Bug Description
[ Impact ]
Apparmor does not allow libvirt to use EDK II provided by package qemu-efi-riscv64 installed in the default path.
Upstream has accepted a patch for the virt-aa-helper:
https:/
[ Test Plan ]
Install libvirt-clients libvirt-daemon libvirt-
Create a libvirt instance with 'virsh define my.xml' where my.xml has the following content:
<?xml version="1.0"?>
<domain type="qemu">
<uuid>
<name>
<os>
<type arch='riscv64' machine=
<loader readonly='yes' type='pflash'
<nvram type='file' template=
</nvram>
<boot dev='hd'/>
</os>
<memory unit="MiB"
<vcpu placement=
<cpu match='exact'>
<model>
<topology sockets='1' cores='2' threads='1' />
</cpu>
<devices>
<emulator>
<rng model='virtio'>
<backend model='builtin'/>
</rng>
<console type="pty">
<target type="serial" port="0"/>
</console>
</devices>
</domain>
It should be possible to launch the VM but the following is observed
$ virsh start ubuntu24.04-riscv64 && virsh console ubuntu24.04-riscv64 --safe
error: Failed to start domain 'ubuntu24.
error: internal error: cannot load AppArmor profile 'libvirt-
User libvirt-qemu needs access (R+X) to the directory with the copy of /usr/share/
[ Where problems could occur ]
Launching the RISC-V virtual machine with EDK II might still fail.
[ Other Info ]
Merge request in Debian:
https:/
Related branches
- git-ubuntu bot: Approve
- Christian Ehrhardt (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 11352 lines (+10226/-63) (has conflicts)44 files modifieddebian/changelog (+8800/-14)
debian/control (+9/-7)
debian/control.in (+9/-7)
debian/libvirt-clients.install (+1/-0)
debian/libvirt-clients.install.in (+1/-0)
debian/libvirt-clients.lintian-overrides (+1/-0)
debian/libvirt-daemon-common.apport (+22/-0)
debian/libvirt-daemon-common.dirs (+2/-0)
debian/libvirt-daemon-common.install (+1/-0)
debian/libvirt-daemon-common.install.in (+1/-0)
debian/libvirt-daemon-common.libvirt-guests.default (+2/-2)
debian/libvirt-daemon-driver-qemu.dirs (+1/-0)
debian/libvirt-daemon-driver-qemu.dnsmasq (+2/-0)
debian/libvirt-daemon-driver-qemu.install (+1/-0)
debian/libvirt-daemon-driver-qemu.install.in (+1/-0)
debian/libvirt-daemon-driver-qemu.postinst (+136/-0)
debian/libvirt-daemon-driver-qemu.postinst.in (+136/-0)
debian/libvirt-daemon-driver-qemu.postrm (+24/-1)
debian/libvirt-daemon-driver-qemu.postrm.in (+24/-1)
debian/libvirt-daemon.README.Debian (+82/-22)
debian/libvirt-uri.sh (+21/-0)
debian/patches/series (+20/-0)
debian/patches/ubuntu-aa/0020-virt-aa-helper-ubuntu-storage-paths.patch (+37/-0)
debian/patches/ubuntu-aa/0029-appmor-libvirt-qemu-Add-9p-support.patch (+34/-0)
debian/patches/ubuntu-aa/0031-virt-aa-helper-Ask-for-no-deny-rule-for-readonly-dis.patch (+43/-0)
debian/patches/ubuntu-aa/0032-apparmor-libvirt-qemu-Allow-reading-charm-specific-c.patch (+34/-0)
debian/patches/ubuntu-aa/0033-UBUNTU-only-apparmor-for-kvm.powerpc-LP-1680384.patch (+41/-0)
debian/patches/ubuntu-aa/0034-apparmor-virt-aa-helper-access-for-snapped-nova.patch (+28/-0)
debian/patches/ubuntu-aa/lp-1815910-allow-vhost-hotplug.patch (+57/-0)
debian/patches/ubuntu-aa/virt-aa-helper-allow-riscv64-EDK-II.patch (+31/-0)
debian/patches/ubuntu/Allow-libvirt-group-to-access-the-socket.patch (+50/-0)
debian/patches/ubuntu/daemon-augeas-fix-expected.patch (+21/-0)
debian/patches/ubuntu/dnsmasq-as-priv-user (+300/-0)
debian/patches/ubuntu/lp-1861125-ubuntu-models.patch (+21/-0)
debian/patches/ubuntu/ovmf_paths.patch (+54/-0)
debian/patches/ubuntu/set-default-machine-to-ubuntu.patch (+45/-0)
debian/patches/ubuntu/swtpm-by-swtpm-user.patch (+40/-0)
debian/patches/ubuntu/ubuntu_machine_type.patch (+14/-0)
debian/patches/ubuntu/wait-for-qemu-kvm.patch (+23/-0)
debian/rules (+16/-2)
debian/tests/control (+3/-1)
debian/tests/smoke-lxc (+30/-4)
debian/tests/smoke-qemu-session (+5/-0)
debian/tests/smoke-qemu-session.xml (+2/-2)
CVE References
| description: | updated |
| Changed in libvirt (Ubuntu Plucky): | |
| assignee: | nobody → Heinrich Schuchardt (xypron) |
| Changed in libvirt (Ubuntu Noble): | |
| assignee: | nobody → Heinrich Schuchardt (xypron) |
| description: | updated |
| Changed in libvirt (Ubuntu Plucky): | |
| assignee: | Heinrich Schuchardt (xypron) → Sergio Durigan Junior (sergiodj) |
| Changed in libvirt (Ubuntu Oracular): | |
| assignee: | Heinrich Schuchardt (xypron) → Sergio Durigan Junior (sergiodj) |
| Changed in libvirt (Ubuntu Noble): | |
| assignee: | Heinrich Schuchardt (xypron) → Sergio Durigan Junior (sergiodj) |
| Changed in libvirt (Ubuntu Oracular): | |
| assignee: | Sergio Durigan Junior (sergiodj) → Heinrich Schuchardt (xypron) |
| Changed in libvirt (Ubuntu Noble): | |
| assignee: | Sergio Durigan Junior (sergiodj) → Heinrich Schuchardt (xypron) |
| Changed in libvirt (Ubuntu Plucky): | |
| status: | New → In Progress |
| tags: | added: server-todo |
| Changed in libvirt (Ubuntu Noble): | |
| status: | New → Triaged |
| Changed in libvirt (Ubuntu Oracular): | |
| status: | New → Triaged |
| Changed in libvirt (Ubuntu Noble): | |
| assignee: | nobody → Sergio Durigan Junior (sergiodj) |
| Changed in libvirt (Ubuntu Oracular): | |
| assignee: | nobody → Sergio Durigan Junior (sergiodj) |
| description: | updated |
| Changed in libvirt (Ubuntu Noble): | |
| assignee: | Sergio Durigan Junior (sergiodj) → Christian Ehrhardt (paelzer) |

Intention LGTM, to SRU Noble let us not forget about Oracular - added a bug task.
Will you coordinate with Sergio to not conflict with our continuous libvirt uploads or do you ask him to make it part of the next one?