libvirt by default has cgroup controllers of ["cpu", "devices", "memory", "blkio", "cpuacct"] as shown in qemu.conf. I want to add one more controller of net_cls. I tried to modify the config file to make the update.

cgroup_controllers = ["cpu", "devices", "memory", "blkio", "cpuacct", "net_cls"]

I restarted cgroup and libvirt service but the new controller didn't show up. How to add net_cls to libvirt group in cgroup?


Doesn't look like libvirt supports the net_cls controller:

"The net_cls is not currently used. Instead traffic filter policies are set directly against individual virtual network interfaces"

Directly copied from http://libvirt.org/cgroups.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.