Public bug reported:

Binary package hint: euca2ools

images bundled with euca-bundle-img do not run on EC2, but go from
'pending' to 'terminated'.

Below is an example, that can be run on natty, given appropriately
configured euca2ools.

-----
bucket=MY_BUCKET_HERE; # set your bucket here
imgurl=http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-i686-12.1_2.6.35-22_1.tar.gz
wget ${imgurl} -O "${imgurl##*/}"
tar -Sxvzf "${imgurl##*/}"
img=$(ls *.img)

n="euca";
rm -Rf ${n}-wd;
mkdir ./${n}-wd;
EC2PRE=${n}- uec-publish-image --kernel aki-407d9529 \
   -vv --rename mytest-${n}.img --working-dir ${n}-wd  \
   i386 ${img} $bucket;

The above will result in a ami that will go straight from pending to 
'terminated'.
Using the ec2-api-tools and ec2-ami-tools, the instance will start and go to 
'running'.  Note, that it won't actually boot, but that is a problem with the 
image itself, not with the tools (some bug with pv-grub loading).

With the newest version of cloud-utils, you can set up your environment
variables correctly, and then just change 'euca' to 'ec2' to use the
ec2-a[mp]i-tools rather than euca2ools, and it will all work.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: euca2ools 1.3.1-0ubuntu1
ProcVersionSignature: User Name 2.6.37-12.26-virtual 2.6.37
Uname: Linux 2.6.37-12-virtual x86_64
Architecture: amd64
Date: Thu Jan 13 21:46:32 2011
Ec2AMI: ami-4e768727
Ec2AMIManifest: 
ubuntu-images-testing-us/ubuntu-natty-daily-amd64-server-20110112.manifest.xml
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.large
Ec2Kernel: aki-427d952b
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: euca2ools

** Affects: euca2ools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.
https://bugs.launchpad.net/bugs/702626

Title:
  euca2ools published images do not run on ec2

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to