<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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>
<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>
<table id="vm_template_table" class="info_table" style="width:80%">
<tbody>
<tr>
<td class="key_td" style="padding-left:0px; font-weight:bold;
border-bottom:1px solid #CCCCCC; padding-top:6px;
padding-bottom:6px;">DISK</td>
<td class="value_td" style="border-bottom:1px solid #CCCCCC;
padding-top:6px; padding-bottom:6px"> <br>
</td>
</tr>
<tr>
<td class="key_td" style="border-bottom:0"><br>
</td>
<td class="value_td" style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td class="key_td" style="padding-left:25px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px;">0</td>
<td class="value_td" style="border-bottom:0; padding-top:1px;
padding-bottom:1px"> <br>
</td>
</tr>
<tr>
<td class="key_td" style="border-bottom:0"><br>
</td>
<td class="value_td" style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">READONLY</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">NO</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">CLUSTER_ID</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">100</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">IMAGE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">Debian-Selfservice [ver R1.1]</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DATASTORE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">users</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">TYPE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">FILE</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">SOURCE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">/var/lib/one/datastores/102/72ce4e42a590c42e79c298652b33df46</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">SAVE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">NO</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DISK_ID</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">0</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DATASTORE_ID</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">102</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">TARGET</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">hda</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DRIVER</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">qcow2</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DEV_PREFIX</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">hd</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">IMAGE_ID</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">237</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">CLONE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">YES</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">TM_MAD</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">shared</td>
</tr>
<tr>
<td class="key_td"><br>
</td>
<td class="value_td"><br>
</td>
</tr>
<tr>
<td class="key_td" style="padding-left:25px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px;">1</td>
<td class="value_td" style="border-bottom:0; padding-top:1px;
padding-bottom:1px"> <br>
</td>
</tr>
<tr>
<td class="key_td" style="border-bottom:0"><br>
</td>
<td class="value_td" style="border-bottom:0"><br>
</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">TYPE</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">fs</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DISK_ID</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">1</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">TARGET</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">vda</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DRIVER</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">qcow2</td>
</tr>
<tr>
<td class="key_td" style=" padding-left:50px;
font-weight:normal; border-bottom:0; padding-top:1px;
padding-bottom:1px">DEV_PREFIX</td>
<td class="value_td" style=" border-bottom:0; padding-top:1px;
padding-bottom:1px">vd</td>
</tr>
</tbody>
</table>
<br>
<br>
<pre class="moz-signature" cols="72">--
Gerry O'Brien
Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND
00 353 1 896 1341</pre>
</body>
</html>