<div dir="ltr">Hi Kapetanakis.<div><br></div><div>I think you can achieve all those things without hacking code.</div><div><br></div><div>* Using block devices directly:</div><div><br></div><div>A suggested workflow to work directly with block devices is to create a new empty persistent image of type datablock and use it inside a VM and install the OS directly to that image. If you do think the only actions are "lvcreate" and "mkfs" on the new LV.</div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><a href="http://opennebula.org/documentation:rel3.8:img_guide#create_images">http://opennebula.org/documentation:rel3.8:img_guide#create_images</a><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div><div><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px">* Attaching a CDROM</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style>

<font face="arial, sans-serif">That should definitely work. If it's not working then there might be a problem with the installation or the OpenNebula templates.</font></div><div>










<span style="font-family:arial,sans-serif;font-size:13px">I couldn't find out how to do that with templates. Making CDROM images didn't work since it asked for IDE controller which was not pressent. Can you elaborate a bit more on the problems you're having with CDROM images? ISO image do work.</span></div>

<div style><br></div><div>* Passing options to the vm's XML</div><div><br></div><div>There is a specific RAW attribute precisely for this:</div><div><a href="http://opennebula.org/documentation:rel3.8:template#raw_section">http://opennebula.org/documentation:rel3.8:template#raw_section</a><br>

</div><div><br></div><div style><font face="arial, sans-serif">cheers,<br>Jaime</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 5:22 PM, Kapetanakis Giannis <span dir="ltr"><<a href="mailto:bilias@edu.physics.uoc.gr" target="_blank">bilias@edu.physics.uoc.gr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 20/02/13 13:44, Jaime Melis wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello Kapetanakis,<br>
<br>
can you describe the modifications you would make to the deploy script for instance in order to give you a better solution?<br>
<br>
cheers,<br>
Jaime<br>
</blockquote>
<br></div>
Maybe I'm wrong and the changes are not needed in kvm driver, but in lvm drivers.<br>
<br>
The whole idea would be to be able to work directly on block devices<br>
and not copying file images around. For instance to add a new empty 100GB disk on a VM<br>
you have to create a image for that and then attach it to VM which would copy<br>
the image to a new LV. That is not acceptable. A new LV should be created and attached directly.<br>
<br>
I guess I would also add an ide controller in order to add cdrom device which would be able to use .iso images like libvirt does.<br>
I couldn't find out how to do that with templates. Making CDROM images didn't work since it asked for IDE controller which was not pressent.<br>
<br>
I would pass more options in the vm's XML (like apic feature, clock .. etc).<br>
Again I couldn't use template to do that.<br>
<br>
These actions seem to me that are controlled by kvm (deploy, attach_disk) and not the tm driver.<br>
Maybe I misunderstood something or didn't read enough.<span class=""><font color="#888888"><br>
<br>
G<br></font></span>
ps. Also saw the cxm drivers but these are supposed to work on XEN and not KVM.<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>
</div></div>