Been getting mails from people trying to get Linode, Xen and UMLs
working with FC4.
NPTL is the main issue. See my short howto:
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.
Get latest updates about Open Source Projects, Conferences and News.