similar to: Issue with getCPUStats and getMemoryStats

Displaying 20 results from an estimated 100 matches similar to: "Issue with getCPUStats and getMemoryStats"

2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
Hello, I'm trying to use libvirt as a non-root user to obtain statistics on the CPU usage by VMs using the Python API. I'm performing basically the following steps: import libvirt conn = libvirt.openReadOnly(None) dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4') dom.getCPUStats(True, 0) However, they result in the following error: libvir: QEMU Driver
2013 Apr 01
0
nparams in virNodeGetCPUStats and CPU utilization
Hi, I am trying to get the CPU utilization of a node and I am using virNodeGetCPUStats(...) Here is my code snippet. The error checking is omitted for brevity. /* get the number of params */ retval = virNodeGetCPUStats (conn, VIR_NODE_CPU_STATS_ALL_CPUS,\ NULL, &nparams, 0); printf ("nparams: %d\n", nparams); /* allocate space for the params */ params =
2013 Feb 13
1
Host information from libvirt KVM/Xen
Hi, I'm able to get the CPU utilization metrics from libvirt for the guests (VM's) remotely . Is it possible to get the Host Cpu stat's through libvirt ? I didn't find any information regarding the host cpu cycles and memory utilization to collect them remotely. Libvirt is installed on all the hosts. Regards, Navin -------------- next part -------------- An HTML attachment
2014 Dec 10
1
How to use blockcopy in libvirt-java
Hi, ALL, I just look for the class and method to use blockcopy in libvirt-java on this page: http://libvirt.org/sources/java/javadoc/ However, I can not find out. Libvirt-java Support blockcopy ? Thanks. Best Regards, Star Guo
2018 Mar 08
1
Statistics domain memory block when domain shutdown
Hi My libvirt version is 3.4.0,host system is centos 7.4 ,kernel is 3.10.0-693.el7.x86_64 , when I shutdown domain in virtual system, My program call virDomainMemoryStats, My program blocked in this api. the call stack is #0 0x00007ff242d78a3d in poll () from /lib64/libc.so.6 #1 0x00007ff243755ce8 in virNetClientIOEventLoop () from /lib64/libvirt.so.0 #2 0x00007ff24375654b in
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
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:
2014 May 14
0
Is there a way to get host uptime in remote libvirt
We manage hypervisors (VMWare ESXi/vCenter, KVM, XEN, Hyper-V) by remote Libvirt API, in our case we need to get the host uptime via the same libvirt interface. Is there a way get this info now for all the aforementioned hypervisor types? The APIs virConnectGetSysinfo(), virNodeGetInfo() provide host info but it doesn't include the system uptime. The virNodeGetCPUStats() can returns CPU
2012 Mar 06
1
[help] how can I use libvirt to get cpu usage ratio ?
hi experts: I am a freshman of libvirt, I have got a domU's info like: libvirt.open, lookupByID, info. But now I want to use libvirt to get a xen domU 's cpu usage ratio , how can I fulfill it ? I cannot find the API. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Jan 12
1
Libvirt API for C/C++ : Monitoring Support
Greetings, I am a developer, trying to develop a system for monitoring Servers and Virtual Machines using Libvirt API for C/C++. I am facing an issue that there are no functions for monitoring some parameters which I have listed below. I would like to know if there is any there way I can retrieve these parameters since they are critical to my Monitoring Application. Also I am using CentOS 5.6 as
2013 Jul 19
2
How to insert vcpupin in guest xml file
Hi all, I am trying to add vcpupin in the guest xml file. I am working with openstack and the code I have is python bound. I investigated through the code and found that the elemets in xml file are set in get_guest_config function. Now the thing is I am not able to set vcpupin element. I mean I tried guest.cputune_vcpupin but it's not working. Help me out, please! Thanks.   ~Peeyush Gupta
2014 May 06
2
libvirt 1.2.4 and virt-manager 0.9.0 are not incompatible
Hello everyone I encountered a problem when I completed the update of libvirt from 0.10 to 1.2.4 . The problem was that virt-manager(version 0.9.0) could not start and reported error : "ImportError: /usr/lib64/libvirt.so.0: version 'LIBVIRT_PRIVIATE_0.10.2' not found (required by /usr/lib64/python2.6/site-packages/libvirtmod.so)". I found the libvirt.so.0 link
2014 Mar 12
2
libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
Hi, Could anyone help I'm getting the following error when I tried to add a new network interface. DETAILS Connection --------------------------- import libvirt conn = libvirt.open('qemu:///system') Interface XML ---------------------- <interface type="bridge" name="br0"> <start mode="onboot"/> <mtu size="1500"/>
2013 Sep 09
0
Re: How to insert vcpupin in guest xml file
On 07/19/2013 04:51 PM, Peeyush Gupta wrote: > Hi all, > > I am trying to add vcpupin in the guest xml file. I am working with > openstack and the code I have is python bound. I investigated through > the code and found that the elemets in xml file are set in > get_guest_config function. Now the thing is I am not able to set > vcpupin element. I mean I tried
2013 Sep 27
0
libvirt+python on windows support
Hi Guys! Recently , I am searching way to run libvirt-python on windows , and using the python api just like in linux . But I found that ,libvirt-python can only run in cygwin environment . In windows environment , when I input "import libvirt" It indicates *ImportError: DLL load failed:* * * * it seemed something wrong when importing libvirtmod* * * * *the
2013 Sep 29
1
virt-manager could not start with error "version `LIBVIRT_PRIVATE_0.10.2' not found "
Hello all, i am now running xen 4.2.3 on centos 6.4. As we know, the default libvirt package could not work well with xen on centos6.x. So, i compile the libvirt by my self, and i have compiled libvirt-1.1.1, libvirt-1.1.2, libvirt-1.1.3. After the installation of libvirt, i run virt-manager, but it print error as below. *ImportError: /usr/local/lib/libvirt.so.0: version
2014 Jun 13
1
Re: Status of Host machine.
Hi Michal, virConnectOpen is for connecting to a host right..? I want to check the host status, whether the connection to the host is active or not.. for that purpose we have to use virConnectIsAlive() I'm using libvirt python bindings, here is the function defnintion. def isAlive(self): """Determine if the connection to the hypervisor is still alive A
2012 Jan 12
1
No module named cygvirtmod
I'm trying to set up a xen guest on a machine that already has a few others running (not set up by me). It fails with the following error: + virt-install -r 512 -n host5 -f /dev/vol0/lvol5 --nographics -p --os-type=linux --os-variant=rhel5 --accelerate -l http://bla -x ks=http://bla/ks.cfg -m MA:CA:DD:RE:SS Traceback (most recent call last): File "/usr/bin/virt-install", line 31,
2014 Aug 15
1
virt-manager and libvirt-python
Hello! I'm trying to work with virt-manager but getting SIGTRAP signal. It is done with gdb under MinGW32 on Windows 7 64-bit. I have Python 2.7.8. 32-bit. As I can see from backtrace ( http://pastebin.com/JhN6XgYb ), there is something wrong with libvirtmod.pyd. Also I couldn't find how to solve " typelib for AppIndicator3" error. So I try to debug libvirt-python. For doing
2015 Nov 11
2
Re: xen+ssh with openauth
On 03.11.15 15:37, Daniel P. Berrange wrote: > On Tue, Nov 03, 2015 at 10:14:00AM +0200, Shahar Havivi wrote: > > Hi, > > > > I am trying to connect to remote libvirt via script, > > and I get password prompt from the shell. > > > > > > ============================================================================ > >