A similar error occurs when creating an arm virtual machine with libvirt 8.0.0 on jammy. I get the "qemu-system-arm: Failed to lock byte 100" at the beginning of installation. journalctl shows that apparmor denied the file_lock operation for /usr/share/AAVMF/AAVMF32_CODE.fd.
A similar error occurs when creating an arm virtual machine with libvirt 8.0.0 on jammy. I get the "qemu-system-arm: Failed to lock byte 100" at the beginning of installation. journalctl shows that apparmor denied the file_lock operation for /usr/share/ AAVMF/AAVMF32_ CODE.fd.
This bug has been fixed upstream. See https:/ /gitlab. com/libvirt/ libvirt/ -/commit/ 2b98d5d91d95087 d8a96d6450fa964 14ed05ba5c. It, and related bugs, can be fixed with the attached patch. This brings the file_lock permissions in line with the current master branch of libvirt.