<div>Hi,</div>
<div> </div>
<div>We have upgraded the libvirt version from libvirt-1.0.5 to libvirt-1.0.6-1 on our linux machine. After this upgrade "virsh cpu-stats <domain>" command is not working on our HardWare. </div>
<div> </div>
<div><font color="#ff0000" face="courier new,monospace"><strong>virsh # cpu-stats test<br>error: Failed to retrieve CPU statistics for domain 'test'<br>error: internal error error accessing cgroup cpuacct for vcpu</strong></font></div>

<div><font color="#ff0000" face="courier new,monospace"><strong></strong></font> </div>
<div><font face="courier new,monospace"><strong># cat /proc/cgroups<br>#subsys_name    hierarchy       num_cgroups     enabled<br>cpuset  3       4       1<br>ns      0       1       1<br>cpu     1       6       1<br>cpuacct 7       3       1<br>
memory  2       3       1<br>freezer 0       1       1<br>net_cls 0       1       1<br>blkio   0       1       1<br></strong></font></div>
<div><font face="courier new,monospace"><strong># chkconfig --list | grep cg<br>cgroups_mount   0:off   1:on    2:on    3:on    4:on    5:on    6:off</strong></font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font color="#000000">We have also found that there is no "cgroup" directory created by kenel under "/sys/fs/".  We suspect that the 'cgroup' controllers are not mounted properly and hence the issue is observed. While using the libvirt-1.0.5 version below mentioned mount commands were sufficient to mount cgroup controllers</font></div>

<div> </div>
<div><font face="courier new,monospace"><strong>mkdir -p /dev/cgroup_cpuacct<br>mount -t cgroup -o cpuacct cpuacct /dev/cgroup_cpuacct</strong></font></div>
<div> </div>
<div>As cgroups hieracrhy inside libvirtd has changed in libvirt-1.0.6-1, we feel that the above commands are now not sufficient. We feel we have to do some more steps get the 'cgroups' mounted properly on our hardware. </div>

<div> </div>
<div>Since we are new to libvirt and can you please help us by providing some pointers to fix the above issue and get cpu-stats working on our HardWare. Since we have to fix this on top priority, can you please reply as soon as possible. Please let us know if you need any further information from our side. </div>

<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>BR</div>
<div>Abhinay <br></div>