Re: [vserver] vserver hostnames

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Sat 25 Aug 2007 - 19:36:10 BST
Message-ID: <20070825183610.GA24569@MAIL.13thfloor.at>

On Sat, Aug 25, 2007 at 10:40:25AM -0500, David Bandel wrote:
> Folks,
>
> I've run vservers before and have decided I need to go back to them to
> better manage some things. However, I seem to be running into a small
> snag.
>
> Before, I had several guests running on one host, but now it appears
> I'm having a clash. What I need to do (and I'm sure I had this
> previously):
>
> vservers:
> mail.abc.com
> mail.xyz.com
>
> When I create the first guest, all is well. I then move mail to abc
> changing mail in /var/lib/vservers (mv'ing the directory name), and
> changing /etc/vservers/mail to /etc/vservers/abc, and also changing
> the appropriate links int /etc/vservers/.defaults, and the entries in
> /etc/vservers/abc/uts/nodename and /etc/vservers/abc/hostname.

you probably should avoid that, so much can go wrong
here, so I'd advise to use vserver <name> clone or
similar to do that

> Creating the second guest works, but entering the first guest now
> shows me the name is abc.abc.com. If I don't change the nodename, I
> get the error mail is running.

the name can be either specified in the utsname config
for that guest, or, depending on the flags, from inside
the guest (which might be the case here)

> Is there any solution to this dilemna that will allow me to run
> various "mail" servers under different domain names?
>
> The FAQ, docs, and tutorials all seem to assume you'll only run
> systems with different hostnames under one domain. I need about 6
> "mail" servers that are mail.domain.com as different domain names. I
> need this so the servers reply as mail.abc|xyz.com
>
> Can this be done? If so, how?

yes, definitely, the host and domain names are completely
isolated and virtualized now, so you can get whatever
combination you want ...

best,
Herbert

> TIA,
>
> David A. Bandel
> --
> Focus on the dream, not the competition.
> - Nemesis Air Racing Team motto
Received on Sat Aug 25 19:37:04 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 25 Aug 2007 - 19:37:11 BST by hypermail 2.1.8