Debian Lenny expects udev on a vps that doesn't support it

2

Primary symptom: /proc/self/fd is there and normally populated, however /dev/fd is not. Process substitution therefore fails, because bash wants to create files under /dev/fd.

/dev/.static/ and /dev/.udev are populated. aptitude udev shows that the Debian package is installed, even though udev cannot be supported on this Xen vps (and, I believe, isn't supported by default until later stable versions of the Linux kernel).

Host:

Linux version 2.6.16.29-xen (root@potige) (gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)) #1 SMP Tue Dec 5 20:43:23 CET 2006

The Debian inst. is an up-to-date Lenny 5.0.4.

Question

I can solve the immediate problem by symlinking from proc/self/fd to /dev/fd, and putting the appropriate script in init.d. But are there any risks arising from Debian being misinformed about what my vps can do? And if so, what should I do about it?

Charles Stewart

Posted 2010-02-17T09:19:52.480

Reputation: 2 624

Answers

1

Most Xen HowTos I've seen (HowToForge, debian.org) indicate that udev needs to be enabled at image creation by passing --role=udev to xen-create-image.

I doubt you can create an image that uses udev on a running system that doesn't support it, but it might be possible.

My best guess is that you should remove the udev package from your Lenny guest (apt-get remove udev), and let it use the old devfs. If you have packages that depend on udev, you may need to remove them and find alternatives that do not.

quack quixote

Posted 2010-02-17T09:19:52.480

Reputation: 37 382

Accepted: the link is spot on. I have emailed my vps provider, who understands the issue, but is in no hurry to upgrade the Xen server. – Charles Stewart – 2010-02-24T15:23:04.667