| Summary: | obscure error message when an if=virtio disk is used also with -device | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
| Component: | qemu-kvm | Assignee: | Fam Zheng <famz> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | acathrow, bsarathy, chayang, famz, hhuang, juzhang, michen, mkenneth, pbonzini, qzhang, sluo, virt-maint, xfu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1019538 | Environment: | |
| Last Closed: | 2014-07-14 01:59:25 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: | |
| Bug Depends On: | 1019538 | ||
| Bug Blocks: | |||
|
Comment 1
Sibiao Luo
2013-10-16 02:49:05 UTC
You have:
-drive file=/mnt/my-data-disk.qcow2,if=floppy,id=drive-data-disk,format=qcow2,cache=none -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi0 -device scsi-hd,drive=drive-data-disk,id=data-disk,bus=scsi0.0
So drive-data-disk is in use by both virtio-scsi and floppy. So your second and third example have a perfectly fine error.
In the first example, the error ("Property 'virtio-blk-pci.drive' can't take value 'drive-data-disk', it's in use") refers to the virtio-blk-pci device that "if=virtio" creates implicitly. It does not refer to the scsi-hd device.
-drive file=/mnt/my-data-disk.qcow2,if=virtio,id=drive-data-disk,format=qcow2,cache=none
-device scsi-hd,drive=drive-data-disk,id=data-disk,bus=scsi0.0
But the error is only obscure, not wrong.
Will this problem ever by hit through libvirt? (In reply to Ademar Reis from comment #4) > Will this problem ever by hit through libvirt? The libvirt used if=none by default which i think it would not hit this issue at all, as I did not find where to specify if='virtio'/'ide'/'floppy'... in virsh XML configure file. # cat test.xml | grep disk -A 4 <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source file='/home/RHEL-7.0-20140505.1_Server_x86_64.raw'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <interface type='network'> <mac address='52:54:00:92:a5:29'/> <source network='default'/> <model type='rtl8139'/> It generated the qemu-kvm command line as following: ...-drive file=/home/RHEL-7.0-20140505.1_Server_x86_64.raw,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 Best Regards, sluo Perhaps we should report in use by whom. Because if=virtio is legacy usage, and libvirt always uses if=none with -device, closing this as WONTFIX. |