[libvirt-users] Cgroup

Nikita A Menkovich menkovich at gmail.com
Sun Jan 23 14:38:33 UTC 2011


I'm running Debian Sid with libvirt/qemu/kvm packages from experimental:
$ qemu --version
QEMU emulator version 0.13.0 (Debian 0.13.0+dfsg-2), Copyright (c)
2003-2008 Fabrice Bellard
$ kvm --version
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0 Debian 0.13.0+dfsg-2),
Copyright (c) 2003-2008 Fabrice Bellard
$ libvirtd --version
libvirtd (libvirt) 0.8.6

cgroup_controllers = [ "cpu", "devices" ]
cgroup_device_acl = [
    "/dev/null", "/dev/full", "/dev/zero",
    "/dev/random", "/dev/urandom",
    "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
    "/dev/rtc", "/dev/hpet", "/dev/net/tun",
mount {
	cpu = /dev/cgroup/cpu;
	cpuacct = /dev/cgroup/cpuacct;
	devices = /dev/cgroup/devices;
#	memory  = /dev/cgroup/memory;
	blkio   = /dev/cgroup/blkio;
When I'm running virsh, and want to change cpu shares I receive an error
virsh # schedinfo --set cpu.shares=2048 test
Scheduler      : posix
error: internal error cannot find cgroup for domain test
Really I didn't have any group test in
$ ls /dev/cgroup/cpu/sysdefault/libvirt/qemu/
cgroup.clone_children  cgroup.event_control  cgroup.procs  cpu.shares
notify_on_release  tasks

It happens if I run libvirt as usual user, how can I grant access to
create cgroup to ordinary user?

Nikita A Menkovich
JID: menkovich at gmail.com

More information about the libvirt-users mailing list