<div dir="ltr">Hello,<div><br></div><div>I am trying to set up UTS name space on centos 6.4 LXC container.</div><div>one method is that we set the host name in /etc/sysconfig/network.</div><div>hostname=test1</div><div>Is there any way so that i can set the hostname in libvirt xml while creating a container?</div>
<div><br></div><div>I know using lxc-tools we can set hostname while creating by 2 ways</div><div>- first while creating container using lxc-create -u test1</div><div>- Second by specifying lxc.utsname=test1 in config file</div>
<div><br></div><div>Thanks</div><div>Aarti Sawant</div><div>NTTDATA OSS Center Pune</div></div>