Hello libvirt users,<br><br><br>I'm using the cgroup with QEMU guests. At /etc/libvirt/qemu.conf, I have the following parameter:<br><br>cgroup_controllers = [ "cpu" ]<br><br>This controller is successfully mounted and libvirt is able to create subgroups for each VM, it's really great the cgroups support in libvirt. The problem is that I can only set the parameters of a given cgroup under the cpu controller if I'm logged in as root. I want another user to have that permission as well.<br>
<br>I tried to modify the file /etc/cgconfig.conf to change the permissions. The file is exactly this:<br><br>group libvirt {<br> perm {<br> admin {<br> uid = opennebula;<br> gid = opennebula;<br>
}<br> task {<br> uid = root;<br> gid = root;<br> }<br> }<br> cpu {<br> cpu.shares=512;<br> }<br>
}<br>
<br>This configuration above does not seem to modify any of the administration permissions. Only the root can edit the parameters under libvirt.<br>The cpu entry was added just to check whether this configuration was read by cgroups at all. The 'cpu.shares' does change in group libvirt.<br>
<br>I was careful to start libvirt only after the service cgconfig was restarted.<br><br>Thanks in advance,<br><br>Antonio Carlos Furtado<br>