No Local Loopback with OpenVz and Ubuntu [message #25142] |
Sat, 15 December 2007 20:15 |
Scaryman
Messages: 4 Registered: December 2007
|
Junior Member |
|
|
Hello,
i have a Problem with Openvz and Ubuntu 7.10. The Host System is a Ubuntu 7.10 with the 2.6.18-fza-028stab051.1-686 Kernel. In my Guest System (Ubuntu 7.10) i have only 2 Network Devices and no Local Loopback but i neep this for my DNS Server.
When I Start a Debian guest i have this devices.
root@ubuntu-ns:/# ifconfig
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.0.0.1 P-t-P:10.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: No Local Loopback with OpenVz and Ubuntu [message #27649 is a reply to message #25142] |
Thu, 21 February 2008 17:00 |
geraldb
Messages: 3 Registered: February 2008
|
Junior Member |
|
|
A further tweak to the above:
Some init scripts (postfix in particular, in my case) expect the network interfaces to be available when they run, and rc.local is running too late (priority 99) in the init order.
So I've moved the contents of the rc.local script posted earlier into a new /etc/init.d/networking-restart script, and set its priority to S15/K85, so that it runs before most other init scripts. (It could probably go earlier; I just chose 15 because it was before ssh and postfix.) The following installs the new init script into the init start/stop queues:
update-rc.d networking-restart start 15 2 3 4 5 . stop 85 0 1 6 .
Again, this doesn't solve the issue, only provides a work-around, each step a little better than the previous. I don't know how to incorporate this into the official Ubuntu image, but I would be pleased to see it. And, of course, suggestions for further improvements are welcomed.
|
|
|