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

Jesus Martin jesus.martin at csuc.cat
Fri Jun 6 03:34:06 PDT 2014


Hi Dani,

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.

Thanks!

Jesús


On 4 de junio de 2014 at 11:06 Daniel Molina <dmolina at opennebula.org> wrote:

>  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
> <mailto: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/
> > <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/
> > <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 <tel:935.516.212> | FAX 932.056.979 <tel:932.056.979> |
> > jesus.martin at csuc.cat <mailto:jesus.martin at csuc.cat>
> >    www.csuc.cat <http://www.csuc.cat> | Twitter @CSUC_info | Facebook |
> > Linkedin
> >    Subscriu-te al butlletí (www.csuc.cat/butlleti
> > <http://www.csuc.cat/butlleti> )
> > 
> >    _______________________________________________
> >    Users mailing list
> >    Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
> >    http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> > <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
> >  > 
> 
> 
>  --
>  --
>  Daniel Molina
>  Project Engineer
>  OpenNebula - Flexible Enterprise Cloud Made Simple
>  www.OpenNebula.org <http://www.OpenNebula.org> | dmolina at opennebula.org
> <mailto:dmolina at opennebula.org> | @OpenNebula
> 

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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140606/bee4512e/attachment.htm>


More information about the Users mailing list