[virt-tools-list] virt-manager only detects one CD/DVD drive

Cole Robinson crobinso at redhat.com
Mon Nov 28 15:10:01 UTC 2011


On 11/28/2011 09:50 AM, Hansa wrote:
>> From: Cole Robinson [mailto:crobinso at redhat.com]
>> On 11/28/2011 05:37 AM, Hansa wrote:
>>>
>>>> From: Cole Robinson [mailto:crobinso at redhat.com]
>>>> On 11/27/2011 03:49 PM, Hansa wrote:
>>>>>> From: Cole Robinson [mailto:crobinso at redhat.com]
>>>>>> On 11/18/2011 09:19 AM, Hansa wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> When creating a VM virt-manager detects only one CD/DVD drive.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Here’s (part) of my /etc/fstab:
>>>>>>>
>>>>>>> # cat /etc/fstab
>>>>>>>
>>>>>>> /dev/scd1       /media/cdrom0   udf,iso9660 user,noauto     0
>>>> 0
>>>>>>>
>>>>>>> /dev/scd0       /media/cdrom1   udf,iso9660 user,noauto     0
>>>> 0
>>>>>>>
>>>>>>> /dev/scd1       /media/floppy0  auto    rw,user,noauto  0       0
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                 # ls -la /dev/scd*
>>>>>>>
>>>>>>> lrwxrwxrwx 1 root root 3 Nov 18 14:38 /dev/scd0 -> sr0
>>>>>>>
>>>>>>> lrwxrwxrwx 1 root root 3 Nov 18 14:47 /dev/scd1 -> sr1
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> As you can see I have two cdrom devices but virt-manager only
>> lets
>>>> me
>>>>>> choose
>>>>>>> /dev/sr0.
>>>>>>>
>>>>>>> How do I add /dev/sr1 device to virt-manager?
>>>>>>>
>>>>>>
>>>>>> virt-manager shouldn't have any problem with multiple cdrom
>> devices,
>>>>>> could be
>>>>>> that libvirt isn't giving us the expected info.
>>>>>>
>>>>>> Any reference to /dev/sr1 in the output of the following command?
>>>>>>
>>>>>> for i in `sudo virsh nodedev-list`; do sudo virsh nodedev-dumpxml
>>>> $i;
>>>>>> done
>>>>>
>>>>> Thanks for your reply.
>>>>> Maybe it is because /dev/sr1 is an IPMI virtual disk. When I run
>> your
>>>>> proposed command, sr1 is detected as type floppy. IPMI mounts
>>>> floppies as
>>>>> well. I'm not sure if it's done via the same device. /etc/fstab
>> (see
>>>> above)
>>>>> says it does. This is probably the reason why it won't show up as a
>>>> cdrom
>>>>> drive in virt-manager.
>>>>>
>>>>> Should I file a bug report?
>>>>>
>>>>
>>>> Probably, question is where. What does 'udevadm info --export-db'
>> say
>>>> about
>>>> /dev/sr1? If it looks like a floppy, might be a udev issue. If it
>> looks
>>>> like a
>>>> CDROM or something else entirely, libvirt is probably at fault.
>>>>
>>>
>>> If libvirt determines cdrom devices by udevadm's ID_TYPE property I
>> would
>>> say udevadm (or IPMI driver?) is the problem (see attached file). Do
>> you
>>> agree?
>>>
>>> -Hansa
>>
>> Agreed, something seems weird if ID_TYPE=floppy but the device also has
>> ID_CDROM_* fields.
>>
>> - Cole
> 
> So, where to post a bug report? 
> 

I guess against udev in your distros bug tracker.

- Cole




More information about the virt-tools-list mailing list