Hi,<br><br>Is it normal that when you create a virtual machine and you configure one of its disk as a cdrom : <br><br>#########Open nebula VM Template #########<br>...<br>OS = [ BOOT = \&quot;cdrom\&quot; ]<br>...<br>DISK = [ TYPE = &quot;<span style="background-color: rgb(255, 0, 0);">cdrom</span>&quot; ,<br>
SOURCE = &quot;/srv/cloud/one/IM_template/debian-504-i386-netinst.iso&quot; ,<br>TARGET = &quot;hdc&quot; ,<br>CLONE = &quot;no&quot; ,<br>SAVE = &quot;no&quot; ,<br>READONLY = &quot;no&quot; ]<br>DISK = [ TYPE = &quot;disk&quot; ,<br>
SOURCE = &quot;/srv/cloud/one/IM_template/test.qcow2&quot; ,<br>TARGET = &quot;hda&quot; ,<br>CLONE = &quot;no&quot; ,<br>SAVE = &quot;no&quot; ,<br>READONLY = &quot;no&quot; ]<br>...<br>################################<br>
<br>the libvirt driver translate it like this : <br><br>#########LibVirt VM Template #########<br>...<br>&lt;os&gt;<br>                &lt;type&gt;hvm&lt;/type&gt;<br>                &lt;boot dev=&#39;&quot;cdrom&quot;&#39;/&gt;<br>
        &lt;/os&gt;<br>        &lt;devices&gt;<br>                &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>                &lt;disk type=&#39;file&#39; device=&#39;<span style="background-color: rgb(255, 0, 0);">disk</span>&#39;&gt;<br>
                        &lt;source file=&#39;/srv/cloud/one/var/94/images/disk.0&#39;/&gt;<br>                        &lt;target dev=&#39;hdc&#39;/&gt;<br>                &lt;/disk&gt;<br>                &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
                        &lt;source file=&#39;/srv/cloud/one/var/94/images/disk.1&#39;/&gt;<br>                        &lt;target dev=&#39;hda&#39;/&gt;<br>                &lt;/disk&gt;<br>...<br>################################<br>
<br>That is to say the translation doesn&#39;t care about my cdrom type . And the vm failed. but if I put cdrom in the device attirbute it works ...<br><br>I searched in the code and I realized that if the type is block in the ON template the device attirbute will be set as disk and if not it will be set at disk again : <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show">root</a>

    / <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src">src</a>

    / <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm">vmm</a>


    / <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/changes/src/vmm/LibVirtDriver.cc">LibVirtDriver.cc</a> line 687 to 697 ...<br clear="all"><br><br>-- <br>Florian Chazal<br>