Bug 1480255
Summary: | Failed VM with q35+virtio-scsi: cdrom and disk contend for /dev/sda | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Richard Chan <rc556677> |
Component: | General | Assignee: | Arik <ahadas> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.1.4.2 | CC: | ahadas, bugs, michal.skrivanek, mpoledni |
Target Milestone: | --- | Flags: | rule-engine:
ovirt-4.2+
|
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-11 07:48:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard Chan
2017-08-10 13:55:41 UTC
The cdrom device is automatically created by oVirt on sda; how do I tell it to remove this from the domain or target sdb instead? Hacky: if the cdrom is deleted from vm_device then the VM will boot with the disk on /dev/sda. This is the reverse use case of: https://bugzilla.redhat.com/show_bug.cgi?id=1429246 where I want to lose the cdrom instead of adding it. virt-manager does this: <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/libvirt/images/testvm.qcow2/> <backingStore/> <target dev='sda' bus='scsi'/> <boot order='1'/> <alias name='scsi0-0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <backingStore/> <target dev='sdb' bus='sata'/> <readonly/> <alias name='sata0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> How to get oVirt to do the same? Arik/Martin, I suppose in writeDisks() you need to check also SATA since both use sd* device name case VirtIO_SCSI: scsiIndex++; if (cdDiskInterface == diskInterface) { while (scsiIndex == payloadIndex || scsiIndex == cdRomIndex) { scsiIndex++; } } index = scsiIndex; break; or because of the possible payload cdrom just start all scsi disks at sdc? ah, right, its' the same as bug 1372516 *** This bug has been marked as a duplicate of bug 1372516 *** |