[Libvir] virsh vcpupin does not work with xend

2007-05-29 Thread Saori Fukuta
Hi, The virsh vcpupin command does not work when it uses Xend(xend_internal.c). HV(xen_internal.c) works fine. I'm testing on Xen3.1.0(hypervisor_version=2, dom_interface_version=5, xendConfigVersion=4), and using current libvirt(ChangeLog revision 1.546). To solve this problem, I got the xend

Re: [Libvir] Question on acquiring cpuTime in struct _virDomainInfo

2007-05-29 Thread Daniel Veillard
On Thu, May 24, 2007 at 06:38:30PM +0200, Jan Michael wrote: Hi Daniel, first I'd like to thank you for your speedy answer and the suggested solution. But I think it doesn't fit to my problem. The program I write is a sensor, which is executed by a given time intervall. So I'm not able

Re: [Libvir] AC_PROG_CPP

2007-05-29 Thread Daniel Veillard
On Mon, May 14, 2007 at 05:34:08PM +0100, Richard W.M. Jones wrote: Daniel P. Berrange wrote: checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp

Re: [Libvir] [PATCH] output virsh log to file

2007-05-29 Thread Richard W.M. Jones
Daniel Veillard wrote: [...] Morning Daniel, My experience with systematic logging at command line level is that you end up polluting your file system with (hidden) log files, and while it may be fine for a developper it's not something you want to inflict to your customers. Also the fixed

Re: [Libvir] [PATCH] Add Python binding for virGetVersion

2007-05-29 Thread Richard W.M. Jones
Thanks Mark, Here's a patch which does that. Example usage: import libvirt; libvirt.getVersion (); 2002 libvirt.getVersion (QEMU); (2002, 2002) libvirt.getVersion (Test); (2002, 2002) libvirt.getVersion (Xen); (2002, 301) libvirt.getVersion (None); 2002 Rich. -- Emerging

Re: [Libvir] [PATCH] Add Python binding for virGetVersion

2007-05-29 Thread Richard W.M. Jones
BTW, it doesn't seem to make any sense at all to have virGetVersion be case sensitive. Fixed in the trivial patch attached. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire,

Re: [Libvir] [PATCH] Add Python binding for virGetVersion

2007-05-29 Thread Mark McLoughlin
On Tue, 2007-05-29 at 12:43 +0100, Richard W.M. Jones wrote: libvirt.getVersion (Xen); (2002, 301) libvirt.getVersion (None); 2002 I don't think it's a big deal, but I was suggesting these two should be equivalent - i.e. None == Xen. That's why the code I posted explicitly

Re: [Libvir] [PATCH] add scheduler API(take 3?)

2007-05-29 Thread Daniel Veillard
On Tue, May 22, 2007 at 08:35:04PM +0100, Daniel P. Berrange wrote: On Tue, May 22, 2007 at 11:32:44AM +0100, Richard W.M. Jones wrote: +unsigned long long int ul; Is long long part of ANSI C? I thought it was a gcc extension. I think you should use stdint.h to give you

Re: [Libvir] [PATCH] Fix some memory leak

2007-05-29 Thread Daniel Veillard
On Tue, May 29, 2007 at 05:32:34PM +0900, Masayuki Sunou wrote: Hi This patch fixes some memory leak in libvirt. 1. The point that checks command-option in virsh.c 2. The point that checks version of Xen in xen_internal.c 3. The point that checks OS type of VM in xend_internal.c And

[Libvir] Finally - fix the build on Debian

2007-05-29 Thread Richard W.M. Jones
The attached patch fixes three separate build problems on Debian: (1) The libtool autoconf macro is wrong in that it requires a C++ compiler and /lib/cpp, neither of which seems to be really needed. (2) If you pass -fstack-protector while compiling, then you also need to pass it while

Re: [Libvir] Error while run make: undefined reference to `xenHypervisorMakeCapabilitiesXML'

2007-05-29 Thread Daniel Veillard
On Mon, May 28, 2007 at 11:26:18AM -0400, Daniel Veillard wrote: On Mon, May 28, 2007 at 12:15:31PM -0300, Marco Sinhoreli wrote: Hello list, I'm with this error while I am compiling the libvirt: xencapstest.o: In function `testCompareFiles': /usr/src/libvirt/tests/xencapstest.c:33:

Re: [Libvir] Finally - fix the build on Debian

2007-05-29 Thread Daniel Veillard
On Tue, May 29, 2007 at 03:21:48PM +0100, Richard W.M. Jones wrote: The attached patch fixes three separate build problems on Debian: (1) The libtool autoconf macro is wrong in that it requires a C++ compiler and /lib/cpp, neither of which seems to be really needed. (2) If you pass

Re: [Libvir] Finally - fix the build on Debian

2007-05-29 Thread Richard W.M. Jones
Daniel Veillard wrote: On Tue, May 29, 2007 at 03:21:48PM +0100, Richard W.M. Jones wrote: The attached patch fixes three separate build problems on Debian: (1) The libtool autoconf macro is wrong in that it requires a C++ compiler and /lib/cpp, neither of which seems to be really needed.

[Libvir] Debian package structure

2007-05-29 Thread Marco Sinhoreli
hello all, I have been worked in libvirt, virt-manager and virtinst packages to Debian for a weeks. Packages are now stabilized. Following below the /debian directories structure for analise. * libvirt: svn co http://svn.mussicorp.net/projetos/src/xen/libvirt/trunk/ * Virt-manager: svn co

Re: [Libvir] Error while run make: undefined reference to `xenHypervisorMakeCapabilitiesXML'

2007-05-29 Thread Marco Sinhoreli
Thanks, I had a problem with my libxen package. The /usr/lib/libxenstore.so wasn't linked to /usr/lib/libxenstore.so.3.0.0. Regards, On 5/29/07, Daniel Veillard [EMAIL PROTECTED] wrote: On Mon, May 28, 2007 at 11:26:18AM -0400, Daniel Veillard wrote: On Mon, May 28, 2007 at 12:15:31PM

[Libvir] Hang with virt-install graphic=no on FC 6 6.93/F7 RC2

2007-05-29 Thread libvirtuser
I had this problem and another user confirmed the same behavior on his machine: http://pastie.caboo.se/65417 Haven't tried it with *2925.10* yet. Also, is there a way to get more verbose info about what calls are causing the configuration file syntax error errors? Thanks. virt-install How