https://bugzilla.novell.com/show_bug.cgi?id=736095 https://bugzilla.novell.com/show_bug.cgi?id=736095#c0 Summary: Virtual Machine Manager corrupts usb mounted disks (libvirt with qemu steals usb disks with mounted partitions) Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: waveclaw@hotmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 When adding a USB Host Device with multiple partitions to a qemu virtual machine guest, libvirt will prevent all partitions from being used even if some are already mounted. Requires hard reboot of system to remount disks as sync fails,, btrfs operations issue kernel OOPS and any LVM volumes groups are in an inconsistent state. Removing disk physically and re-attaching, umounting mounted partitions and remove/re-add/remove or USB Drive does not repair the inconsistent state of the dm devices in the kernel. Reproducible: Always Steps to Reproduce: 1. Obtain a USB storage device. 2. Format device with a vfat filesystem and a Linux filesystem. 3. Attach USB device to host. 4. Mount the Linux filesystem to the system. 5. Create a new VM with Virtual Manager. (YaST -> Virtualization -> Create Virtual Machines) 6. Run the new VM. (YaST -> Virualization -> Virtual Machine Manager) 7. Attach the USB storage device to the VM 7.1 new -> Connection in Virtual Machine Manager 7.2 connect to your VM provider 7.3 Open the VM, select Details, 7.4 Add Hardware 7.5 Select USB Host Device 7.6 Select the USB drive you formated earlier 7.7 Select Finish 8. Observe that the disk mounted in Linux is no longer available. Actual Results: DM errors, unable to change LVM properties on missing disk, attach and re-attach of physical USB disk created further inconsistencies, disk never appearing to guest OS properly. Expected Results: USB device to appear on guest as Storage Device, mounted disk to remain mounted and available to system. This may be a normal behaviour of libvirt. Have not found any supported 'pass through' behavior in the documentation so far for USB Storage Devices. My particular case involved a large number of possibly contaminating settings. The disk in question was backup disk that used a btfs filesystem inside a cryptoluks container which was on an LVM partition of a 2Tb Seagate FreeAgent Pro. The guest OS was freshly installed Windows XP SP1. The vfat filesystem was to share files to the VM as Filesystem Passthrough is unavailable. The VM guest did not support the e10k network device at creation time. Two workarounds for the root cause of trying to add the USB Drive: - An iso image was mounted instead due to the inability to get the guest to properly see the USB Disk. - The vm's network driver was switched to rtl8139 so it was able to access FTP and HTTP provided files from the host. My solution to libvirt claiming devices with mounted filesystems is to never do that again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.