On Mon, Feb 27, 2017 at 01:44:44PM +0000, youssef.elfathi(a)orange.com wrote:
Hi,
With a non-root user account, I am launching virtual machines and would like to get CPU
stats for each Core (using python API or not) but face the following problem:
- When I issue the command "virsh --readonly cpu-stats MY_DOMAIN" I got the
following error:
error: Failed to retrieve CPU statistics for domain 'MY_DOMAIN'
error: Requested operation is not valid: cgroup CPUACCT controller is not mounted
Since you are running the domain in session mode (non-root), libvirtd
doesn't have the privileges for creating a mount point for the domain
and hence the controller is available to use. So I guess it's just a
matter of the error message being ambiguous.