On 4/17/26 19:57, [email protected] wrote:
> virt-host-validate seems to sometimes complain about freezer support on 
> machines with cgroups v2 where it doesn't matter, it also reports lack of 
> devices cgroup if the user isn't running as root.

Yeah, I saw your reddit post just yesterday.

> 
> Ideally, it should report N/A on freezer support for cgroups v2 or just PASS 
> because it has validated that it wasn't necessary. Or maybe just have a 
> warning at the bottom, failure for the freezer cgroup only applies to cgroups 
> v1

In fact, it should report PASS because the freezer controller is always
available for cgroupsv2 (it's the cgroup.freeze file). In fact, when
writing support for cgroupsv2 this was left out and thus things like
'virsh suspend $DOM' don't work for LXC driver.

> 
> For devices cgroup, a warning if the user is running not as root and the test 
> fails, you may need elevated privileges to check cgroup 'devices' or 
> something along those lines.

Agreed.

> 
> Or failing to put it in the output, it would be nice if these facts were more 
> prominent in a troubleshooting page
> 

I've opened the following so it can be tracked:

https://gitlab.com/libvirt/libvirt/-/work_items/870

Michal

Reply via email to