Re: [libvirt-users] [libvirt] How to use blockcopy in libvirt-java

2014-12-16 Thread Claudio Bley
At Wed, 10 Dec 2014 18:16:57 +0800, Star Guo wrote: > > 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. No, currently libvi

Re: [libvirt-users] Libvirt Java API to get CPU usage of VM (KVM)

2014-08-20 Thread Claudio Bley
At Tue, 12 Aug 2014 10:52:58 -0700, Restituto Marcus Arevalo wrote: > > Hi all libvirt-users, > > Is there a counterpart on Java of the function virDomainGetCPUStats > that is based on C API? No, not currently. I've prepared a patch some time ago which adds support for that function, but it is b

Re: [libvirt-users] LibVirt + QEMU & no-shutdown

2014-07-10 Thread Claudio Bley
At Fri, 11 Jul 2014 05:27:46 +, Michael D wrote: > > I am currently running LibVirt with Qemu on Debian Wheezy: > > Versions: > >- libvirtd (libvirt) 1.2.4 >- qemu-x86_64 version 2.0.0 (Debian 2.0.0+dfsg-4~bpo70+1), Copyright (c) >2003-2008 Fabrice Bellard > > It's all working p

Re: [libvirt-users] memoryStats question

2014-07-09 Thread Claudio Bley
At Tue, 08 Jul 2014 18:21:54 +0300, Gleb Voronich wrote: > > > > In that case, I'd guess that Gleb just forgot to call > > virDomainSetMemoryStatsPeriod, perhaps? > I've just performed the same test with CentOS 7 at the host and CentOS > 7 at the guest. > Everything works. > > # virsh dommemstat

Re: [libvirt-users] memoryStats question

2014-07-08 Thread Claudio Bley
At Fri, 04 Jul 2014 16:18:45 +0200, Ján Tomko wrote: > > [1 ] > On 07/04/2014 03:18 PM, Claudio Bley wrote: > > At Thu, 03 Jul 2014 17:46:14 +0300, > > Gleb Voronich wrote: > >> > >> > >>> virDomainMemoryStats() gets those stats, if qemu is

Re: [libvirt-users] How to get uuid info inside a lxc container created by libvirt_lxc

2014-07-07 Thread Claudio Bley
At Tue, 08 Jul 2014 12:19:40 +0800, Qiang Guan wrote: > > > 于 2014年07月08日 12:06, Eric Blake 写道: > > On 07/07/2014 10:02 PM, Qiang Guan wrote: > >> Hi , > >> > >> Is there anyway to get uuid info inside a lxc container which is created > >> by libvirt_lxc? > >> > >> For kvm, we can use dmidecode o

Re: [libvirt-users] memoryStats question

2014-07-04 Thread Claudio Bley
At Thu, 03 Jul 2014 17:46:14 +0300, Gleb Voronich wrote: > > > > virDomainMemoryStats() gets those stats, if qemu is new enough to > > provide them, and if the guest cooperates to provide them. > Well I use the latest QEMU 2.0.0 > I have the latest CentOS 6.5 installed on the guest and unfortunat

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Claudio Bley
At Thu, 03 Jul 2014 17:32:20 +0300, Gleb Voronich wrote: > > > > Actually, you should get more stats when using the virtio balloon > > driver in your guests. > I use the balloon but I can't get more stats. > I use python binding for libvirt and as far as I can see it calls > virDomainMemoryStats

Re: [libvirt-users] memoryStats question

2014-07-03 Thread Claudio Bley
rivers-windows/blob/9a5cb6749d68bad8c346d31b811c854ab078652e/Balloon/sys/public.h IFAIR, these should be queried by the virDomainMemoryStats function. Claudio -- BSc (Comp) Claudio Bley - Principal Software Engineer AV-TEST GmbH, Klewitzstr. 7, 39112 Magdeburg, Germany Phone: +49 391 6075460, Fax

Re: [libvirt-users] Libvirt installion error: You must install the libyajl library & headers to compile libvirt

2014-07-01 Thread Claudio Bley
At Tue, 1 Jul 2014 07:00:29 +, WANG Cheng D wrote: > > Dear all, > I am installing the libvirt 1.2.5 on my newly installed Fedora19. > When I run ./configure, an error is reported: "You must install the libyajl > library & headers to compile libvirt" > In fact, the package yajl-2.0.4-2fc19.x8

Re: [libvirt-users] ERROR: Domain not found: no domain with matching name 'ubuntu'

2014-06-18 Thread Claudio Bley
At Sun, 15 Jun 2014 11:57:46 -0400, Sanket Panhale wrote: > > I tried running qemu-system-x86_64 -help" command manually. But it seems > that it work normally. Are you sure that you called the right program located in /usr/local/bin? Do that exactly as libvirt did it: $ LC_ALL=C PATH=/usr/local

Re: [libvirt-users] ERROR: Domain not found: no domain with matching name 'ubuntu'

2014-06-13 Thread Claudio Bley
Hi. At Thu, 12 Jun 2014 16:51:11 -0400, Sanket Panhale wrote: > > Libvirt log: > > 2014-06-12 20:06:24.033+: 1305: error : virCommandWait:2188 : internal > error Child process (LC_ALL=C > PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin > /usr/local/bin/qemu-system-x86_64 -h

Re: [libvirt-users] set keep alive

2014-04-02 Thread Claudio Bley
At Tue, 1 Apr 2014 17:29:25 +0400, Fl@sh wrote: > > Can anyone explain what is happening. > After call > virConnectOpen > virEventRegisterDefaultImpl() > call virConnectSetKeepAlive returns > VirtError(1): internal error: the caller doesn't > support keepalive protocol; per

Re: [libvirt-users] Libvirt libssh2 authentication

2014-03-27 Thread Claudio Bley
At Wed, 26 Mar 2014 17:25:24 +0100, David Dias wrote: > > Hi, > > I am working on a java application using libvirt java API (version 0.4.7) > and i would like to authenticate through ssh within my application (no need > for the user to type his password). How can i submit SSH authentication > cre

Re: [libvirt-users] Problem in getting memory statistics

2014-03-17 Thread Claudio Bley
At Sat, 15 Mar 2014 23:33:59 +0100, Pasquale Dir wrote: > > 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 th

Re: [libvirt-users] Problem in getting memory statistics

2014-03-17 Thread Claudio Bley
odinfo virtio_balloon" and post the output. > 2014-03-14 12:00 GMT+01:00 Claudio Bley : > > > At Wed, 12 Mar 2014 13:36:50 +0100, > > Pasquale Dir wrote: > > > > > > Problem is that it returns me just tags 0,6 and 7. > > > Looking

Re: [libvirt-users] Problem in getting memory statistics

2014-03-14 Thread Claudio Bley
At Wed, 12 Mar 2014 13:36:50 +0100, Pasquale Dir wrote: > > Hello, > I need to get how much memory is used by a guest system, in order to > implement some monitoring function which tells me if the system is > overstressed. > > I am currently using java apis and the binding which was suggested to

Re: [libvirt-users] Fwd: How to get guest's cpu and mem usage with Java APIs

2014-03-11 Thread Claudio Bley
ready provides several API calls. such as the > > ones used by 'virsh cpu-stats' and 'virsh dommemstat'; you may have to > > do some code reading to figure out what C calls the virsh code made in > > order to find the same API under the Java bindings. > > &g

Re: [libvirt-users] Flags in java api bindings

2014-03-05 Thread Claudio Bley
At Wed, 5 Mar 2014 12:02:08 +0100, Pasquale Dir wrote: > > I am currently using Connect(String,ConnectAuth,int) constructor, as I > decided to use tcp connection and I need the auth part. > It works, but I still need the read/write flag which, in the > Connect(String, boolean) is a boolean. I need

Re: [libvirt-users] Using Java bindings to event callback

2014-01-23 Thread Claudio Bley
At Thu, 5 Dec 2013 16:26:36 +0800, Howie wrote: > > Hi > > My test environment : > > CentOS 6.3 6.4 > Ubuntu 13.10 > > For CentOS 6.4 > > libvirt-java-0.4.9-1.el6.noarch > libvirt-python-0.10.2-29.el6.x86_64 > libvirt-client-0.10.2-29.el6.x86_64 > libvirt-0.10.2-29.el6.x86_64 > > I am try to

Re: [libvirt-users] [libvirt] can not create "qcow2" format volume by Java library.

2012-11-06 Thread Claudio Bley
Hi. At Tue, 30 Oct 2012 16:03:42 +0800, zhijun liu wrote: > > hi,all, > > when I use Java library to create volume ,specified format "qcow2", > but when I check it use qemu-img info ,it show format is "raw".。 More info please. What exactly did you do? Does it work when you do it manually using

Re: [libvirt-users] [libvirt] Connection using Java

2012-10-16 Thread Claudio Bley
Hi. At Tue, 2 Oct 2012 12:57:03 -0300, Felipe Oliveira Gutierrez wrote: > > My netcat version is v1.10-38 and I am using Debian on 192.XXX.XXX.XX > > # nc -h > [v1.10-38] > connect to somewhere:    nc [-options] hostname port[s] [ports] ... > listen for inbound:    nc -l -p port [-options] [host