digitalocean / vmtop

Real-time monitoring of KVM/Qemu VMs
Apache License 2.0
53 stars 19 forks source link

fix cgroup2 mnt point issue on focal #17

Closed vermavis closed 3 years ago

vermavis commented 3 years ago

vmtop was failing to run in cgroup2 focal based env returning following error:

AttributeError: 'Machine' object has no attribute 'cpuset_mount_point'

Between bionic vs focal, cgroup2 when configured in unified mode, mount point name is changed from cgroup to cgroup2 causing focal based env with cgroup2 to not run.

This fixes it.