Bug 1525324
Summary: | 2 VMs both with 'share-rw=on' appending on '-device usb-storage' for the same source image can not be started at the same time | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | jiyan <jiyan> |
Component: | qemu-kvm-rhev | Assignee: | Fam Zheng <famz> |
Status: | CLOSED ERRATA | QA Contact: | Gu Nini <ngu> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.5 | CC: | chayang, cliao, dyuan, hhan, jiyan, juzhang, knoel, lmen, lmiksik, meili, michen, ngu, pkrempa, qzhang, virt-maint, xuma, xuzhang, yisun |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.10.0-19.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-11 00:52:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1525303 |
Description
jiyan
2017-12-13 03:50:33 UTC
There is a QEMU bug that doesn't handle the "share-rw=on" from the command line correctly. I'll send a patch to upstream. Failed to boot up 2 guests with 'share-rw=on' appeding on virtio scsi/block disks, so the bug is not must usb-storage related. # /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0 -drive id=drive_image2,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/win10-32-virtio-scsi.qcow2 -device scsi-hd,id=image1,drive=drive_image2,bootindex=1,share-rw=on -vnc :20 -monitor stdio -cpu 'SandyBridge',+kvm_pv_unhalt,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time qemu-kvm: -drive id=drive_image2,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/win10-32-virtio-scsi.qcow2: Failed to get "write" lock Is another process using the image? # /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/win10-32-virtio-scsi.qcow2 -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,share-rw=on -vnc :20 -monitor stdio -cpu 'SandyBridge',+kvm_pv_unhalt,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time qemu-kvm: -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/win10-32-virtio-scsi.qcow2: Failed to get "write" lock Is another process using the image? Fix included in qemu-kvm-rhev-2.10.0-19.el7 Verify the bug on following sw versions: Host kernel: 3.10.0-843.el7.x86_64 Qemu-kvm-rhev: qemu-kvm-rhev-2.10.0-19.el7.x86_64 2 guests could boot up with the same raw disk image as usb storage disk with 'share-rw=on appended: -drive id=drive_image2,if=none,snapshot=off,aio=threads,cache=none,format=raw,file=/home/hd1.raw -device usb-storage,id=image2,drive=drive_image2,share-rw=on,bootindex=2,bus=usbtest.0 \ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:1104 |