libvirt.libvirtError: operation failed: cannot read cputime for domain
Hello!
I have issue on MacBook 14 M1 Pro, OS Monterey 12.3.1. When I execute dominfo.py I get the following error:
python3 dominfo.py guest1_rocky8.5
libvirt: QEMU Driver error : operation failed: cannot read cputime for domain
Traceback (most recent call last):
File "/Users/alexey/workspace/dominfo.py", line 52, in <module>
info = dom.info()
File "/opt/homebrew/lib/python3.9/site-packages/libvirt.py", line 1659, in info
raise libvirtError('virDomainGetInfo() failed')
libvirt.libvirtError: operation failed: cannot read cputime for domain
virsh list
Id Name State
---------------------------------
21 guest1_rocky8.5 running
I installed libvirt and qemu via brew and libvirt-python via pip.
libvirtd --version
libvirtd (libvirt) 8.2.0
qemu-system-x86_64 --version
QEMU emulator version 6.2.0
pip show libvirt-python |grep Ver
Version: 8.2.0
I originally ran into this issue using virt-manager. You can read more details here.
Edited by Alexey Kashavkin