Hi Gerry,<br><br><div class="gmail_quote">On 12 March 2013 18:04, Gerry O'Brien <span dir="ltr"><<a href="mailto:gerry@scss.tcd.ie" target="_blank">gerry@scss.tcd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
How do you get the OCCI self-services templates to make an
existing system disk use the virtio drivers? If I put an entry in
the template for DISK it tries to create a second data disk, even
when I explicitly try to set the DISK_ID to 0 (see OOCI template and
resulting template from Sunstone below).<br></div></blockquote><div><br></div><div>You can define that parameter in the image template and the virtual machine disk will use it. </div><div><a href="http://opennebula.org/documentation:rel3.8:img_template#template_attributes">http://opennebula.org/documentation:rel3.8:img_template#template_attributes</a></div>
<div><br></div><div>Also you can define default paremeters for kvm in the driver configuration file.</div><div><a href="http://opennebula.org/documentation:rel3.8:kvmg#default_attributes">http://opennebula.org/documentation:rel3.8:kvmg#default_attributes</a></div>
<div><br></div><div>Cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<br>
Regards,<br>
Gerry<br>
<br>
<br>
<br>
CPU = 1<br>
VCPU = 2<br>
MEMORY = 1024<br>
<br>
GRAPHICS = [ type = vnc,<br>
listen = 0.0.0.0 ]<br>
<br>
DISK = [ disk_id = 0,<br>
type = fs,<br>
dev_prefix = vd,<br>
driver = qcow2 ]<br>
<br>
<br>
<br>
<span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><table style="width:80%">
<tbody>
<tr>
<td style="padding-left:0px;font-weight:bold;border-bottom:1px solid #cccccc;padding-top:6px;padding-bottom:6px">DISK</td>
<td style="border-bottom:1px solid #cccccc;padding-top:6px;padding-bottom:6px"> <br>
</td>
</tr>
<tr>
<td style="border-bottom:0"><br>
</td>
<td style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td style="padding-left:25px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">0</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px"> <br>
</td>
</tr>
<tr>
<td style="border-bottom:0"><br>
</td>
<td style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">READONLY</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">NO</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">CLUSTER_ID</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">100</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">IMAGE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">Debian-Selfservice [ver R1.1]</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DATASTORE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">users</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">TYPE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">FILE</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">SOURCE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">/var/lib/one/datastores/102/72ce4e42a590c42e79c298652b33df46</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">SAVE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">NO</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DISK_ID</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">0</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DATASTORE_ID</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">102</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">TARGET</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">hda</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DRIVER</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">qcow2</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DEV_PREFIX</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">hd</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">IMAGE_ID</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">237</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">CLONE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">YES</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">TM_MAD</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">shared</td>
</tr>
<tr>
<td><br>
</td>
<td><br>
</td>
</tr>
<tr>
<td style="padding-left:25px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">1</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px"> <br>
</td>
</tr>
<tr>
<td style="border-bottom:0"><br>
</td>
<td style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">TYPE</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">fs</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DISK_ID</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">1</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">TARGET</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">vda</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DRIVER</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">qcow2</td>
</tr>
<tr>
<td style="padding-left:50px;font-weight:normal;border-bottom:0;padding-top:1px;padding-bottom:1px">DEV_PREFIX</td>
<td style="border-bottom:0;padding-top:1px;padding-bottom:1px">vd</td></tr></tbody></table><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Gerry O'Brien
Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND
<a href="tel:00%20353%201%20896%201341" value="+35318961341" target="_blank">00 353 1 896 1341</a></pre>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula