Justin.
When I run this script I get two errors.
1. When chrooting the image, the resulting terminal no longer has internet
access as the resolv.conf link in /etc is broken as there is nothing in
/var/run or /run. The way I got around this was copying /etc/resolf.conf
from my native environment to /tmp/imag/run/ ...
2. When I run the script after solving problem 1, I get the following
errors:
Err
http://www.cs.wisc.edu lenny/contrib Sources
404 Not Found
Ign
http://www.cs.wisc.edu lenny/contrib Translation-en
Fetched 2805 kB in 9s (311 kB/s)
W: Failed to fetch
http://www.cs.wisc.edu/condor/debian/development/dists/lenny/contrib/source/Sources
404 Not Found
E: Some index files failed to download. They have been ignored, or old ones
used instead.
Traceback (most recent call last):
File "scimage.py", line 612, in <module>
main()
File "scimage.py", line 590, in main
upgrade_packages()
File "scimage.py", line 274, in upgrade_packages
apt_command('update')
File "scimage.py", line 228, in apt_command
run_command(cmd)
File "scimage.py", line 216, in run_command
raise Exception(errmsg)
Exception: command 'DEBIAN_FRONTEND='noninteractive' apt-get -o
Dpkg::Options::='--force-confnew' -y --force-yes update' failed with status
100
I investigated the addresses and it is true that the directory does not
exist.
http://www.cs.wisc.edu/condor/debian/development/dists/lenny/contrib/has
the following directories
binary-amd64/
binary-i386/
Cheers.
Ed.
On 13 February 2013 13:55, Ed Morris <ecm200_at_gmail.com> wrote:
> Thanks Justin.
>
> One question, once you have run the script, how do you then register it as
> an AMI?
>
> Thanks.
>
> Ed.
>
>
> On 13 February 2013 08:28, Justin Riley <justin.t.riley_at_gmail.com> wrote:
>
>> Hi Ed,
>>
>> The latest AMI build script is available here:
>>
>> https://github.com/jtriley/StarCluster/blob/develop/utils/scimage.py
>>
>> It's pretty rudimentary but gets the job done. There are some
>> instructions in the header about downloading a Ubuntu cloud image from
>> uec-images.ubuntu.com, chrooting, and running the script inside the
>> chroot as root. You can either do this on an EC2 instance on an
>> attached EBS volume or in a chroot on your local machine.
>>
>> HTH,
>>
>> ~Justin
>>
>> On Wed, Feb 6, 2013 at 10:41 AM, Ed Morris <ecm200_at_gmail.com> wrote:
>> > Hi.
>> >
>> > I was wondering, would anyone be able to provide an update to the
>> cookbook
>> > on the Wiki page (here) for installing a newer version of Ubuntu HVM
>> for use
>> > on compute cluster nodes?
>> >
>> > I require the use of glibc 2.14 or above, and current AMI's for HVM
>> versions
>> > are limited to version 11.10, which uses glibc 2.13.
>> >
>> > Thanks.
>> >
>> > Ed.
>> >
>> > --
>> > Ed Morris
>> > ------------------------------------------------
>> > email: ecm200_at_gmail.com
>> > phone:
>> >
>> > _______________________________________________
>> > StarCluster mailing list
>> > StarCluster_at_mit.edu
>> > http://mailman.mit.edu/mailman/listinfo/starcluster
>> >
>>
>
>
>
> --
> Ed Morris
> ------------------------------------------------
> email: ecm200_at_gmail.com
> phone:
>
--
Ed Morris
------------------------------------------------
email: ecm200_at_gmail.com
phone:
Received on Wed Feb 13 2013 - 08:57:41 EST