Re: [libvirt] Live migration woes

2010-02-05 Thread Thomas Treutner
On Friday 05 February 2010 22:39:04 Thomas Treutner wrote: > Yeah, that's familiar to me: > > 22:09:40.409: debug : qemuSecurityDACSetProcessLabel:411 : Dropping > privileges of VM to 0:0 > char device redirected to /dev/pts/3 > Warning: vlan 0 with no nics > Option 'ipv4': Use 'on' or 'off' > Fail

Re: [libvirt] Live migration woes

2010-02-05 Thread Thomas Treutner
On Friday 05 February 2010 21:21:32 Thomas Sjolshagen wrote: > Quoting Thomas Treutner : > > Hi, > > > > is anyone using libvirt-git and qemu-kvm post-0.11 and can live migrate > > VMs successfully for- and backwards? qemu-kvm-0.11 seems to be the latest > > release were live migration works, and I

Re: [libvirt] Live migration woes

2010-02-05 Thread Thomas Sjolshagen
Quoting Thomas Treutner : Hi, is anyone using libvirt-git and qemu-kvm post-0.11 and can live migrate VMs successfully for- and backwards? qemu-kvm-0.11 seems to be the latest release were live migration works, and I'm trying to figure out if its a kvm or libvirt problem, since there were othe

[libvirt] Live migration woes

2010-02-05 Thread Thomas Treutner
Hi, is anyone using libvirt-git and qemu-kvm post-0.11 and can live migrate VMs successfully for- and backwards? qemu-kvm-0.11 seems to be the latest release were live migration works, and I'm trying to figure out if its a kvm or libvirt problem, since there were other things (balloon parameter

[libvirt] FYI, [PATCH] build: update gnulib submodule to latest

2010-02-05 Thread Jim Meyering
FYI, I've just pushed this: >From 26bd7bef58296300cd81756297de514b9c2073df Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 5 Feb 2010 17:57:39 +0100 Subject: [PATCH] build: update gnulib submodule to latest * .gnulib: This fixes a warning in test-gettimeofday.c, seen via "make check". Re

[libvirt] [1/3] Add a QXL graphics card type to domain XML schema

2010-02-05 Thread Daniel Veillard
Author: Daniel P. Berrange Add a QXL graphics card type to domain XML schema * src/qemu_conf.c: Add dummy entry in enumeration * docs/schemas/domain.rng: Add 'qxl' as a type for the tag * src/domain_conf.c, src/domain_conf.h: Add QXL to video type enumerations diff --

[libvirt] [2/3] Add a type for SPICE protocol

2010-02-05 Thread Daniel Veillard
Author: Daniel P. Berrange Add a type for SPICE protocol This adds an element This is the bare minimum that should be exposed in the guest config for SPICE. Other parameters are better handled as per host level configuration tunables * docs/schem

[libvirt] [3/3] Implement RHEL-5.4 KVM QXL support in QEMU driver

2010-02-05 Thread Daniel Veillard
Comments for commit grabbed from gitorious and apparently not updated as this commit now inclides the spice activating code and tests too... Daniel Author: Daniel P. Berrange Implement RHEL-5.4 KVM QXL support in QEMU driver This supports the -qxl argument in RHEL-5's fork of KVM

[libvirt] [0/3] Rebased patches for SPICE graphics support

2010-02-05 Thread Daniel Veillard
This is a rebase of the 4 RHEL specific patches posted last sptember by Dan Berrange (but with patch 3 and 4 merged). It's actually a rebase from the gitorious spice set from Dan http://www.redhat.com/archives/libvir-list/2009-September/msg00865.html -- Daniel Veillard | libxml Gnome X

[libvirt] virStoragePoolSourceFree(S) does not free S

2010-02-05 Thread Jim Meyering
I was surprised to see that virStoragePoolSourceFree(S) does not free S. The other three vir*Free functions in storage_conf *do* free S. There are at least three places where this causes leaks. Here's one: virStoragePoolSourcePtr virStoragePoolDefParseSourceString(virConnectPtr conn,

[libvirt] [PATCH 7/9] Wire protocol format and dispatcher for virConnectBaselineCPU

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- daemon/remote.c | 25 + daemon/remote_dispatch_args.h |1 + daemon/remote_dispatch_prototypes.h |8 daemon/remote_dispatch_ret.h|1 + daemon/remote_dispatch_table.h |5 +

[libvirt] [PATCH 6/9] virConnectBaselineCPU public API implementation

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/libvirt.c | 57 + 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 8a9ee20..47ce54e 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -10980,3 +10980,6

[libvirt] [PATCH 9/9] cpu-baseline command for virsh

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- tools/virsh.c | 72 +++ tools/virsh.pod |8 ++ 2 files changed, 80 insertions(+), 0 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 01d2038..2f30a4e 100644 --- a/tools/virsh.c +++ b/too

[libvirt] [PATCH 5/9] Internal driver API for virConnectBaselineCPU

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/driver.h|6 ++ src/esx/esx_driver.c|1 + src/lxc/lxc_driver.c|1 + src/opennebula/one_driver.c |1 + src/openvz/openvz_driver.c |1 + src/phyp/phyp_driver.c |1 + src/qemu/qemu_driver.c |

[libvirt] [PATCH 2/9] Implement cpuArchBaseline in generic CPU driver

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_generic.c | 103 - 1 files changed, 101 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu_generic.c b/src/cpu/cpu_generic.c index 16bc4b0..dc35b30 100644 --- a/src/cpu/cpu_generic.c +++ b/src/cpu/c

[libvirt] [PATCH 8/9] Implement cpuBaseline in remote and qemu drivers

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_driver.c | 15 ++- src/remote/remote_driver.c | 33 - 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index db07b66..ef164be 100644 --

[libvirt] [PATCH 4/9] virConnectBaselineCPU public API

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- include/libvirt/libvirt.h.in | 18 ++ src/libvirt_public.syms |5 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index f192fb1..0a96a04 100644 --- a/inclu

[libvirt] [PATCH 1/9] Functions for computing baseline CPU from a set of host CPUs

2010-02-05 Thread Jiri Denemark
Baseline CPU is the best CPU which can be used for a guest on any of the hosts. Signed-off-by: Jiri Denemark --- src/cpu/cpu.c| 125 +- src/cpu/cpu.h| 23 - src/cpu/cpu_generic.c|3 +- src/cpu/cpu_x86.c

[libvirt] [PATCH 3/9] Implement cpuArchBaseline in x86 CPU driver

2010-02-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 87 - 1 files changed, 86 insertions(+), 1 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index f316db1..a9f04f0 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -

[libvirt] [PATCH 0/9] New public API for computing baseline CPU

2010-02-05 Thread Jiri Denemark
Hi, This series introduces a new virConnectBaselineCPU() API call for computing baseline CPU model from a set of host CPU definitions. The call accepts a list of ... xml definitions taken from host capabilities and returns an xml description of a guest CPU which is supported by all hosts. virsh i

Re: [libvirt] [PATCH] (absolutePathFromBaseFile): fix up preceding commit

2010-02-05 Thread Jim Meyering
Jim Meyering wrote: ... > +ignore_value(virAsprintf(&res, "%.*s/%s", (int) d_len, base_file, path)); Regarding this, I will be removing the warn_unused_result attribute from virAsprintf (and this use of ignore_value), since it *is* ok to ignore its return value, since it guarantees the pointer

[libvirt] [PATCH] (absolutePathFromBaseFile): fix up preceding commit

2010-02-05 Thread Jim Meyering
To my chagrin, I saw that my most recent commit introduced compilation errors. Sorry about that. Here's how I propose to fix it. >From 2d948a373ecebec6c06274f61b31d1ae9c40ae41 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 5 Feb 2010 14:57:35 +0100 Subject: [PATCH] (absolutePathFromBaseF

[libvirt] Regarding lxc driver for libvirt.

2010-02-05 Thread Kumar L Srikanth-B22348
Hi, I am new to libvirt. I want to create a Domain using libvirt XML. In order to mount the host's '/home/srikanth' directory to the new container's '/' directory, my XML format is shown below: container1_vm 50 exe /bin/sh 1 destroy

[libvirt] FW: Regarding lxc driver for libvirt.

2010-02-05 Thread Kumar L Srikanth-B22348
Can anyone help in the below issue? Regards, Srikanth. -Original Message- From: Kumar L Srikanth-B22348 Sent: Friday, February 05, 2010 4:02 PM To: 'libvir-list@redhat.com' Subject: Regarding lxc driver for libvirt. Hi, I am new to libvirt. I want to create a Domain using libvirt XML.

Re: [libvirt] [PATCH] absolutePathFromBaseFile: don't leak when first arg contains no "/"

2010-02-05 Thread Jim Meyering
Daniel Veillard wrote: > On Fri, Feb 05, 2010 at 10:59:23AM +0100, Jim Meyering wrote: >> Daniel P. Berrange wrote: >> > Any code which uses a combination of VIR_ALLOC + strcat/strcpy/strpcpy/etc >> > really ought to be re-written to use virAsprintf(). The nested stpcpy is >> > a nice trick, but it

Re: [libvirt] [PATCH] absolutePathFromBaseFile: don't leak when first arg contains no "/"

2010-02-05 Thread Daniel Veillard
On Fri, Feb 05, 2010 at 10:59:23AM +0100, Jim Meyering wrote: > Daniel P. Berrange wrote: > > Any code which uses a combination of VIR_ALLOC + strcat/strcpy/strpcpy/etc > > really ought to be re-written to use virAsprintf(). The nested stpcpy is > > a nice trick, but its not really helping clarity

Re: [libvirt] [PATCH] absolutePathFromBaseFile: don't leak when first arg contains no "/"

2010-02-05 Thread Jim Meyering
Daniel P. Berrange wrote: > On Thu, Feb 04, 2010 at 05:14:40PM +0100, Jim Meyering wrote: >> Not only did this function leak(p), but it would also over-allocate >> (by the length of basename(base_file)), and then later, re-alloc >> to compensate, so I rewrote it: >> >> >From 1dc52930daa000b407d8a8f