[libvirt-users] Is there any virsh command to setup cpusettune for lxc?

2013-08-07 Thread hzguanqi...@corp.netease.com
Hi Gao feng, I noticed one of your patch which adds cpuset cgroup support for lxc have been merged in libvirt 1.0.4. But I can't find any virsh command to set cpusettune for lxc container. Is there anyone? And how can I configure cpusettune for lxc container lively? Thanks -

[libvirt-users] lxc-enter-namespace not supportted with python?

2013-08-21 Thread hzguanqi...@corp.netease.com
Hi, Daniel. It seems that the virsh command 'lxc-enter-namespace' encapsulates several functions just as 'virDomainLxcOpenNamespace', 'virDomainGetSecurityLabel', 'virDomainLxcEnterSecurityLabel' , 'virDomainLxcEnterNamespace', 'virFork', etc. And I found only 'virDomainLxcOpenNamespace' is pr

Re: [libvirt-users] How to insert vcpupin in guest xml file

2013-09-09 Thread hzguanqi...@corp.netease.com
Hi Peeyush, I also added vcpupin setting for my vm started by openstack. You can add the configure into xml just like one of the following two formats: 3 OR Wish this can help you. On 2013-09-09 11:39 , hongming wrote: On 07/19/2013 04:51 PM, Peeyush Gupta wrote: Hi all

[libvirt-users] Problem about lxc-enter-namespace interface

2013-11-13 Thread hzguanqi...@corp.netease.com
Hi experts, When I test lxc-enter-namespace interface, it turned out such an error: hzguanqiang@debian:~$ vir version Compiled against library: libvirt 1.1.4 Using library: libvirt 1.1.4 Using API: LXC 1.1.4 Running hypervisor: LXC 3.9.6 hzguanqiang@debian:~$ vir list IdName

Re: [libvirt-users] Problem about lxc-enter-namespace interface

2013-11-13 Thread hzguanqi...@corp.netease.com
On 2013-11-14 13:41 , Gao feng wrote: On 11/14/2013 01:24 PM, Gao feng wrote: > On 11/14/2013 10:59 AM, hzguanqi...@corp.netease.com wrote: >> Hi experts, >> >> When I test lxc-enter-namespace interface, it turned out such an error: >> >> hzguanqiang@deb

Re: [libvirt-users] Problem about lxc-enter-namespace interface

2013-11-13 Thread hzguanqi...@corp.netease.com
On 2013-11-14 14:17 , Gao feng wrote: On 11/14/2013 01:52 PM, hzguanqi...@corp.netease.com wrote: > On 2013-11-14 13:41 , Gao feng <mailto:gaof...@cn.fujitsu.com> wrote: > > On 11/14/2013 01:24 PM, Gao feng wrote: > > On 11/14/2013 10:59 AM, hzguanqi...@corp.netease.c

Re: [libvirt-users] Problem about lxc-enter-namespace interface

2013-11-13 Thread hzguanqi...@corp.netease.com
On 2013-11-14 15:03 , Gao feng wrote: On 11/14/2013 02:57 PM, hzguanqi...@corp.netease.com wrote: > On 2013-11-14 14:17 , Gao feng <mailto:gaof...@cn.fujitsu.com> wrote: > > On 11/14/2013 01:52 PM, hzguanqi...@corp.netease.com wrote: > > On 2013-11-14 13:41 ,

Re: [libvirt-users] Problem about lxc-enter-namespace interface

2013-11-14 Thread hzguanqi...@corp.netease.com
On 2013-11-14 16:40 , Gao feng wrote: On 11/14/2013 03:09 PM, hzguanqi...@corp.netease.com wrote: > On 2013-11-14 15:03 , Gao feng <mailto:gaof...@cn.fujitsu.com> wrote: > > On 11/14/2013 02:57 PM, hzguanqi...@corp.netease.com wrote: > > On 2013-11-14 14:17 ,

[libvirt-users] Question about setns recognising in libvirt autoconf

2013-12-08 Thread hzguanqi...@corp.netease.com
Hi experts, When I test lxc container with lxc-enter-namespace command, It reported an error as following: root@debian:~/github/libvirt# vir lxc-enter-namespace lxc --noseclabel /bin/df -hl error: Cannot get namespaces for 3145: Function not implemented It seems that setns is not supported by m

Re: [libvirt-users] Question about setns recognising in libvirt autoconf

2013-12-08 Thread hzguanqi...@corp.netease.com
On 2013-12-09 13:18 , Gao feng wrote: On 12/09/2013 01:06 PM, hzguanqi...@corp.netease.com wrote: > Hi experts, > > When I test lxc container with lxc-enter-namespace command, It reported an > error as > following: > root@debian:~/github/libvirt# vir lxc-enter-namespace lxc --

Re: [libvirt-users] Question about setns recognising in libvirt autoconf

2013-12-08 Thread hzguanqi...@corp.netease.com
Hi Gaofeng, It seems that I've got the answer. In manual page about setns, it said that library support was added to glibc in version 2.14 while my libc version is 2.13. Thanks for help anyway. On 2013-12-09 13:22 , hzguanqi...@corp.netease.com wrote: On 2013-12-09 13:18 , Gao feng wrote: