<div dir="ltr"><div class="gmail_extra">On Tue, Aug 27, 2013 at 8:56 AM, Paolo Bonzini <span dir="ltr"><<a href="mailto:pbonzini@redhat.com" target="_blank">pbonzini@redhat.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Il 27/08/2013 15:50, Daniel P. Berrange ha scritto:<br>
<div><div class="h5">> On Thu, Aug 22, 2013 at 08:53:06PM -0500, Doug Goldstein wrote:<br>
>> According to VMWare's documentation 'cdrom-raw' is an acceptable value<br>
>> for deviceType for a CD-ROM drive. The documentation states that the VMX<br>
>> configuration for a CD-ROM deviceType is as follows:<br>
>><br>
>> ide|scsi(n):(n).deviceType = "cdrom-raw|atapi-cdrom|cdrom-image"<br>
>><br>
>> >From the documentation it appears the following is true:<br>
>> - cdrom-image = Provides the ISO to the VM<br>
>> - atapi-cdrom = Provides a NEC emulated ATAPI CD-ROM on top of the host<br>
>>   CD-ROM<br>
>> - cdrom-raw = Passthru for a host CD-ROM drive. Allows CD-R burning from<br>
>>   within the guest.<br>
>><br>
>> A CD-ROM prior to this patch would always provide an 'atapi-cdrom' is<br>
>> modeled as:<br>
>>   <disk type='block' device='cdrom'><br>
>>     <source dev='/dev/scd0'/><br>
>>     <target dev='hda' bus='ide'/><br>
>>     <address type='drive' controller='0' bus='0' target='0' unit='0'/><br>
>>   </disk><br>
>><br>
>> This patch allows an optional element as:<br>
>>     <driver name='atapi'/><br>
>> that would maintain existing behavior. While:<br>
>>     <driver name='raw'/><br>
>> would provide a 'cdrom-raw' to the VM.<br>
><br>
><br>
> The 'cdrom-raw' case sounds very similar to the scenario we addressed<br>
> in QEMU, by adding support for a 'lun' value in the device attribute.<br>
><br>
> eg I think 'cdrom-raw' could be addressed by supporting<br>
><br>
>    <disk type='block' device='lun'><br>
>      <source dev='/dev/scd0'/><br>
>      <target dev='hda' bus='ide'/><br>
>      <address type='drive' controller='0' bus='0' target='0' unit='0'/><br>
>    </disk><br>
><br>
> rather than using <driver><br>
><br>
> Paolo, you added the 'lun' support - do you agree with this ?<br>
<br>
</div></div>Yes, 100%.<br>
<br>
- cdrom-image is type='file' device='cdrom'<br>
- atapi-cdrom is type='block' device='cdrom'<br>
- cdrom-raw is type='block' device='lun'<br>
<span class="HOEnZb"><font color="#888888"><br>
Paolo<br>
<br>
</font></span></blockquote></div><br>Thanks guys. I'll respin it to device='lun'.<br clear="all"><div><br></div>-- <br>Doug Goldstein
</div></div>