[libvirt-users] auto-set /cgroup/*/libvirt/qemu/<vm name>/ directory permissions on creation
by Ben Clay
Is there a way to automatically set the permissions of cgroups directories
created by libvirt when a VM is launched?
Although it looks like I can set permissions on top-level /cgroup
directories via cgconfig.conf, the cgconfig.conf manpage says "Permissions
are related only to enclosing control group and are not inherited by
subgroups.". From this, I believe that when libvirt creates VMs, the new
directories under /cgroup/*/libvirt/qemu/<vm name>/ will not receive the
cgconfig.conf permissions.
Where in the libvirt config can I set this? We need users other than root
to write to specific subsystems.
I can ask on the libcg mailing list as well, but I thought I'd try here
first since libvirt is dynamically creating / destroying these groups.
Thanks.
Ben Clay
<mailto:rbclay@ncsu.edu> rbclay(a)ncsu.edu
13 years
[libvirt-users] CentOS5: libvirtd filling up /var/lib/libvirt/qemu/save
by Ben Clay
How can I disable libvirtd from attempting to suspend VMs on poweroff /
reboot? It is slowly filling up our /var/ filesystem with save points at
/var/lib/libvirt/qemu/save/<vm name>.save, even though I'm not initiating
any suspend or restore functionality.
I checked /etc/libvirt/libvirtd.conf and /etc/libvirt/qemu.conf but could
not find anything.
This is CentOS 5 with libvirt 0.8.2-22 and kvm-83-239.
Thanks.
Ben Clay
<mailto:rbclay@ncsu.edu> rbclay(a)ncsu.edu
13 years
[libvirt-users] Network filesystem pool mount options
by Joe Auty
Hello,
What are the default NFS mount options used by libvirt's network
filesystem pool storage management, and can these be modified?
--
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org <http://www.netmusician.org>
joe(a)netmusician.org <mailto:joe@netmusician.org>
13 years
[libvirt-users] Hard limit for the cpu usage of a VM
by sethuraman subbiah
Hi ,
I was previously using xen and currently moved to KVM. I am using libvirt to manage these VMs. In den's credit scheduler , I had the ability to set a cap on the cpu usage for a VM. But I was not able to find a similar substitute in KVM. I find that we can use cgroups to provide shares for VM but that will be more like weight based and it doesn't set a hard cap for that VM. I tried using cpulimit but I find it inaccurate and we can give values only between 0-100. Thus, I think it cannot support multi core environments. Can any one suggest a method to set a hard limit on a VM's cpu usage? Thank you.
-
Regards,
Sethuraman Subbiah
Graduate Student - NC state University
M.S in Computer Science
13 years