[libvirt-users] Redhat 7: cgroup CPUACCT controller is not mounted

Martin Kletzander mkletzan at redhat.com
Tue Feb 28 15:17:42 UTC 2017


On Mon, Feb 27, 2017 at 01:44:44PM +0000, youssef.elfathi at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20170228/b5e0115c/attachment.sig>


More information about the libvirt-users mailing list