Hi List,

Been getting mails from people trying to get Linode, Xen and UMLs
working with FC4.

NPTL is the main issue. See my short howto:

http://uml.harlowhill.com/index.php/UML_Fedora_Core_4

Most people get the kernel going with init=/bin/bash but it blows up
when they try to boot using the /etc/rc/rc.init script. You have to do a
fair bit of surgery to /etc/rc/rc.init to bypass the bits and pieces
that have glibc statically linked (like e2fsck and others).

Once you have it all going, most things you do with yum will want to
upgrade glibc and the compiler ('cause it's now out of date). On my
system this was hard to do! But the answer is simple enough.

Mounting the rootfs on loop won't work in my case, because the host is
x86_64 and the UMLs are i386. Using --root with RPM does weird stuff to
RPM in the UML (don't know what, but RPM complains it's now installed
for a different architecture - bugger).

The answer is to run up a UML with a cow on the original rootfs. Make a
copy of the rootfs and mount it as ubdc (so there are now 2 copies of
the rootfs mounted, 1 with a cow file and the other mounted RW to be
upgraded). Download glibc...i686 and glibc-common....i386. Then use
--root option for RPM in the UML. The whole thing hangs up at the end
when the default libraries are processed (because the new NPTL libraries
are linked in again). Just kill the UML brutally.

Next, mount the upgraded rootfs on the host with the usual:

mount myrootfs /mysubdir/mnt -o root

then do the copy of /mysubdir/mnt/lib/obsolete/linuxthreads/i686/*
-> /mysubdir/mnt/lib. Overwrite what's there.

That's it! you now have a rootfs with the latest glibc.

All this becomes obsolete once the UML NPTL patch becomes stable
obviously (and I'm sure it'll be copied into Xen and others - they must
all be pretty similar in that area)... anyway in the mean time.

Cheers
Phill.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to