Bug 1006369 - Don't autostart (or simple start) an instance when raw device is already mounted
Summary: Don't autostart (or simple start) an instance when raw device is already mou...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-10 14:01 UTC by Arthur Lutz
Modified: 2016-04-10 14:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-10 14:44:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Arthur Lutz 2013-09-10 14:01:15 UTC
Description of problem:

When autostarting an instance make sure that the devices used in the VM are not mounted on the host. 

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


How reproducible:



Steps to Reproduce:
1. stop a machine for inspection
2. mount a device on the host for inspection
3. libvirtd gets restarted (either by monit or by hand) 
4. VM mounts the device which does not hand concurent mounts (ext4 for example)

Actual results:

kernel oops in the VM, damaged data on the disk device. 


Expected results:

the VM should not start and log a warning. 

Additional info:

Comment 1 Cole Robinson 2016-04-10 14:44:11 UTC
Sorry for the lack of a timely response, but Libvirt isn't really in the business of doing this type of checking... we don't even check if disk images are in use by other VMs which is the more likely case I suspect. Look into virtlockd daemon, it may be able to do what you want


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