<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body style="">
<div>
Hi Dani,
</div>
<div>
</div>
<div>
I finally got what was provoking the failure in the snapshot image. Once you upload and register it, you have to add in the sunstone the "driver = qcow2", and it worked well.
</div>
<div>
</div>
<div>
Thanks!
</div>
<div>
</div>
<div>
Jesús
</div>
<div>
</div>
<div>
<br/>On 4 de junio de 2014 at 11:06 Daniel Molina <dmolina@opennebula.org> wrote:
</div>
<div style="position: relative;">
<blockquote style="margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
<div dir="ltr">
Hi Jesus,
<div>
</div>
<div>
Could you send us the output of "onevm show $VM_ID -x" where $VM_ID is the id of the vm instantiated through EC2? Probably, you are missing a DEV_PREFIX in the image/snapshot, this attribute will be used in the VM DISK to generate the TARGET.
</div>
<div>
</div>
<div>
Cheers
</div>
</div>
<div class="gmail_extra">
<br/>
<br/>
<div class="gmail_quote">
On 30 May 2014 12:52, Jesus Martin
<span><<a target="_blank" href="mailto:jesus.martin@csuc.cat">jesus.martin@csuc.cat</a>></span> wrote:
<br/>
<blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<span style="text-decoration: underline;"></span>
<div>
<div>
Hi all, I have some questions about ec2 in one 4.4.
</div>
<div>
</div>
<div>
We've already installed an instance of one 4.4, and all it seems that is working well, but not for the ec2 server.
</div>
<div>
</div>
<div>
In our sunstone there are some images of ubuntu 12.04, some of them are snapshots from the original ones created with this method:
</div>
<div>
</div>
<div>
qemu-img create -f qcow2 -b /tmp/datastores/102/e0ed4ac11c88cda51bce584bfe7aa17d snapshot.qcow2
</div>
<div>
</div>
<div>
And uploaded through sunstone without problems. In fact, we can use all this images (originals and snapshots) fine in the sunstone.
</div>
<div>
</div>
<div>
</div>
<div>
So, next step is to register it to use with ec2, something like this:
</div>
<div>
</div>
<div>
econe-register 12 -K user -S password -U
<a target="_blank" href="http://x.x.x.x:4568/">http://x.x.x.x:4568/</a>
</div>
<div>
</div>
<div>
and it's registered ok without problems and returning the ami id.
</div>
<div>
</div>
<div>
At this point we create a template something like this:
</div>
<div>
EC2_INSTANCE_TYPE="m1.small"
<br/>CLUSTER_100="100"
<br/>VCPU="1"
<br/>CONTEXT=[NETWORK="YES",USERNAME="$USER[NAME]",CONTEXT="YES",WHITE_TCP_PORTS="22",PASSWORD="$USER[PASS]"]
<br/>SCHED_REQUIREMENTS="CLUSTER_ID=\"100\""
<br/>NIC=[NETWORK_ID="2"]
<br/>MEMORY="512"
<br/>GRAPHICS=[KEYMAP="es",TYPE="VNC",LISTEN="0.0.0.0"]
<br/>CPU="0.5"
</div>
<div>
</div>
<div>
And create in order to use with ec2 (inside one machine):
</div>
<div>
onetemplate create /etc/one/ec2query_templates/m1.small.erb
</div>
<div>
</div>
<div>
Change the permissions:
</div>
<div>
onetemplate chown m1.small user
</div>
<div>
</div>
<div>
And now the user can use the image with the template doing:
</div>
<div>
econe-run-instances -K user -S password -U
<a target="_blank" href="http://x.x.x.x:4568/">http://x.x.x.x:4568/</a> -t m1.small ami-00000012
</div>
<div>
</div>
<div>
</div>
<div>
And it begins to run, but don't detect the disk image, because appears the message at the vnc:
</div>
<div>
Boot failed: not a bootable disk.
</div>
<div>
</div>
<div>
On the other hand, if we use an original image of ubuntu 12.04 it runs fine until the select menu of grub, and the screen becomes black and I can't do anything.
</div>
<div>
</div>
<div>
Are we missing something in the template or the econe-run-instances command?
</div>
<div>
</div>
<div>
Could you help us?
</div>
<div>
</div>
<div>
Thank you,
</div>
<div>
</div>
<div>
Jesús
</div>
<div>
</div>
<div>
<span style="color: #2a7886; font-family: Arial; font-size: 9pt; font-weight: bold;">Jesús Martín García</span>
<br/>
<span style="color: #2a7886; font-family: Arial; font-size: 9pt;">Administrador de Sistemes</span>
<br/>
<span style="color: #2a7886; font-family: Arial; font-size: 9pt;">Consorci de Serveis Universitaris de Catalunya (CSUC)<br/><br/><span style="color: #595959; font-family: Arial; font-size: 9pt;">Gran Capità, 2 (Edifici Nexus) | 08034 Barcelona</span><br/> <span style="color: #595959; font-family: Arial; font-size: 9pt;">Tel <a target="_blank" href="tel:935.516.212">935.516.212</a> | FAX <a target="_blank" href="tel:932.056.979">932.056.979</a> | <a target="_blank" href="mailto:jesus.martin@csuc.cat">jesus.martin@csuc.cat</a></span><br/> <span style="color: #595959; font-family: Arial; font-size: 8pt;"><a target="_blank" href="http://www.csuc.cat">www.csuc.cat</a> | Twitter @CSUC_info | Facebook | Linkedin</span><br/><span style="color: #595959; font-family: Arial; font-size: 8pt;">Subscriu-te al butlletí (<a target="_blank" href="http://www.csuc.cat/butlleti">www.csuc.cat/butlleti</a>)</span> </span>
</div>
</div>
<br/>_______________________________________________
<br/> Users mailing list
<br/>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<br/>
<a target="_blank" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
<br/>
</blockquote>
</div>
<br/>
<br clear="all"/>
<div>
</div> --
<br/>
<div dir="ltr">
<div>
--
</div> Daniel Molina
<br/>Project Engineer
<br/>OpenNebula - Flexible Enterprise Cloud Made Simple
<br/>
<a target="_blank" href="http://www.OpenNebula.org">www.OpenNebula.org</a> |
<a target="_blank" href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a> | @OpenNebula
</div>
</div>
</blockquote>
<br/>
</div>
<div id="ox-signature">
<span style="color: #2a7886; font-family: Arial; font-size: 9pt; font-weight: bold;">Jesús Martín García</span>
<br/>
<span style="color: #2a7886; font-family: Arial; font-size: 9pt;">Administrador de Sistemes</span>
<br/>
<span style="color: #2a7886; font-family: Arial; font-size: 9pt;">Consorci de Serveis Universitaris de Catalunya (CSUC)<br/><br/><span style="color: #595959; font-family: Arial; font-size: 9pt;">Gran Capità, 2 (Edifici Nexus) | 08034 Barcelona</span><br/><span style="color: #595959; font-family: Arial; font-size: 9pt;">Tel 935.516.212 | FAX 932.056.979 | jesus.martin@csuc.cat</span><br/><span style="color: #595959; font-family: Arial; font-size: 8pt;">www.csuc.cat | Twitter @CSUC_info | Facebook | Linkedin</span><br/><span style="color: #595959; font-family: Arial; font-size: 8pt;">Subscriu-te al butlletí (www.csuc.cat/butlleti)</span> </span>
</div>
</body></html>