** Description changed:

  [ Impact ]
  
-  * At libvirt restart; VM guests cannot be run if they have mounts
+  * At libvirt restart; VM guests cannot be run if they have mounts
  
  [ Test Plan ]
  
-  * Create a libvirt VM
-  * Add a mount point
-  * Restart libvirtd
-  
+  * Create a libvirt VM with a memory shared:
+ 
+ <memoryBacking>
+   <source type='memfd'/>
+   <access mode='shared'/>
+ </memoryBacking>
+ 
+  * Restart libvirtd
+ 
  [ Where problems could occur ]
  
-  * This adds a rules to allow VMs to do umounts 
-    We could potentially have issues with apparmor allowing access we do not 
-    intend to grant to the VMs
- 
+  * This adds a rules to allow VMs to do umounts
+    We could potentially have issues with apparmor allowing access we do not
+    intend to grant to the VMs
  
  --- Original bug report ---
- 
  
  After upgrading from 22.04 to 24.04, libvirt/kvm guests won't start with
  `error: internal error: Process exited prior to exec: libvirt: error : Cannot 
delete directory ‘/run/libvirt/qemu/2-Test.shm’: Device or resource busy`
  openSUSE had the same issue, and their fix[1] was to add
  `umount /{var/,}run/libvirt/qemu/*{,/},`
  to the libvirtd apparmor profile.
  I tried this, and it works for me.
  
  libvirt-daemon-system 10.0.0-2ubuntu8.7
  
  [1] https://forums.opensuse.org/t/kvm-cannot-create-virtual-machine-
  libvirt-error-cannot-delete-directory-run-libvirt-qemu-2-test-shm-
  device-or-resource-busy/175989/4
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: libvirt-daemon-system 10.0.0-2ubuntu8.7
  ProcVersionSignature: Ubuntu 6.11.0-29.29~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-29-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Wed Jul 16 11:07:56 2025
  InstallationDate: Installed on 2019-02-20 (2338 days ago)
  InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  SourcePackage: libvirt
  UpgradeStatus: Upgraded to noble on 2025-07-15 (1 days ago)
  modified.conffile..etc.apparmor.d.usr.sbin.libvirtd: [modified]
  modified.conffile..etc.libvirt.libvirtd.conf: [modified]
  mtime.conffile..etc.apparmor.d.usr.sbin.libvirtd: 2025-07-15T17:25:56.500724
  mtime.conffile..etc.libvirt.libvirtd.conf: 2025-07-15T15:27:16.700732

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117037

Title:
  Missing apparmor rule in usr.sbin.libvirtd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2117037/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to