Displaying 20 results from an estimated 7000 matches similar to: "Is this Race Condition?"
2012 May 28
1
What features of kernel are required to support virDomainGetCPUStats?
Hi,
Weeks ago, I developed my app under ubuntu-11.10 (kernel 3.0) with
lilbvirt-0.9.10. In my code , I used virDomainGetCPUStats to query cpu
usage info of domains, and it worked well.
However, today, I port my code to ubuntu-10.04.4 (kernel 2.6.32) with
libvirt-0.9.10, I find the function virDomainGetCPUStats can't work
and complains "this function is not supported by the connection
2012 Apr 16
2
What does cpu_time returned by virDomainGetCPUStats mean?
hi, everyone.
I find an 'interesting' thing involving virDomainGetCPUStats(). I
call it for cpu usage consumed by a domain and get a array of
virTypedParameter. My system is 2-core and hyperviser return 1
parameter per cpu. So the contents of the array is like this.
virTypedParameter[0]
{
.fiedl = "cpu_time"
.type = 4
.value.ul = 51640610899
2012 Apr 16
1
What's the precision of the domain cpu stats?
Hi, everyone
I'm using libvirt and resort to virDomainGetCPUStats for cpu
usage by one domain. In my system, Ubuntu-11.10 64bit with 2 cores and
Qemu Hyperviser, this function returns something like this:
virTypedParameter[0]
{
field: "cpu_time"
type: 4
value.ul 51640610899
}
virTypedParameter[1]
{
2017 Mar 17
2
Re: VIR_ERR_OPERATION_INVALID from virDomainDestroyFlags call
"Daniel P. Berrange" <berrange@redhat.com> writes:
> On Fri, Mar 17, 2017 at 11:55:13AM +0100, Milan Zamazal wrote:
>> Hi, we experienced a strange, non-reproducible error after a successful
>> migration to another host. When we called virDomainDestroyFlags with
>> VIR_DOMAIN_DESTROY_GRACEFUL flag after the migration on the source host,
>> we got
2012 Apr 06
2
[API reference] Are there XML-handling API to retrieve info directly from xml configure file
Hi, everyone
I'm writing a application using libvirt and need to query guest
os's virtual network interface usage, like bytes read or written
through a given interface. I know int
virDomainInterfaceStats(virDomainPtr dom, const char * path,
virDomainInterfaceStatsPtr stats, size_t size) is designed for my
purpose but I 'm not sure how I determine the second parameter path.
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?
2012 May 25
1
How to specify the libvirtd in connect call
Hi,
Here is my situation, I install libvirt in a non-default directory
and start libvird with sudo. While I can connect virsh to libvirtd
using "virsh --connect qemu:///system", I fail to connect my app using
"virConnectOpen("qemu:///system")", which complains "unable to locate
libvirtd daemon in $PATH". Then, I take another try and add the path
of
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
2012 Apr 03
1
[Building Error] cannot stat `t-af.gmo': No such file or directory
Hi, everyone
I'm building the newest libvirt from git repository, of version
782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7
and failed complaining as the following.
make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po'
cd ../../libvirt/po && : --update af.po libvirt.pot
cd ../../libvirt/po && rm -f af.gmo && : -c --statistics -o af.gmo af.po
mv:
2012 Mar 28
1
[API reference] confused by CPU time term
Hi, everyone
I'm writing a virtual machine monitor based on libvirt. As I read
the api reference, I found I'm confused by some terms.
1, What is cumulative I/O wait CPU time?
API reference says that VIR_NODE_CPU_STATS_IOWAIT indicate
cumulative I/O wait CPU time. I'm confused by this time. As far as I
know, when cpu meets IO wait situation, it will schedule another task,
so,
2012 Jun 19
1
caps->nguests == 0?
hi,
I compiled the libvirt-0.9.10 and started the libvirtd with sudo.
Unfortunately, I got an Error, saying 'virDomainDefParseXML unknown OS
type hvm'. I debugged it and found in function
virCapabilitiesSupportsGuestOSType, the parameter caps->nguests is 0.
On the other hand, I tried start the libvirtd with common user, and
creating domain with virsh, i found the caps->ngusts
2012 May 28
0
[libivrt-users] What features of kernel are required to support virDomainGetCPUStats?
Hi,
Weeks ago, I developed my app under ubuntu-11.10 (kernel 3.0) with
lilbvirt-0.9.10. In my code , I used virDomainGetCPUStats to query cpu
usage info of domains, and it worked well.
However, today, I port my code to ubuntu-10.04.4 (kernel 2.6.32) with
libvirt-0.9.10, I find the function virDomainGetCPUStats can't work
and complains "this function is not supported by the connection
2011 Apr 21
7
[PATCHv11 0/6] libvirt/qemu - persistent modification of devices
Here is v11. Fixed comments/bugs and updated against the latest libvirt.git.
Changes v10->v11:
- fixed comments on each patches
- fixed cgroup handling in patch 3.
- fixed MODIFY_CURRENT handling in patch 4.
most of diff comes from refactoring qemu/qemu_driver.c
--
conf/domain_conf.c | 40 ++
conf/domain_conf.h | 5
libvirt_private.syms | 3
qemu/qemu_driver.c | 727
2010 May 21
2
Better error codes when stopping a VM that is already stopped
Hi,
Sometimes when stopping a virtual domain using virDomainDestroy(), I come
across a domain that is already stopped. (For example when someone already
stopped the domain manually using virsh or because the guest OS issued a
shutdown.) This is a special case that I absolutely need to catch and handle.
Unfortunately, when this happens, and I call virGetLastError() afterwards, I
always just
2017 Mar 17
2
VIR_ERR_OPERATION_INVALID from virDomainDestroyFlags call
Hi, we experienced a strange, non-reproducible error after a successful
migration to another host. When we called virDomainDestroyFlags with
VIR_DOMAIN_DESTROY_GRACEFUL flag after the migration on the source host,
we got VIR_ERR_OPERATION_INVALID (code 55) error. The same with
repeated virDomainDestroyFlags calls. Normally, we would expect either
success or VIR_ERR_NO_DOMAIN error. `virsh
2013 Oct 15
0
virDomainGetCPUStats missing in Java API bindings ?
Hi All
I am trying to get the performance statistics for KVM using Java bindings.
I found some api's for getting memory stats but not able to find any for
cpu stats.
I found virDomainGetCPUStats which look like its going to return cpu stats
for a VM at http://libvirt.org/html/libvirt-libvirt.html and
http://libvirt.org/hvsupport.html .
I couldnt find these methods getting called from java
2012 Mar 02
3
xm domstate command not found
hi alll..
i want to find the xen domain''s state using xm domstate command,
domstate command works fine inside virish but when i try with xm like
[xm domestate VM_NAME] its giving an error saying subcomand
domestate not found.
i just want to shutoff the xen virtual domains using a scrip to take
backup. so i just want to make sure that the domain are shutdown
successfully after
2007 Jul 19
3
Error: evaluation nested too deeply when doing heatmap with binary distfunction
Hi netters,
I have a matrix X of the size (1000,100). The values are from -3 to +3.
When I tried
heatmap(X,
distfun=function(c),dist(c,method="bin"),hclustfun=function(m),hclust(m,method="average"))
I got the error message:
Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?
However, if I used default parameters for distfunction:
2018 Mar 20
2
Persisting the libvirt guest's reason code.
Hi,
I am currently facing an issue with libvirt w.r.t a guest's state and
reason code. Precisely following are steps:
1. I have a running guest named *linux-test *on KVM
2. I do a
* $> virsh save linux-test linux-saved.dat*
3. At this point
* $> virsh domstate --reason linux-test *shows *shutoff(saved)*
4. I restarted the libvirtd daemon
* $>systemctl
2006 May 04
2
install R under suse: packages dependency
Hi all
I'm trying to install R 2.3.0 under Suse 10.0. As I'm using SSH to login
into the SUSE server, I can't use YAST2, so I have to use rpm -i in the
shell. The system tells me that I need some other packages such as
xorg-x11-fonts-100dpi, blas, libgfortran.so.0(). Is there some website
where I can download and install these packages? Thanks a lot!
Zhihua Li