Re: Can LXC and KVM run in a single node at the same time? How does LXC vcpu map to cgroups cpu.shares?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[please start a new topic with a new thread, instead of using
in-reply-to an unrelated thread]

On 02/22/2013 07:42 PM, 张章 wrote:
> 
> hi,all
> I want to run LXC and KVM in a single node at the same time. Is it possible? 

Yes, you can have both hypervisor drivers running on the same machine;
you choose which hypervisor you connect to according to the URI that you
pass to 'virsh -c' or virConnectOpen().

> If so, can resource isolation work properly? that is, can LXC and KVM get their corresponding shares of resources(vcpu, memeory, etc..)?  
> In that case, how does LXC vcpu  map to cgroups cpu.shares?  

Yes, both LXC and qemu hypervisors know how to limit guest resources
using cgroups under the hood; in particular, see
http://libvirt.org/formatdomain.html#elementsCPUTuning for the XML to
use.  <cputune> has a sub-element <shares> that maps nicely to the
cgroups cpu.shares.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux