<div dir="ltr">Hi Jesus,<div><br></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><br></div><div>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 May 2014 12:52, Jesus Martin <span dir="ltr"><<a href="mailto:jesus.martin@csuc.cat" target="_blank">jesus.martin@csuc.cat</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<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 href="http://x.x.x.x:4568/" target="_blank">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 href="http://x.x.x.x:4568/" target="_blank">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 href="tel:935.516.212" value="+34935516212" target="_blank">935.516.212</a> | FAX <a href="tel:932.056.979" value="+34932056979" target="_blank">932.056.979</a> | <a href="mailto:jesus.martin@csuc.cat" target="_blank">jesus.martin@csuc.cat</a></span><br>
<span style="color:#595959;font-family:Arial;font-size:8pt"><a href="http://www.csuc.cat" target="_blank">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 href="http://www.csuc.cat/butlleti" target="_blank">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 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><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<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</div>
</div>