Bug 2217885 - Instance spawn failing with "Failed to build and run instance: libvirt.libvirtError: internal error: Process exited prior to exec: libvirt: QEMU Driver error : failed to umount devfs on /dev: Device or resource busy"
Summary: Instance spawn failing with "Failed to build and run instance: libvirt.libvir...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 38
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-27 11:27 UTC by Malte Poll
Modified: 2023-06-27 11:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2167302 0 high CLOSED Instance spawn failing with "Failed to build and run instance: libvirt.libvirtError: internal error: Process exited prio... 2023-06-27 11:27:39 UTC

Description Malte Poll 2023-06-27 11:27:39 UTC
Description of problem:

Libvirt does not deal with nested mounts correctly when unmounting /dev.
This prevents libvirt from working in cases where /dev contains nested mounts (this is the case in containers),

Version-Release number of selected component (if applicable):

v9.0.0 (fixed in v9.1.0 upstream)


How reproducible:


Steps to Reproduce:
1. mount -t tmpfs tmpfs /dev/shm && mount -t tmpfs tmpfs /dev/shm
2. try to create any VM with libvirt

Actual results:

libvirt fails with error:

Instance spawn failing with "Failed to build and run instance: libvirt.libvirtError: internal error: Process exited prior to exec: libvirt: QEMU Driver error : failed to umount devfs on /dev: Device or resource busy"


Expected results:

VM should be created.


Additional info:

- Tracking link for RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=2167302
- Upstream fix was published here: https://listman.redhat.com/archives/libvir-list/2023-February/237603.html
- Upstream fix was released in libvirt >= 9.1


Note You need to log in before you can comment on or make changes to this bug.