Subject: Re: [vserver] vserver + virtual interfaces
From: Peter Sabaini <peter@sabaini.at>
Date: Fri, 14 Nov 2008 21:50:54 +0100
Fri, 14 Nov 2008 21:50:54 +0100
On Friday 14 November 2008 20:30:34 Tomás de Barros Correia wrote:
> First of all, thanks for the help. :)
> Later some searchs on the net, I configured the server and the services
> that I want.
> Now, I have another doubt: Is it possible to have differents loopback
> interfaces for each VM?
> My problem now is to configurate my VMs for use NIS. I've observed that the
> NIS listen on all availiable interfaces - included the loopback interface
> that is the same of loopback interface of host machine. NIS was an
> example... I was realizing if I want to install other services that run on
> the same port. Does anybody know some way to do it?


So far, I mostly managed to "discourage" server software from binding to 
loopback either by explicit configuration, by aliasing "localhost" to the 
VServers' main IP, or by patching... I don't know about NIS though.

I guess multiple loopback interfaces won't be a problem, but if some software 
insists on using 127.0.0.1 that could be cumbersome.

There is also a loopback remapping facility, but I haven't used that so far 
(AFAIK its only in 2.3-vserver kernels).

hth,
peter.

> Best regards,
>
>   Tomás.
>
> On Wed, Nov 12, 2008 at 10:30 AM, Peter Sabaini <peter@sabaini.at> wrote:
> > On Wednesday 12 November 2008 14:07:11 Herbert Poetzl wrote:
> > > On Tue, Nov 11, 2008 at 05:33:44PM -0300, Tomás de Barros Correia wrote:
> > > >  Hi all,
> > > >
> > > > I'd like to create about 5 virtual machines wich one with real IPs on
> > > > my machine (with just one physical network interface - eth0). I've
> > > > tried to create 5 virtual network interfaces (eth0:0, eth0:1 ...)
> >
> >  -- snip --
> >
> > > > There's something wrong or something missing in my configuration
> > > > an I would like to know the way to do it (tutorial, how to,
> > > > articles etc).
> > >
> > > the basic (and probably best) way to use a single IP
> > > for several guests is to assigne private addresses to
> > > the guest (e.g. 192.168.0.*) and S/DNAT them for the
> > > ports you want to be mapped.
> >
> > What worked for me was either
> >
> > a) setting up a dummy interface (dummy0), and use S/DNAT as you said or
> > b) use a VLAN device, eg. eth0.10 and assign a separate network to this
> >
> > This of course depends on the circumstances but I'd be curious what other
> > people think of the merits of each scenario. I kind of prefer b) if
> > possible,
> > seems simpler to me.
> >
> > bye,
> > peter.
> >
> > > > Can anybody help me?
> > >
> > > very likely, but we all need more information about
> > > your system/setup ...
> > >
> > > > Thanks in advance!
> > >
> > > best,
> > > Herbert




["application/pgp-signature" not shown]