[lxc-users] vCPU controlling for LXC

Serge Hallyn serge.hallyn at ubuntu.com
Thu Apr 17 14:16:14 UTC 2014


Quoting Xingjun Wang (wongxingjun at gmail.com):
> Hi,guys! I've been using LXC to do my CS homework recently. I want to
> develop a manage system like virtManager to manage my LXCs with libvirt
> APIs(python binding).But the problem existed in vCPU controlling. When I
> run the command:
> jack at jack:~$ virsh -c lxc:/// vcpuinfo lxc1
> error: this function is not supported by the connection driver:
> virDomainGetVcpus
> 
> jack at jack:~$ virsh -c lxc:/// vcpupin lxc1
> error: this function is not supported by the connection driver:
> virDomainGetVcpuPinInfo
> 
> jack at jack:~$ virsh -c lxc:/// vcpucount lxc1
> error: Failed to retrieve maximum vcpu count
> error: Failed to retrieve current vcpu count
> 
> I wonder is there any other way to change the vCPU amount.
> (LXC1.0.0 and libvirt1.1.1 are used in the test)

Hi,

virsh is a part of libvirt, which is a separate project from lxc.
You'll want to send this question to libvir-list at redhat.com .

-serge


More information about the lxc-users mailing list