Ubuntu 9.04 in an OpenVZ VE
Networking ceases to function after upgrading Ubuntu 8.10 to 9.04 within an OpenVZ VE. The symptoms are that none of the network interfaces are created, and running ifup complains with ifup: failed to open statefile /var/run/network/ifstate: No such file or directory. Manually creating the directory /var/run/network fixes this problem temporarily, allowing ifup to work.
The root cause of this is a change in the ifupdown package. In previous versions, /etc/init.d/loopback created the /var/run/network directory. In the new version, this action has been reassigned to /lib/udev/rules.d/85-ifupdown.rules. Because udev is disabled within OpenVZ VEs, /lib/udev/rules.d/85-ifupdown.rules was never run, and the /var/run/network directory never created.
We’ve fixed this by modifying /etc/init.d/networking and adding a line [ -d /var/run/network ] || mkdir /var/run/network immediately on line 53 immediately after start).
— Federico Sevilla III, 29 April 2009, 17:40
Comment
Commenting is closed for this article.
Philippine Agile Community Ubuntu 9.04 in an OpenVZ VE - Respawning Getty Process

— paulo · May 2, 05:42 AM · #
— Christoph Lechleitner · May 8, 12:27 AM · #
— PTecza · May 8, 08:15 PM · #
— aleka · May 21, 06:51 AM · #
— Christopher Smith · May 25, 04:07 AM · #