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

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Debian category)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When you install <tt>udev</tt> package in [[VE]] based on Debian-4.0 template, you can see the following message:
+
When you install the <tt>udev</tt> package in [[VE]] based on Debian-4.0 template, you can may the following message:
 
<pre>
 
<pre>
 
Setting up udev (0.105-4) ...
 
Setting up udev (0.105-4) ...
Line 5: Line 5:
 
</pre>
 
</pre>
  
The problem is that postinstall script tries to write to <tt>/proc/sys/kernel/hotplug</tt> file, and this operation is prohibited in VE.
+
The problem is that postinstall script tries to write to <tt>/proc/sys/kernel/hotplug</tt> file, and this operation is prohibited in a VE.
To work around this problem, just comment the 125th line in <tt>/var/lib/dpkg/info/udev.postinst</tt> file, that writes to <tt>/proc/sys/kernel/hotplug</tt> file. After that <tt>udev</tt> can be installed smoothly.
+
To work around this problem, just comment the 125th line in <tt>/var/lib/dpkg/info/udev.postinst</tt> file, that writes to the <tt>/proc/sys/kernel/hotplug</tt> file. After that <tt>udev</tt> can be installed smoothly.
  
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 the <tt>sysfs</tt> feature for the VE in question (by vzctl), in order for <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]]
 +
[[Category:Debian]]

Latest revision as of 15:54, 1 February 2009

When you install the udev package in VE based on Debian-4.0 template, you can may 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 a VE. To work around this problem, just comment the 125th line in /var/lib/dpkg/info/udev.postinst file, that writes to the /proc/sys/kernel/hotplug file. After that udev can be installed smoothly.

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

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