[Bug 358098] Re: vmbuilder hangs or crashes when building images on ec2 instances

Cap Petschulat cap.petschulat at gmail.com
Tue Apr 14 22:21:24 UTC 2009


I just re-tested with the official ubuntu beta; the result is still a
segfault instead of a hang, but the libc fix works. Here's what I did,
boiled down as simply as I can get it.

Spin up a small instance of ami-69d73000 (canonical-beta-us/ubuntu-
intrepid-beta2-20090226-i386.manifest.xml), apt-get upgrade and install
debootstrap.

$ mkdir img
$ sudo debootstrap hardy img
$ sudo touch img/etc/init.d/foo
$ sudo chroot img /usr/sbin/update-rc.d foo start 15 S .
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_CA.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Segmentation fault

Add restricted, universe, and multiverse to img/etc/sources.list

$ sudo chroot img apt-get update
$ sudo chroot img apt-get install libc6-xen

Create img/etc/ld.so.conf.d/libc6-xen.conf as in
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/293067.

$ sudo chroot img apt-get remove libc6-686
$ sudo chroot img ldconfig

$ sudo chroot img /usr/sbin/update-rc.d foo start 15 S .
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_CA.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
 Adding system startup for /etc/init.d/foo ...
   /etc/rcS.d/S15foo -> ../init.d/foo

---------

I've also added the libc6-xen kludge to an appropriate spot in my
python-vm-builder so that it works now, too. Since I'm building vmw6
images, it seems a bit perverse to be installing the xen libc6, though
I'm not yet sure if it's actively harmful. The same modified python-vm-
builder works on the alestic images, as well.

-- 
vmbuilder hangs or crashes when building images on ec2 instances
https://bugs.launchpad.net/bugs/358098
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list