Migration EBS AMI instance doesnt work

Elie's Avatar

Elie

27 Oct, 2012 10:52 AM

Hello,

I can migrate an EBMS AMI instance within the same region, and launch it just fine.
However, if I migrate it across regions (Ireland -> N. Virginia), and launch it, the instance I get in system log, something like :

`Failed to read /local/domain/0/backend/vbd/388/2049/feature-barrier. Failed to read /local/domain/0/backend/vbd/388/2049/feature-flush-cache.
20971520 sectors of 512 bytes


GNU GRUB  version 0.97  (629760K lower / 0K upper memory)
   [ Minimal BASH-like line editing is supported.   For
     the   first   word,  TAB  lists  possible  command
     completions.  Anywhere else TAB lists the possible
     completions of a device/filename. ]

grubdom>

[9;10H`

Any idea what went wrong ? I tried doing another migration to check ,it's all the same.

Thanks

Elie

  1. Support Staff 1 Posted by Ylastic on 27 Oct, 2012 11:54 AM

    Ylastic's Avatar

    That seems like an issue with the kernel. Somehow the chosen kernel or EC2 default kernel is not working for the migrated Ami. If you can give me more info I can try and locate a kernel for you in the new region.

  2. 2 Posted by Elie on 27 Oct, 2012 03:26 PM

    Elie's Avatar

    The AMI is CentOS 6.2 x86_64 (ami-afa09edb) - however I have customized it, and wanted to get it as is in another region.
    Does this mean this is not possible ?

    Thanks

    Elie

  3. Support Staff 3 Posted by Ylastic on 27 Oct, 2012 04:24 PM

    Ylastic's Avatar

    What I am saying is that some AMis are very sensitive to the kernel used to launch them. The kernel picked in the migration dialog may not be working in this case. So if you can tell me the region you are migrating to, I can do some looking around and see if we are able to find a kernel that might work for you.

  4. 4 Posted by Elie on 27 Oct, 2012 10:01 PM

    Elie's Avatar

    I need to launch it in Oregon and N. Virginia - coming from Ireland
    The original kernel is aki-60695814

    Thank you

    Regards

    Elie

  5. Support Staff 5 Posted by Ylastic on 28 Oct, 2012 01:50 PM

    Ylastic's Avatar

    Oregon : aki-94e26fa4

    Virginia : aki-8e5ea7e7

  6. 6 Posted by chetan on 28 Oct, 2012 03:03 PM

    chetan's Avatar

    We're having the same issue, trying to migrate an Ubuntu 10.04 based AMI from us-east-1 to us-west-1. We tried migrating the AMI over directly as well as spinning up an instance and using that create the AMI (in case there were some weird bundling issues).

    current working us-east-1 AKI: aki-6603f70f
    current us-west-1 AKI: aki-99a0f1dc

    This was the only option after selecting ubuntu 10.04 from the OS dropdown. I assume to select some other AKI we would just choose one of the OS options that gives you a full dropdown of AKIs?

  7. 7 Posted by chetan on 28 Oct, 2012 03:45 PM

    chetan's Avatar

    I located another AKI (aki-e40c5ca1) in us-west-1 using the steps here:

    http://elastic-security.com/2011/02/10/how-to-copy-an-ebs-backed-am...

    I'm giving that a try now.

  8. 8 Posted by Elie Habib on 28 Oct, 2012 06:01 PM

    Elie Habib's Avatar

    Thank you

    Awaiting your update

    Regards

  9. 9 Posted by chetan on 28 Oct, 2012 06:48 PM

    chetan 's Avatar

    it worked!

  10. 10 Posted by Elie Habib on 28 Oct, 2012 06:59 PM

    Elie Habib's Avatar

    Now trying to make sense of everything , since I was out earlier and read
    your mails on mobile.

    1. My Instance is :

    [root@api ~]# uname -a
    Linux api.anghami.com 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16
    GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
    [root@api ~]# cat /proc/version
    Linux version 2.6.32-220.4.2.el6.x86_64 (
    [email blocked]) (gcc version 4.4.6 20110731 (Red Hat
    4.4.6-3) (GCC) ) #1 SMP Tue Feb 14 04:00:16 GMT 2012
    [root@api ~]# cat /etc/redhat-release
    CentOS release 6.3 (Final)

    It's not an ubuntu instance - but a CentOS

    2. What are you suggesting me to do, pick a different AMI instead ? or am I
    missing something ?

    Thanks

    Elie

  11. 11 Posted by Chetan Sarva on 28 Oct, 2012 07:55 PM

    Chetan Sarva's Avatar

    These are the instructions I provided to someone else, mostly adapted from the URL I mentioned earlier:

    $ ec2-describe-images -H --region us-east-1 -a -F kernel-id=aki-73b4731a

    then look for the correct image name, it should be sorta obvious like "ubuntu-lucid-10.04-i386-server-20110719"
    I verified the distro first via

    $ cat /etc/issue

    in case that describe command comes up empty (as that AKI did for me) you can just google it. For that AKI i came up with -

    http://cloud-images.ubuntu.com/releases/10.04/release-20110719/published-ec2-release.txt.orig

    which shows the ubuntu image version as -

    ebs/ubuntu-images/ubuntu-lucid-10.04-amd64-server-20110719

    the last bit being the version. That page also happens to have the AKI for each region & arch. You could also find the AKI in us-west-1 via -

    $ ec2-describe-images -H --region us-west-1 -a -F name="*lucid-10.04-i386-server-20110719*"

    The name is a wildcard pattern, so in case you get no results, you can try removing some bits and try again. Even the date alone works great.

    Once you have your new AKI ID, go into ylastic and choose "Debian" as your OS and find the AKI in the dropdown (*should* be there!)

  12. 12 Posted by Elie Habib on 28 Oct, 2012 08:15 PM

    Elie Habib's Avatar

    Fine, I tried, and found an aki that mind be useful "aki-825ea7eb"
    But this is not available in ylastic while doing a migration,

    Regards

    Elie

  13. Support Staff 13 Posted by Ylastic on 28 Oct, 2012 08:32 PM

    Ylastic's Avatar

    I had posted these two AKI for you earlier. Did these not work for you?

    Oregon : aki-94e26fa4

    Virginia : aki-8e5ea7e7

  14. 14 Posted by Elie Habib on 28 Oct, 2012 11:10 PM

    Elie Habib's Avatar

    No unfortunately, didn't work at all.
    I just tried it in N Virginia and Oregon - same thing,

    As mentioned it is a CentOs 6.2 version ,

    Regards

    Elie

  15. Ylastic closed this discussion on 08 Aug, 2014 02:19 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac