Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Append systemd.unified_cgroup_hierarchy=1 to the kernel and boot
2. start a VM with the default settings in /etc/libvirt/qemu.conf
Error starting domain: Invalid value '+cpu' for 'cgroup.subtree_control': Invalid argument
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1420, in startup
File "/usr/lib64/python3.7/site-packages/libvirt.py", line 1089, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Invalid value '+cpu' for 'cgroup.subtree_control': Invalid argument
VM should work and libvirt should leverage the v2 controllers.
I know this is early days for supporting this in libvirt, but I wasn't able to find any docs in the repo for how to handle this. I've tried disabling all the controllers in the config file above, and that works as a work around, but I really need cpu & mem working at minimum. What am I doing wrong? thanks!
The support was added very recently. libvirt-5.5.0 should support cgroups v2. You should be able to install it from the virt-preview repo: https://fedoraproject.org/wiki/Virtualization_Preview_Repository
Ah fantastic. Thanks! Is 5.5 likely to land in F31? That would help us here: https://fedoraproject.org/wiki/Changes/CGroupsV2
I'll close this.
It is already in F31. We're not intending to change it in F30.