Difference between revisions of "Installing udev in VE based on Debian-4.0"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
Line 9: Line 9:
  
 
P.S. Don't forget to enable <tt>sysfs</tt> feature for VE in question (by vzctl), in order <tt>udev</tt> to be able to work.
 
P.S. Don't forget to enable <tt>sysfs</tt> feature for VE in question (by vzctl), in order <tt>udev</tt> to be able to work.
<tt>vzctl set XXX --features "sysfs:on" --save<tt>
+
 
 +
<tt>vzctl set XXX --features "sysfs:on" --save</tt>
  
 
[[Category:Troubleshooting]]
 
[[Category:Troubleshooting]]

Revision as of 11:06, 20 July 2007

When you install udev package in VE based on Debian-4.0 template, you can see the following message:

Setting up udev (0.105-4) ...
/var/lib/dpkg/info/udev.postinst: line 125: echo: write error: Operation not permitted

The problem is that postinstall script tries to write to /proc/sys/kernel/hotplug file, and this operation is prohibited in VE. To work around this problem, just comment the 125th line in /var/lib/dpkg/info/udev.postinst file, that writes to /proc/sys/kernel/hotplug file. After that udev can be installed smoothly.

P.S. Don't forget to enable sysfs feature for VE in question (by vzctl), in order udev to be able to work.

vzctl set XXX --features "sysfs:on" --save