[xen-tools] some ubuntu machines may need libc6-xen installed in bootstrap...

Andrew Sutherland andrew at theptrgroup.com
Sun Jul 22 23:28:07 CEST 2007


I have a dual-proc Pentium 3 server running Ubuntu feisty/7.04.  When
generating feisty images with xen-create-images, 20-setup-apt reliably
fails to install libc6-xen for what would appear to be a chicken/egg
problem.  The unpack stage segfaults like so:

---
Unpacking libc6-xen (from .../libc6-xen_2.5-0ubuntu14_i386.deb) ...
Segmentation fault
dpkg: error processing
/var/cache/apt/archives/libc6-xen_2.5-0ubuntu14_i386.deb
(--unpack):
 subprocess pre-installation script returned error exit status 139
---

I have hacked around this by modifying xt-install-image's do_debootstrap
to understand deb_include/deb_exclude/deb_components configuration
values which are propagated to debootstrap's respective
--include/--exclude/--components.

I then add the following to my /etc/xen-tools/xen-tools.conf:
deb_include=libc6-xen
deb_components=main,universe

This results in an image that builds and runs correctly. 
(20-setup-apt's libc6-xen install becomes a no-op.)

Clearly, this is not a perfect solution.  My minimal idea of expanding
this would be to add a distribution-specific configuration file for each
distribution which would then hold these configuration definitions (or
whatever they are renamed to).

My patch is attached for completeness.

Andrew Sutherland

PS: Thanks for the excellent project; it has greatly simplified what
would otherwise be an extended hassle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allow-custom-packages-at-debootstrap.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://sym.noone.org/pipermail/xen-tools-discuss/attachments/20070722/16f21e93/attachment.bin>


More information about the xen-tools-discuss mailing list