<div dir="ltr">Hi,<div><br></div><div>You can set those parameters in the Image template instead [1].</div><div>And in 4.2 you can now replace that long context section with the cleaner NETWORK=YES [2]</div><div><br></div>

<div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel4.2:img_template">http://opennebula.org/documentation:rel4.2:img_template</a></div><div>[2] <a href="http://opennebula.org/documentation:rel4.2:context_overview">http://opennebula.org/documentation:rel4.2:context_overview</a><br>

</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br>Join us at <a href="http://opennebulaconf.com" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br>--<div>Carlos Martín, MSc<br>

Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div></div></div>
<br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 12:50 AM, Rogier Mars <span dir="ltr"><<a href="mailto:rogier@fortytwo.nl" target="_blank">rogier@fortytwo.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi, <div><br></div><div>I'm testing the opennebula cloudview. I've created a template, image and network and made that available to the cloud-users group and updated the sunstone-views.yaml to give the cloud-users group the cloud view. </div>

<div><br></div><div>I can start the template I created, but the image file I select is a qcow2 file. In the template I've put the DRIVER and the TARGET parameters for the disk, but left the DISKID out of the template.</div>

<div><br></div><div><div><br></div><div>NIC=[NETWORK_ID="4",MODEL="virtio"]</div><div>CONTEXT=[ETH0_NETWORK="$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"4\"]",ETH0_GATEWAY6="$NETWORK[GATEWAY6,NETWORK_ID=\"4\"]",SSH_PUBLIC_KEY="$USER[SSHKEY]",ETH0_IP="$NIC[IP,NETWORK_ID=\"4\"]",ETH0_GATEWAY="$NETWORK[GATEWAY,NETWORK_ID=\"4\"]",ETH0_MASK="$NETWORK[NETWORK_MASK,NETWORK_ID=\"4\"]",TARGET="hdc",ETH0_IPV6="$NIC[IP6_GLOBAL,NETWORK_ID=\"4\"]",ETH0_CONTEXT_FORCE_IPV4="$NETWORK[CONTEXT_FORCE_IPV4,NETWORK_ID=\"4\"]",ETH0_DNS="$NETWORK[DNS,NETWORK_ID=\"4\"]"]</div>

<div>GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"]</div><div>OS=[BOOT="hd",ARCH="x86_64"]</div><div>CPU="1"</div><div><b>DISK=[DRIVER="qcow2",TARGET="vdb"]</b></div>

<div>MEMORY="1024"</div><div>FEATURES=[PAE="yes",ACPI="yes"]</div></div><div><br></div><div>When I instantiate the template with an image via the cloud view the DRIVER parameter is not passed on to the VM (see running VM template below). This caused the VM to crash during the boot because it can't find the bootdisk (see screenshot). How can I create a template for the cloud view and still use the qcow2 driver? </div>

<div><br></div><div><i>Running VM Template</i></div><div><table style="width:80%"><tbody><tr><td style="padding-left:10px;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">

                  </td>                </tr><tr>                    <td style="padding-left:35px;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:35px;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:35px;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">

ssh</td>                </tr><tr>                    <td style="padding-left:35px;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/106/9a40c93f8c282779fe84ccc65218ce27</td>                </tr><tr>                    <td style="padding-left:35px;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:35px;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">

106</td>                </tr><tr>                    <td style="padding-left:35px;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:35px;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:35px;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:35px;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:35px;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">

160</td>                </tr><tr>                    <td style="padding-left:35px;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">

RB-ES Centos62-10GB2-qcow2</td>                </tr><tr>                    <td style="padding-left:35px;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">

Beta Datastore</td>                </tr><tr>                    <td style="padding-left:35px;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></tbody></table><div><img height="369" width="640" src="cid:B01770AC-273A-4B39-9F13-43F49A870BEC@caresharedservices.local"></div></div><div><br></div><div>Thanks, </div><span class="HOEnZb"><font color="#888888"><div>

<br></div><div>Rogier</div><div><br></div><div><br></div></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></div>