Re: [Vserver] Loopback interface

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Thu 25 Jan 2007 - 16:29:05 GMT
Message-ID: <58878.192.168.101.6.1169742545.squirrel@intranet>

Marc Guyard wrote:
> Hi everybody,
>
> I want to know if it's possible to have a loopback interface on each
> virtual
> server with vserver?
> I've read this here :
> http://linux-vserver.org/Frequently_Asked_Questions_scratch
>
> *127.0.0.1 issues* I had problems with an application that wanted me to
> access it on 127.0.0.1 and AS 127.0.0.1 to be able to do its
> configuration.
> A simple tweak solved the problem. I renamed the default interface
> directory
> "0" in /etc/vservers/server/interfaces to "1" and created interface 0 as :
> dev
> lo ip 127.0.0.1 mask 255.0.0.0 name lo
>
> now interface "1" is the default created interface by the vserver build
> script with a local adress like 192.168.1.2 and interface "0" is the
> loopback. I can now telnet on 127.0.0.1 and it sees that im connecting to
> 127.0.0.1 from 127.0.0.1
> Compiling nagios-1.4 within a vserver requires this, otherwise it hangs
> during the configure with "checking for ICMP ping syntax..."

That is certainly a bad idea. Giving all the guests access to the same IP
address _will_ create conflicts as soon as two guests want to run the same
service.

The 2.3.0.x versions support a per-guest loopback by assigning the guest
127.x.y.1 IP addresses, where x.y is replaced with the nid. The idea is
that it will be rewritten to 127.0.0.1 whenever userspace asks, but I'm
not sure whether that functionality is present yet, nor if the address is
usable without assigning it to the guest manually. (Herbert?)

-- 
Daniel Hokka Zakrisson
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jan 25 17:22:08 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 25 Jan 2007 - 17:22:21 GMT by hypermail 2.1.8