<!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 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 http://x.x.x.x:4568/
</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 http://x.x.x.x:4568/ -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 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>