[Bug 1206171] New: "Failed to lock byte 100" when launching a KVM virtual machine.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206171 Bug ID: 1206171 Summary: "Failed to lock byte 100" when launching a KVM virtual machine. Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KVM Assignee: kvm-bugs@suse.de Reporter: dsims@usa.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Its the same thing as this bug in Ubuntu. Appears to be related to how libvirt and Apparmor interact. Workarounds listed did not seem to work. https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1709818 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206171 http://bugzilla.opensuse.org/show_bug.cgi?id=1206171#c2 --- Comment #2 from Dwain Sims <dsims@usa.com> --- New update. After a reboot the workarounds listed do seem to work now. Modified /etc/apparmor.d/abstractions/libvirt- by adding the following lines. /dev/sd* rk /dev/nvme* rk Following a reboot of the host I can now create KVM virtual machines. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206171 http://bugzilla.opensuse.org/show_bug.cgi?id=1206171#c3 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com --- Comment #3 from James Fehlig <jfehlig@suse.com> --- (In reply to Dwain Sims from comment #2)
New update. After a reboot the workarounds listed do seem to work now.
Modified /etc/apparmor.d/abstractions/libvirt-
I suppose you mean /etc/apparmor.d/abstractions/libvirt-qemu
by adding the following lines.
/dev/sd* rk /dev/nvme* rk
Do your VMs use qcow2 disks backed by these devices? Please provide the VM XML. Also, do you enable apparmor confinement of VMs in /etc/libvirt/qemu.con? E.g. security_default_confined = 1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206171 http://bugzilla.opensuse.org/show_bug.cgi?id=1206171#c4 --- Comment #4 from Dwain Sims <dsims@usa.com> --- Just like in the linked Ubuntu writeup. I modified the following file dsims@tardis:/etc/apparmor.d/abstractions> cat libvirt- /dev/sd* rk /dev/nvme* rk dsims@tardis:/etc/apparmor.d/abstractions> libvirt- My vms are getting created on a NVMe drive. That is why I added the 2nd line. Not sure if I really needed to do that or not. But it is working now. Other than this slight mod to get around the byte 100 error, this is totally stock Leap 15.4. I have made no other mods. My knowledge of apparmor is slight at best, so no additional configuration in that area. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com