[one-users] ec2 one 4.4 not working with snapshots images

Daniel Molina dmolina at opennebula.org
Wed Jun 4 02:06:31 PDT 2014


Hi Jesus,

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.

Cheers


On 30 May 2014 12:52, Jesus Martin <jesus.martin at csuc.cat> wrote:

>   Hi all, I have some questions about ec2 in one 4.4.
>
>  We've already installed an instance of one 4.4, and all it seems that is
> working well, but not for the ec2 server.
>
>  In our sunstone there are some images of ubuntu 12.04, some of them are
> snapshots from the original ones created with this method:
>
>  qemu-img create -f qcow2 -b
> /tmp/datastores/102/e0ed4ac11c88cda51bce584bfe7aa17d snapshot.qcow2
>
>  And uploaded through sunstone without problems. In fact, we can use all
> this images (originals and snapshots) fine in the sunstone.
>
>
>  So, next step is to register it to use with ec2, something like this:
>
>  econe-register 12 -K user -S password -U http://x.x.x.x:4568/
>
>  and it's registered ok without problems and returning the ami id.
>
>  At this point we create a template something like this:
>  EC2_INSTANCE_TYPE="m1.small"
> CLUSTER_100="100"
> VCPU="1"
> CONTEXT=[NETWORK="YES",USERNAME="$USER[NAME]",CONTEXT="YES",WHITE_TCP_PORTS="22",PASSWORD="$USER[PASS]"]
>
> SCHED_REQUIREMENTS="CLUSTER_ID=\"100\""
> NIC=[NETWORK_ID="2"]
> MEMORY="512"
> GRAPHICS=[KEYMAP="es",TYPE="VNC",LISTEN="0.0.0.0"]
> CPU="0.5"
>
>  And create in order to use with ec2 (inside one machine):
>  onetemplate create /etc/one/ec2query_templates/m1.small.erb
>
>  Change the permissions:
>  onetemplate chown m1.small user
>
>  And now the user can use the image with the template doing:
>  econe-run-instances -K user -S password -U http://x.x.x.x:4568/ -t
> m1.small ami-00000012
>
>
>  And it begins to run, but don't detect the disk image, because appears
> the message at the vnc:
>  Boot failed: not a bootable disk.
>
>  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.
>
>  Are we missing something in the template or the econe-run-instances
> command?
>
>  Could you help us?
>
>  Thank you,
>
>  Jesús
>
>  Jesús Martín García
> Administrador de Sistemes
> Consorci de Serveis Universitaris de Catalunya (CSUC)
>
> Gran Capità, 2 (Edifici Nexus) | 08034 Barcelona
> Tel 935.516.212 | FAX 932.056.979 | jesus.martin at csuc.cat
> www.csuc.cat | Twitter @CSUC_info | Facebook | Linkedin
> Subscriu-te al butlletí (www.csuc.cat/butlleti)
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140604/e998fc9a/attachment.htm>


More information about the Users mailing list