Re: Right use of Hostname and Name [message #43030 is a reply to message #43025] |
Tue, 05 July 2011 18:54  |
 |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Greetings,
----- Original Message -----
> So what is the right usage of HOSTNAME and NAME in the VZ conf? where i
> should use the FQDN and where just the hostname?
vzctl's --name flag is just for vzctl so you can use a name rather than the ctid... just like hostnames are generally friendlier than IP addresses. It is really just a symlink in /etc/vz/names/ that points to the config. To the best of my knowledge, only vzctl allows you to use it... whereas, for example, vzmigrate does not.
The --hostname flag is for setting the hostname of the container. Where the value gets written into the container is distro specific. For example, in Red Hat / Fedora OS Templates, the value gets written to /etc/sysconfig/network. Other distros might expect it to be elsewhere.
The man page for vzctl is a little lean in the descriptions for --name and --hostname but I think it is clear enough.
TYL,
--
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|