On Thu, Nov 14, 2013 at 11:26:25AM +0530, Aarti Sawant wrote:
Hello,
I am trying to set up UTS name space on centos 6.4 LXC container.
one method is that we set the host name in /etc/sysconfig/network.
hostname=test1
Is there any way so that i can set the hostname in libvirt xml while
creating a container?
I know using lxc-tools we can set hostname while creating by 2 ways
- first while creating container using lxc-create -u test1
- Second by specifying lxc.utsname=test1 in config file
Libvirt XML does not provide a way to set the hostname. At this
time, it is left upto the services running inside the container
to decide upon.
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|