[Lxc-users] Confusing documentation for lxc.utsname?

Matthijs Kooijman matthijs at stdin.nl
Wed Aug 17 10:51:16 UTC 2011


Hi folks,

I'm a bit confused about the lxc.utsname option. The lxc.conf
manpage says:

       The  utsname  section  defines  the hostname to be set for the
       container. That means the container can set its own hostname
       without changing the one from the system. That makes the hostname
       private for the container.

I'm interpreting this as: If you set an utsname here, the container will
get its own independent hostname. If you don't set an utsname in the
configuration, the container will share the hostname with the host
system, meaning you can change the host hostname from within the
container.

However, experiments as well as source review show that this is not the
case: a container seems to always have an independent hostname,
regardless of the (presence of) a utsname option. If this is correct,
would it perhaps make sense to reword the above paragraph like this:

       The  utsname  section  defines  the hostname to be set for the
       container. Every container can always set its own hostname
       without changing the one from the system, but without this option
       the hostname for the container gets initialized to the hostname
       of the system.

Or something like that?

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110817/3f6533e1/attachment.pgp>


More information about the lxc-users mailing list