Re: [libvirt] [PATCH] Change logrotate to be per-hypervisor logs

2010-03-10 Thread Daniel Veillard
On Thu, Mar 04, 2010 at 08:21:05AM -0700, Eric Blake wrote: According to Daniel Veillard on 3/4/2010 7:36 AM: Original bug is: https://bugzilla.redhat.com/show_bug.cgi?id=547514 maybe this could be done in slightly different way, possibly more generic, but I think doing a simple

[libvirt] How to differentiate creation from migration?

2010-03-10 Thread Richard Maciel
Hi, I work on a project that makes use of libvirt (called libvirt-cim) and we created an algorithm to detect when a new machine is created. However, I need to filter the ones created by the migration operation. Does libvirt provides a way to distinguish a machine created by 'migrate'

Re: [libvirt] How to differentiate creation from migration?

2010-03-10 Thread Daniel Veillard
On Wed, Mar 10, 2010 at 11:40:44AM -0300, Richard Maciel wrote: Hi, I work on a project that makes use of libvirt (called libvirt-cim) and we created an algorithm to detect when a new machine is created. However, I need to filter the ones created by the migration operation. Does libvirt

Re: [libvirt] [PATCH] Make virsh reconnect when loosing connection

2010-03-10 Thread Daniel Veillard
On Fri, Mar 05, 2010 at 03:33:10PM -0500, Laine Stump wrote: I applied this patch and tried it out. It appears to work as advertised, which is useful. Would be even better if there was some higher level handling to automatically retry the commands that fail due to sigpipe. Beyond that, I

Re: [libvirt] [PATCH] Make virsh reconnect when loosing connection

2010-03-10 Thread Daniel Veillard
On Fri, Mar 05, 2010 at 04:18:48PM -0500, Laine Stump wrote: On 03/05/2010 05:11 AM, Daniel Veillard wrote: @@ -8343,6 +8399,17 @@ vshCommandRun(vshControl *ctl, const vshCmd *cmd) if (ret == FALSE) virshReportError(ctl); +/* try to catch automatically

Re: [libvirt] [PATCH] Change logrotate to be per-hypervisor logs

2010-03-10 Thread Eric Blake
On 03/10/2010 03:29 AM, Daniel Veillard wrote: It would probably be better to write: -e 's...@]localstatedir[@]!$(localstatedir)!g' \ as the substitution. Other than that, you have my ACK Okay, I was afraid at first that the quoting of the expression would defeat make

[libvirt] info about migration check

2010-03-10 Thread Paolo Smiraglia
Hi guys! I'm Paolo, and I'm working on my graduation thesis. One of my thesis' subject is to define a migration check which will be used to perform secure migration using IMA measurement. Someone can suggest me a documentation (code examples, technical paper, etc) about migration cheks? Now I'm

Re: [libvirt] [PATCH] Remove hard dependency on DMI

2010-03-10 Thread Dave Allan
On 03/09/2010 06:04 PM, Eric Blake wrote: On 03/05/2010 10:41 AM, Dave Allan wrote: On 03/04/2010 07:49 PM, Ed Swierk wrote: On Thu, Mar 4, 2010 at 10:31 AM, Dave Allandal...@redhat.com wrote: I reworked udevSetupSystemDev into this style (which also fixes the bug you pointed out that it

[libvirt] [PATCH] build: update gnulib submodule to newer (but not latest)

2010-03-10 Thread Jim Meyering
I've just pushed this, so that people who pull-from-git through the recent bootstrap.conf change (adding the count-one-bits module) don't have to run ./bootstrap manually. From 12023373cdc771e5ca818f4c8f4aa8abe174871a Mon Sep 17 00:00:00 2001 From: Jim Meyering meyer...@redhat.com Date: Wed, 10

[libvirt] [PATCH] build: change to gnulib module list should rerun bootstrap

2010-03-10 Thread Eric Blake
* autogen.sh (curr_status): Also include hash of bootstrap.conf when checking for changes that require bootstrap rerun. * cfg.mk (_update_required): Likewise. --- This should fix the stop-gap that Jim mentioned in the previous patch. autogen.sh |3 ++- cfg.mk |3 ++- 2 files

Re: [libvirt] [PATCH] build: enforce preprocessor indentation

2010-03-10 Thread Jim Meyering
Eric Blake wrote: Since cppi is not part of Fedora Core 12, the check is conditional: without cppi, running 'make syntax-check' merely warns: $ make sc_preprocessor_indentation preprocessor_indentation maint.mk: skipping test sc_preprocessor_indentation: cppi not installed * cfg.mk

Re: [libvirt] [PATCH] build: change to gnulib module list should rerun bootstrap

2010-03-10 Thread Jim Meyering
Eric Blake wrote: * autogen.sh (curr_status): Also include hash of bootstrap.conf when checking for changes that require bootstrap rerun. * cfg.mk (_update_required): Likewise. Good one. I've pushed it. FYI, to those following along, this will require that you rerun ./autogen.sh, which will

[libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Dev.Atom
Hi, I'm trying to compile 0.7.7 under XP/mingw and I have this issue : In file included from util/conf.c:24: util/util.h:119: error: syntax error before uid_t util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before uid_t util/util.h:130:

Re: [libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Eric Blake
On 03/10/2010 08:47 AM, Dev.Atom wrote: Hi, I'm trying to compile 0.7.7 under XP/mingw and I have this issue : In file included from util/conf.c:24: util/util.h:119: error: syntax error before uid_t util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error:

[libvirt] [PATCH] Fix a JSON CPU information bug.

2010-03-10 Thread Chris Lalancette
When using the JSON monitor, qemuMonitorJSONExtractCPUInfo was returning 0 on success. Unfortunately, higher levels of the cpuinfo code expect that it returns the number of CPUs it found on success. This one-line patch fixes it so that it returns the correct number. This makes virsh vcpuinfo

[libvirt] [PATCH] Remove qemudDomainSetMaxMemory.

2010-03-10 Thread Chris Lalancette
As previously discussed[1], this patch removes the qemudDomainSetMaxMemory() function, since it doesn't work. This means that instead of getting somewhat cryptic errors, you will now get: error: Unable to change MaxMemorySize error: this function is not supported by the hypervisor:

[libvirt] virsh setmaxmem

2010-03-10 Thread Chris Lalancette
All, My recent patch to remove qemudDomainSetMaxMem() revealed some surprising (to me) behavior of virsh setmaxmem. In particular, if you run setmaxmem, and the hypervisor doesn't support it, this fact will be reported to you. However, if the amount you were setting for maxmem happens to be

Re: [libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Eric Blake
[let's keep the list in the loop] On 03/10/2010 01:32 PM, Dev.Atom wrote: Hi, and thanks for your help. with make V=1 I have this : libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../src/util -I../include -I/mingw//include/libxml2

Re: [libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Matthias Bolte
2010/3/10 Dev.Atom arnaud.champ...@devatom.fr: Hi, I'm trying to compile 0.7.7 under XP/mingw and I have this issue : In file included from util/conf.c:24: util/util.h:119: error: syntax error before uid_t util/util.h:121: warning: function declaration isn't a prototype util/util.h:129:

Re: [libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Daniel Veillard
On Wed, Mar 10, 2010 at 10:01:55PM +0100, Matthias Bolte wrote: 2010/3/10 Dev.Atom arnaud.champ...@devatom.fr: Hi, I'm trying to compile 0.7.7 under XP/mingw and I have this issue : In file included from util/conf.c:24: util/util.h:119: error: syntax error before uid_t

Re: [libvirt] Libvirt 0.7.7 compile under mingw

2010-03-10 Thread Dev.Atom
Hi, Okay, so I will wait for these patches, to continue -- From: Matthias Bolte matthias.bo...@googlemail.com Sent: Wednesday, March 10, 2010 10:01 PM To: Dev.Atom arnaud.champ...@devatom.fr Cc: libvirt-l...@redhat.com Subject: Re: [libvirt]

Re: [libvirt] Request to mailing list libvir-list rejected

2010-03-10 Thread Eric Blake
[in general, technical lists tend to frown on the practice of top-posting] On 03/10/2010 02:49 PM, Dev.Atom wrote: Sorry, I'm not used to use mailing list I think the relevants part are these functions : int virFileOperation(const char *path, int openflags, mode_t mode,

Re: [libvirt] [PATCH] Include sysfs devices lacking a device symlink as node devices

2010-03-10 Thread Dave Allan
On 03/09/2010 06:00 PM, Dave Allan wrote: On 03/09/2010 01:55 PM, Eric Blake wrote: On 03/03/2010 03:58 PM, Ed Swierk wrote: The udev node device driver relies on the device symlink in sysfs to populate the node device's parent property. Loopback, vlan and bridge network interfaces don't have

[libvirt] pkg-config for libvirt.

2010-03-10 Thread Kumar L Srikanth-B22348
Hi, I installed libvirt 0.7.6 version on my fedora 12 machine. When issue the version command in the virsh console, the following are the results: Compiled against library: libvir 0.7.6 Using library: libvir 0.7.6 Using API: LXC 0.7.6 Running hypervisor: LXC 2.6.31 But, the following pkg-config

Re: [libvirt] pkg-config for libvirt.

2010-03-10 Thread Osier Yang
try to install libvirt-devel Regards osier Kumar L Srikanth-B22348 wrote: Hi, I installed libvirt 0.7.6 version on my fedora 12 machine. When issue the version command in the virsh console, the following are the results: Compiled against library: libvir 0.7.6 Using library: libvir 0.7.6

Re: [libvirt] [PATCH] Change logrotate to be per-hypervisor logs

2010-03-10 Thread Osier Yang
hi will it be better provide some configuration in libvirtd.conf or ENV viriable to control the log level of each hypervisor log seperately? such as I want to libvirt will just log errors for lxc, but any messages for qemu, warning, and error message for uml. Regards osier Daniel