similar to: getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted

Displaying 20 results from an estimated 100 matches similar to: "getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted"

2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
Hi, I am facing issue with the calls getCPUStats and getMemoryStats. Please find the error below. AttributeError: 'module' object has no attribute 'VIR_NODE_CPU_STATS_ALL_CPUS' >>> print con.getCPUStats(2, None, 0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File
2014 May 23
0
How i can calculate cpu utilization percentage for host using python libvirt API.
  Hi, How i can calculate cpu utilization percentage for host using python libvirt API. Which function can i use for calulating cpu percentage of host and Virtual Machines? 1)Host cpu utilization  ====================  I tried getCPUStats() function,it gives the following output.Is there any way to calculate cpu percentage from the following output?  Is there any other function availabe for
2016 Sep 07
2
how to limit cpu usage for specified processes
Hi, Is there some tool or method in centos that can limit cpu usage to some percentage for specified processes that consume large cpu resource? I found cpulimit which is only able to limit one process. what I want is one tool that can limit several same processes' cpu usage. Thanks! Regards andrew
2013 Apr 19
1
problem when get the vm cpu stat
Hi all, I try to get vm cpu stat by function "virDomainGetCPUStats", when the vm Cpu usage is 100%, I can see from the vm shell by "top", when the info Get by the "virDomainGetCPUStats" show only the "cpu_time" increased, "user_time" and "system_time" was not changed at all. Is that correct ? How can I get the vm cpu usage?
2013 May 04
0
Requested operation is not valid: domain is not running but exactly vm is running
hi,all requested operation is not valid: domain is not running but exactly vm is running when call getCPUStats,interfaceStats... system: centos6.3 libvirt-0.9.10-21.el6_3.7.x86_64 libvirt-python-0.9.10-21.el6_3.7.x86_64 thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Apr 23
0
request logging: around_filters can't see error responses!
Hello, I want to emit a structured log entry (in YAML) for every request that hits my Rails app. For example, an entry in this log would look something like: --- SYSTEM_TIME: 0.0166666666666667 USER_TIME: 0.0999999999999996 DB_TIME: 0.00247621536254883 REAL_TIME: 0.091976 STATUS_CODE: 500 SESSION_ID: 64ad46a8841c66bbf64e93335cedc50d REQUEST_ID: 32d6a42f-da58-43e2-ab27-09d3e2a775cb
2013 May 29
0
Help needed regarding "virsh cpu-stats test_vm"
Hi, We are implementing feature called CPU separation in the platform. So, guest VMs will have dedicated cores allocated using cgroups (cgroups hierachy related VMs managed by libvirt). virsh cpu-stats command is not working in our platform : virsh # cpu-stats test_vm error: Failed to virDomainGetCPUStats() error: Requested operation is not valid: cgroup CPUACCT controller is not mounted It
2014 Mar 15
0
Re: Problem in getting memory statistics
I have another problem. As in java bindings there is no way to obtain cpu stats I decided to use a python script. It gives me, for the guest domain, cpu time, system time and user time. Now, what does it mean cpu time? I though that it could be the overall cpu time given to this vm...but the sum doesn't add up: user_time+system_time != cpu_time. As I would need to get a %cpu usage, like
2009 Jun 19
0
Re: [libvirt] domain.info() sometimes returns state zero for running machines
Sorry but I misunderstood your last post completely :-D but now I tried what you said, using the CVS version. I also dumped the "ret" value from virXen_getdomaininfo. The output was simple: ret=1, domain_flags=0 (right after XEN_GETDOMAININFO_FLAGS!!!). Sadly I don''t have much time to dig deeper but it seems to me that this happens very seldom or sometimes not at all (hard
2015 Jun 05
6
Effectiveness of CentOS vm.swappiness
Am 05.06.2015 um 00:23 schrieb Dennis Jacobfeuerborn: > If I'd have to venture a guess then I'd say there are memory pages that > are never touched by any processes and as a result the algorithm has > decided that it's more effective to swap out these pages to disk and use > the freed ram for the page-cache. That's my guess too. [...] > impact. If however these
2014 Feb 09
3
libvirt/qemu and cgroups
Dear list, I am building a Arch server on my Arch box. My tools are QEMU/KVM and libvirt to manage the guest, systemd as system manager. I am looking at implementing the Linux Control Groups facilities for resource management. Even after long hours of reading, I am not quite sure about how to deal with the cgroups facilities. First, do I really need to care about all that, or libvirt and
2015 Jul 08
2
cpuacct and emulator/cpuacct
Hello, Does it exist some documentation concerning following topic ? What's difference between following perf counters : /cgroup/cpuacct/libvirt/qemu/test/cpuacct.usage and /cgroup/cpuacct/libvirt/qemu/test/emulator/cpuacct.usage Thx . Regards, J.P. Ribeauville P: +33.(0).1.47.17.27.78 Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com>
2015 Jul 09
0
Re: cpuacct and emulator/cpuacct
On Wed, Jul 08, 2015 at 09:11:11AM +0000, Jean-Pierre Ribeauville wrote: >Hello, > >Does it exist some documentation concerning following topic ? > >What's difference between following perf counters : > >/cgroup/cpuacct/libvirt/qemu/test/cpuacct.usage >and >/cgroup/cpuacct/libvirt/qemu/test/emulator/cpuacct.usage > I don't know from the top of my head whether
2017 Feb 28
0
Re: Redhat 7: cgroup CPUACCT controller is not mounted
On Mon, Feb 27, 2017 at 01:44:44PM +0000, youssef.elfathi@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
2017 Feb 28
0
Re: Redhat 7: cgroup CPUACCT controller is not mounted
On Tue, Feb 28, 2017 at 03:22:54PM +0000, youssef.elfathi@orange.com wrote: >Thanks Martin to confirm that the issue is due to privilege access. How can I run a domain as non-root and be able to access the cpu information? > You need to use the system libvirt daemon, so you need to connect to qemu:///system instead of qemu:///session. Good write-up about the differences is here:
2015 Sep 24
1
Guest cpuacct counters and others location
Hi, My piece of code ( C langage) uses cgroups to retrieve counters related to cpu and memory usage related to KVM guests hosted by the host where this code runs. I noticed that depending on the O.S. running on the host , these counters are not found at the same location : CentOS 7 : ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0 cgroup.clone_children
2012 Nov 07
1
libvirt with lxc: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted
Hi, I'm running OpenStack to manage LXC instance through libvirt. The same setting runs perfectly well on Ubuntu 12.04, while on CentOS 6u3, libvirt dumped following message when starting lxc instance. virsh -c lxc:/// start instance-00000032 error: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted Really appreciated if
2017 Feb 28
2
Re: Redhat 7: cgroup CPUACCT controller is not mounted
Thanks Martin to confirm that the issue is due to privilege access. How can I run a domain as non-root and be able to access the cpu information? -----Original Message----- From: Martin Kletzander [mailto:mkletzan@redhat.com] Sent: Tuesday, February 28, 2017 16:18 To: EL FATHI Youssef OBS/OINIS Cc: libvirt-users@redhat.com Subject: Re: [libvirt-users] Redhat 7: cgroup CPUACCT controller is not
2017 Feb 27
2
Redhat 7: cgroup CPUACCT controller is not mounted
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
2008 Jun 02
0
libvirtError: virDomainCreate() failed POST operation failed: (xend.err ''Device 0 (vkbd) could not be connected. Hotplug scripts not working.'')
I rebooted my machine and now when trying to run a "vm ... virsh create /etc/xen/vm1.xml" I am getting the following error: libvirtError: virDomainCreate() failed POST operation failed: (xend.err ''Device 0 (vkbd) could not be connected. Hotplug scripts not working.'') I tried restaring xend and even mounting and unmounting the partition that holds the vm and still no