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: CLOSED EOL
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: 2024-05-28 13:15 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-28 13:15:43 UTC
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-09-22 08:53:46 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

Comment 1 Aoife Moloney 2024-05-28 13:15:43 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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