| « Having fun with start-stop-daemon and quoting | Using recent Catalyst with uclibc » |
Recent udev and legacy Xen on Gentoo
I just managed to reboot one of the Xen servers I still admin, just by creating another domain:-/
Running with old versions of xen-sources results in problems as seen above and with newer udev versions. For reference to the Gentoo Xen users out there I'm posting this.
If you see errors like:
* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Your kernel is too old to work with this version of udev.
* Current udev only supports Linux kernel 2.6.25 and newer.
* Could not create /dev/pts!
* Checking root filesystem ...Failed to open the device '/dev/sda1': No such file or directory
* Filesystem couldn't be fixed :(
[ !! ]
Give root password for maintenance
(or type Control-D to continue):
You've probably upgraded to a version of udev that actively refuses to boot with your old Xen kernel. Normally my workaround is to mask all udev versions greater than 141 (the fix being a migration to a supported supported virtualization technology).
Also make sure that you have the old version of /etc/init.d/udev-mount, otherwise your system will refuse to boot. Perhaps it's possible to just hack around this limitation in the udev-mount init script but I haven't really bothered to check. There might be a better official fix that I haven't found yet though....
Trackback address for this post
9 comments
http://code.google.com/p/gentoo-xen-kernel/
I've been using this on my Xen server for a while it it works well, plus you won't need to worry about the udev hassles described here.
There is a very large pool of very useful servers that CANNOT run KVM due to not having proper CPUs. This includes powerful first and second generation Opterons and many 32- and 64-bit Xeon CPUs before the Core microarchitecture.
It is naive to assume everybody can afford to upgrade to expensive new machines or should put their current high end hardware in a landfill because KVM is the hot new thing. Xen works very well, so please stop spreading FUD. Gentoo is broken, not Xen.
@Kevin Bowling: Certainly not intended as FUD just as a help for those using stock Gentoo xen-sources. I just clarified the post a bit. If people want to use Xen fine with me, it would be even greater if we had updated xen-sources in the tree. I'm wondering why the above link is not in Portage or Sunrise though....
Thanks for the link. I was about to move to the pv_ops but I dunno if I trust it yet. I think i'll stick with the patched kernel for now.
Thanks!