similar to: getting CPU usage through virsh command or libvirt API

Displaying 20 results from an estimated 10000 matches similar to: "getting CPU usage through virsh command or libvirt API"

2014 Jul 03
1
getting CPU usage of VMs through libvirt
Greetings everyone,        I just want to ask if it is possible to get the CPU usage of the VMs in KVM through libvirt? I mean, how does the virt-manager produce the graph it displays? Is there a way get this graph? But instead of the graph itself, I just need to get it in percentage(%) form. I'd like to know how. Thank you and your help will be greatly appreciated. regards, Marco
2014 Aug 13
2
how virt-manager gets CPU usage of Guest
Hi, Does anybody know how virt-manager is getting the CPU usage of the guests? I need to know how to get the CPU usage of the guests and this is the only way I can think of. In other words, how does virt-manager produce the graph of the CPU usage of EACH guest in KVM? I don't actually need the graph, I just need to get the percentage(%) since I'm trying to create a Java program to get
2014 Aug 07
1
Understanding Libvirt Java API in order to get CPU usage of a VM
I'm having a problemin understanding the Libvirt Java API. Here is my sourcein reading some of the classes: http://libvirt.org/sources/java/javadoc/ I have no idea where to start in order for me to get the CPU usage. Can anybody help? Or at least give me some points on where to start in order for me to get the CPU usage of a VM in KVM? Any suggestions will really help. Thanks regards,
2014 Aug 12
1
Libvirt Java API to get CPU usage of VM (KVM)
Hi all libvirt-users, Is there a counterpart on Java of the function virDomainGetCPUStats that is based on C API? Because I am trying to create a program based on java to get the CPU usage of a Guest/Domain/VM in KVM using the Libvirt Java API. Honestly, I am having a hard time in starting my program. I have no idea where to start. I mean, what functions do I need to get the CPU usage of
2014 Jun 30
1
getting CPU usage of KVM
Greetings sir,                   I am currently taking up Computer Science in my school. I just want to ask how do you get the CPU usage and Memory usage of the VMs (I'm referring sir to the graphs that the Virtual Machine Manager is displaying)? I need to get the numbers (the numbers are enough, I don't need the graph) of these informations because I will be needing it for my
2014 Jul 05
1
Source code of virt-manager
Hi,     Does anyone know where I could view the source code of virt-manager? Because I'm trying to learn how the virt-manager gets the CPU usage of a VM(the graph it displays). I'm trying to make a program using java that gets the CPU usage of a VM in KVM. Anybody have suggestions on where I could start?Thanks regards, Marco
2012 Jul 19
1
Setting CPU type for a vm
I have a Windows XP vm and would like to know how should I set its cpu so it is seen by the vm as a proper 32bit one. In its xml file, I have <os> <type arch='i686' machine='rhel6.2.0'>hvm</type> <boot dev='cdrom'/> <boot dev='hd'/> <bootmenu enable='yes'/> </os> And this is the machine I
2010 Nov 03
2
ESX(i) implemented functions
Dear All, I would like to know what functions and classes are implemented in the ESX(i) driver ? i am trying to use virsh to retrieve some simple information such as vcpuinfo domain, but it is not working, so I would like to know what functions are implemented in libvirt ESX(i) driver. Also i checked the http://libvirt.org/drvesx.html and nothing is mentioned there. Thank You, Regards, Sherif
2013 May 28
2
About the change of a VM's vcpu count in runtime?
Hi, We know that there is a command "setvcpus" in virsh used to "change number of virtual CPUs", now we just have the need to change vcpu count dynamically for a running VM, so I tried this command (the vcpu count is 2 in the VM xml file), below is the result: virsh # setvcpus 3 --count 4 error: invalid argument: requested vcpus is greater than max allowable vcpus for the
2013 Aug 21
2
virsh "cpu-stats" not working !!!
> > Hi All, > > Can you please guide us in solving this issue. > > Version used : libvirt-1.0.6 > # rpm -qa | egrep "libvirt|qemu" > qemu-kvm-0.14.1-1_WR4.3.x86_64_XXX.x86_64 > libvirt-1.0.6-1_WR4.3.x86_64_XXX.2.x86_64 > > Problem : > > # virsh cpu-stats CLA-0 > error: Failed to retrieve CPU statistics for domain 'CLA-0' > *error:
2011 Mar 16
1
using more than 1 core by a virtual machine
My virtual machine xml file has <vcpu>2</vcpu> clause while the host has 2 physical cpus (cores). Is this enough to cause a VM running 2 endless loop threads to use the 2 cores ? In my case the VM running reports (cat /roc/cpuinfo) that it has 2 vcpus but it uses only 1 core (at a time) because the 'top' at the host shows 100%cpu (out of total 200%) used by the
2014 Aug 13
0
Re: how virt-manager gets CPU usage of Guest
On 13.08.2014 16:00, Restituto Marcus Arevalo wrote: > Hi, > > Does anybody know how virt-manager is getting the CPU usage of the > guests? I need to know how to get the CPU usage of the guests and this > is the only way I can think of. In other words, how does virt-manager > produce the graph of the CPU usage of EACH guest in KVM? I don't > actually need the graph, I just
2012 Apr 04
1
vcpupin and kvm
Hi. Can anyone confirm if vcpupin works correctly with kvm? If set I pin a vcpu it shows up correctly via vcpuinfo, but querying via taskset shows the cpu is not pinned. Thanks, -Geoff -- ---- Geoff Galitz, ggalitz at shutterstock.com WebOps Engineer, Europe Shutterstock Images http://wwww.shutterstock.com/
2016 Dec 06
1
How can openstack retrieve the CPU usage of a lxc via libvirt?
Dear all, I want to have a view of lxc CPU usage in openstack Dashboard. According the Openstack official site , Openstack Ceilometer can poll libvirt daemon to obtain CPU usage of a virtual machine. I tried the command locally on the libvirtd host "virsh -c lxc:/// domjobinfo", I got an error "error: this function is not supported by the connection driver:
2013 Jun 01
1
Re: About the change of a VM's vcpu count in runtime?
On 06/01/2013 03:16 PM, Dennis Chen wrote: > On 05/29/2013 04:28 AM, Eric Blake wrote: >> On 05/28/2013 02:24 PM, Eric Blake wrote: >> >>>> So the question is: is there any method I can't find yet to change the >>>> vcpu count of a running vm dynamically? >>> Wait for newer qemu and libvirt, or else pitch in and help write >>> patches.
2013 Dec 23
3
Reg: Methods in DomainJobInfo
Hi All, I am new to libvirt. Please explain about the units (which is bytes or KB or MB) and uses of DomainJobInfo and DomainBlockInfo methods. Like getMemRemaining(), getDataRemaining() etc. Using libvirt version is libvirt-0.5.1. Thank you Regards, Rathidevi
2016 Mar 18
3
Incorrect memory usage returned from virsh
When I run `virsh dominfo <domain>` I get the following: Id: 455 Name: instance-000047e0 UUID: 50722aa0-d5c6-4a68-b4ef-9b27beba48aa OS Type: hvm State: running CPU(s): 4 CPU time: 123160.4s Max memory: 33554432 KiB Used memory: 33554432 KiB Persistent: yes Autostart: disable Managed save: no Security model:
2019 Jul 29
2
virsh command to list CPU,Memory and Storage
Hi, Is there a way to find out total CPU's, Memory and Storage using virsh command? For example virsh list --all list out all VM's 11 dockerregistry01 running 12 gitlab running Any help will be highly appreciated. Thanks in Advance. Best Regards, Kaushal
2015 Apr 02
3
[Libvirt] [virsh] Transport Error during enumeration while connecting libvirt to Hyper-V Server
Hi all, I am using libvirt 1.1.1. I can successfully able to connect with Qemu driver but when I am trying to connect to the windows Hyper-V using virsh, I am getting failure. [root@localhost hyperv]# virsh version Compiled against library: libvirt 1.1.1 Using library: libvirt 1.1.1 Using API: QEMU 1.1.1 Running hypervisor: QEMU 1.5.3 When I am doing virsh to connect to hype-V I am getting
2015 Dec 04
2
virsh attach device equivalent in libvirt API
Hi, Is there an equivalent of "virsh attach-device -live -persistent " within libvirt API : virDomainAttachDevice() or virDomainAttachDeviceFlags() or ??? Thanks for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P