Re: [libvirt] Domain not stable while created...

2010-04-12 Thread Sankamesh
Thanks Mr. Stefan Will that crash mainly be due to the kernel ? Since am not sure about that,else I should try with different image. When I use via a config file using "xm create libvirt-ttylinux.conf ", then the domain runs stable But when I use the virsh -c xen:/// define libvirt-tty

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Daniel Veillard
On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > Richard W.M. Jones wrote: > > On Fri, Apr 09, 2010 at 10:06:51PM +0100, Jamie Lokier wrote: > > > Daniel P. Berrange wrote: > > > > I think this alteration of existing args is fr too complex & > > > > fragile, > > > > and way over

Re: [libvirt] about qemu monitor mode.

2010-04-12 Thread Daniel P. Berrange
On Sun, Apr 11, 2010 at 04:41:06PM +0800, Osier Yang wrote: > Hello there > libvirt compiles JSON mode as the default qemu monitor mode if > yajl-devel is available. As a result of this solution, the user has no > way to change into the text mode. And because the qemu QMP always lacks > comman

[libvirt] creating domain with same name and different UUID

2010-04-12 Thread Nikola Ciprich
Hello, I have small problem with libvirt, which I'm trying to solve... I'm using defineXML function to create KVM machines. from time to time, I need to delete the domain, and create new one with the same name. every newly created domain has new UUID. and this is where the problem starts, defineXM

[libvirt] migration flags

2010-04-12 Thread Kenneth Nagin
Could someone explain the usage of the following migration flags: --p2p --direct --tunneled --persistent Kenneth Nagin -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] Domain not stable while created...

2010-04-12 Thread Stefan Berger
Sankamesh wrote on 04/12/2010 04:29:36 AM: > > Thanks Mr. Stefan > Will that crash mainly be due to the kernel ? Since am not sure > about that,else I should try with different image. > When I use via a config file using "xm create libvirt-ttylinux.conf > ", then the domain runs stable

[libvirt] libvirt Error Domain didn't show up

2010-04-12 Thread Roche, Christian (EXT-Other - MA/Rabat)
Hi there, I'm trying to use kvm on CentOS 5.4 64-bit to virtualize Windows Server 2003. I've been able to install and start the system using 1GB of memory, however when I try to increase the amount of memory available to the VM to 4GB by editing /etc/libvirt/qemu/windows2003.xml, I get the fol

[libvirt] [PATCH] nwfilter: Fix memory leak on daemon init and shutdown

2010-04-12 Thread Stefan Berger
This patch fixes a memory leak on daemon init and shutdown. The module was initialized twice and not shut down. Signed-off-by: Stefan Berger --- src/nwfilter/nwfilter_driver.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: libvirt-acl/src/nwfilter/nwfilter_driver.c =

Re: [libvirt] [PATCH] nwfilter: Fix memory leak on daemon init and shutdown

2010-04-12 Thread Daniel Veillard
On Mon, Apr 12, 2010 at 07:56:47AM -0400, Stefan Berger wrote: > This patch fixes a memory leak on daemon init and shutdown. The module > was initialized twice and not shut down. > > Signed-off-by: Stefan Berger > > --- > src/nwfilter/nwfilter_driver.c |3 ++- > 1 file changed, 2 insertion

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Jamie Lokier
Daniel Veillard wrote: > On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > > It's not that hard to write this for trivial extra options: > > > >/bin/sh -c 'qemu "$0" "$@" -extra-flag' > > > > (if that works). > > That won't work because we expect the emulator to be a path to

Re: [libvirt] [PATCH 1/2] virsh.pod: Small fixes

2010-04-12 Thread Daniel Veillard
On Fri, Apr 09, 2010 at 04:31:42PM -0300, Luiz Capitulino wrote: > - Two missing 's' > - 'dominfo' is duplicated > > Signed-off-by: Luiz Capitulino > --- > tools/virsh.pod |8 ++-- > 1 files changed, 2 insertions(+), 6 deletions(-) > Ah, right, thanks ! pushed :-) Daniel -- D

Re: [libvirt] [PATCH 2/2] qemu_monitor_json: Drop timestamp from command object

2010-04-12 Thread Daniel Veillard
On Fri, Apr 09, 2010 at 04:31:43PM -0300, Luiz Capitulino wrote: > It's not needed and is just discarded by the Server. > > Signed-off-by: Luiz Capitulino > --- > src/qemu/qemu_monitor_json.c | 34 -- > 1 files changed, 0 insertions(+), 34 deletions(-) > > diff

Re: [libvirt] [PATCH] nwfilter: Fix memory leak on daemon init and shutdown

2010-04-12 Thread Stefan Berger
Daniel Veillard wrote on 04/12/2010 08:07:32 AM: > Please respond to veillard > > On Mon, Apr 12, 2010 at 07:56:47AM -0400, Stefan Berger wrote: > > This patch fixes a memory leak on daemon init and shutdown. The module > > was initialized twice and not shut down. > > > > Signed-off-by: Stefan

Re: [libvirt] [libvirt-users] libvirt: C++ or Java?

2010-04-12 Thread Daniel Veillard
On Sun, Apr 11, 2010 at 04:19:14PM +0530, Ganesh Pagade wrote: > Hello, > > I am planning to develop a management application for managing Redhat Xen > and Redhat KVM hypervisors. I am evaluating the Java bindings versus the C++ > version of libvirt. As part of evaluation, I could not find meaning

Re: [libvirt] Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Fri, Apr 09, 2010 at 02:16:06PM -0400, Chris Lalancette wrote: > On 04/09/2010 10:27 AM, Daniel P. Berrange wrote: > >> Raw access to the qemu monitor will be disabled by default; the > >> tag enables the ability to send QMP (or > >> text, if you are using older qemu) messages straight through

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > Richard W.M. Jones wrote: > > On Fri, Apr 09, 2010 at 10:06:51PM +0100, Jamie Lokier wrote: > > > Daniel P. Berrange wrote: > > > > I think this alteration of existing args is fr too complex & > > > > fragile, > > > > and way over

Re: [libvirt] [PATCH 0/2] Enhance checking of supported flags in drivers

2010-04-12 Thread Daniel Veillard
On Fri, Apr 09, 2010 at 04:40:59PM +0200, Jiri Denemark wrote: > I think we need a simple and consistent way of checking whether flags passed > to API entry points in drivers are valid/supported or not. So far some entry > points don't check flags at all and some checks for 0 when no flags are > ex

Re: [libvirt] [PATCH 2/2] qemu_monitor_json: Drop timestamp from command object

2010-04-12 Thread Luiz Capitulino
On Mon, 12 Apr 2010 14:25:25 +0200 Daniel Veillard wrote: > On Fri, Apr 09, 2010 at 04:31:43PM -0300, Luiz Capitulino wrote: > > It's not needed and is just discarded by the Server. > > > > Signed-off-by: Luiz Capitulino > > --- > > src/qemu/qemu_monitor_json.c | 34 -

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 01:23:08PM +0100, Jamie Lokier wrote: > Daniel Veillard wrote: > > On Sun, Apr 11, 2010 at 11:17:38PM +0100, Jamie Lokier wrote: > > > Parsing libvirt output and having to guess which option corresponds to > > > what from the libvirt config sounds very fragile and also a ra

[libvirt] question about libvirt-tck/libivrt-perl

2010-04-12 Thread Gerhard Stenzel
Hi, I have a small libvirt-TCK script, which fails in a for me unexpected way: ## use strict; use warnings; use Term::ReadKey; use Test::More tests => 4; use Sys::Virt::TCK; my $tck = Sys::Virt::TCK->new(); my $conn = eval { $tck->setup();

[libvirt] [PATCH] Rename virsh "revert-to-snapshot" to "snapshot-revert"

2010-04-12 Thread Chris Lalancette
Signed-off-by: Chris Lalancette --- tools/virsh.c | 10 +- tools/virsh.pod |4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 8017beb..d5fe6c4 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -8514,22 +8514,22 @@ cleanup:

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Chris Lalancette
On 04/12/2010 08:41 AM, Daniel P. Berrange wrote: >>> I don't think there's much to be gained from having an XML element to >>> turn on/off use of these APIs. If an app doesn't want to use them, it >>> can simply not link to libvirt-qemu.so >> >> The reason I wanted to do this was mostly for debug/

Re: [libvirt] [PATCH] Rename virsh "revert-to-snapshot" to "snapshot-revert"

2010-04-12 Thread Daniel Veillard
On Mon, Apr 12, 2010 at 09:46:33AM -0400, Chris Lalancette wrote: > Signed-off-by: Chris Lalancette > --- > tools/virsh.c | 10 +- > tools/virsh.pod |4 ++-- > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/tools/virsh.c b/tools/virsh.c > index 8017beb..d5fe6c4

Re: [libvirt] [PATCH] Rename virsh "revert-to-snapshot" to "snapshot-revert"

2010-04-12 Thread Chris Lalancette
On 04/12/2010 10:09 AM, Daniel Veillard wrote: > On Mon, Apr 12, 2010 at 09:46:33AM -0400, Chris Lalancette wrote: > > ACK, we discussed it previously, should be fixed before the release, > please push, thanks ! Thanks, I pushed it now. -- Chris Lalancette -- libvir-list mailing list libvir-

Re: [libvirt] [PATCH 6/6] Snapshot virsh implementation.

2010-04-12 Thread Chris Lalancette
On 04/09/2010 03:54 PM, Paul Jenner wrote: >> I agree, this should be called snapshot-revert > > If there is consensus, would someone be willing to submit a patch to > change this before 0.8.0? I just pushed this change into libvirt (so it should make 0.8.0). -- Chris Lalancette -- libvir-list

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 09:56:50AM -0400, Chris Lalancette wrote: > On 04/12/2010 08:41 AM, Daniel P. Berrange wrote: > >>> I don't think there's much to be gained from having an XML element to > >>> turn on/off use of these APIs. If an app doesn't want to use them, it > >>> can simply not link to

Re: [libvirt] question about libvirt-tck/libivrt-perl

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 03:41:44PM +0200, Gerhard Stenzel wrote: > Hi, I have a small libvirt-TCK script, which fails in a for me > unexpected way: > ## > use strict; > use warnings; > > use Term::ReadKey; > > use Test::More tests => 4; > >

Re: [libvirt] [libvirt-users] libvirt: C++ or Java?

2010-04-12 Thread Bryan Kearney
On 04/12/2010 08:32 AM, Daniel Veillard wrote: On Sun, Apr 11, 2010 at 04:19:14PM +0530, Ganesh Pagade wrote: Hello, I am planning to develop a management application for managing Redhat Xen and Redhat KVM hypervisors. I am evaluating the Java bindings versus the C++ version of libvirt. As part

Re: [libvirt] [PATCH 1/1] Add enospace option to qemu disk error policy

2010-04-12 Thread Dave Allan
On Thu, Apr 08, 2010 at 10:33:53PM +0200, Daniel Veillard wrote: > On Thu, Apr 08, 2010 at 04:11:33PM -0400, David Allan wrote: > > * Dan Kenigsberg requested explicit support for the qemu default disk error > > policy which is enospace > > --- > > docs/schemas/domain.rng

Re: [libvirt] question about libvirt-tck/libivrt-perl

2010-04-12 Thread Gerhard Stenzel
On Mon, 2010-04-12 at 15:21 +0100, Daniel P. Berrange wrote: > It is a subtle issue crossing several layers. libvirt internally > caches > virDomainPtr instances based on name. You created a object in the perl > layer '$dom' with the name, and then you create a new instance with > the > same name,

Re: [libvirt] question about libvirt-tck/libivrt-perl

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 04:56:19PM +0200, Gerhard Stenzel wrote: > On Mon, 2010-04-12 at 15:21 +0100, Daniel P. Berrange wrote: > > It is a subtle issue crossing several layers. libvirt internally > > caches > > virDomainPtr instances based on name. You created a object in the perl > > layer '$dom'

Re: [libvirt] [PATCH 17/30] remote: Remove virConnectPtr from error/errorf

2010-04-12 Thread Dave Allan
On Fri, Apr 09, 2010 at 02:03:09AM +0200, Matthias Bolte wrote: > 2010/4/5 Eric Blake : > > On 04/04/2010 11:36 AM, Matthias Bolte wrote: > >> Also unify error/errorf to remoteError and update cfg.mk accordingly. > > > >> +++ b/src/remote/remote_driver.c > >> @@ -239,11 +239,9 @@ static int remoteA

Re: [libvirt] question about libvirt-tck/libivrt-perl

2010-04-12 Thread Eric Blake
On 04/12/2010 08:56 AM, Gerhard Stenzel wrote: > BTW, additional test cases for libvirt-TCK should be send as patches to > this list, correct? Yes. For that matter, we could probably also patch the web page documentation to more prominently mention libvirt-tck.git. -- Eric Blake ebl...@redhat

Re: [libvirt] creating domain with same name and different UUID

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 12:58:08PM +0200, Nikola Ciprich wrote: > Hello, > I have small problem with libvirt, which I'm trying to solve... > I'm using defineXML function to create KVM machines. > from time to time, I need to delete the domain, and create new one with the > same name. > every newly

Re: [libvirt] [PATCH 17/30] remote: Remove virConnectPtr from error/errorf

2010-04-12 Thread Eric Blake
On 04/12/2010 09:03 AM, Dave Allan wrote: +remoteError(VIR_ERR_INVALID_ARG, "%s", +_("transport methods unix, ssh and ext are not supported " + "under Windows")); >>> >>> I see why you broke this line, to fit 80 columns, but that

[libvirt] Documentation for synchronous hooks

2010-04-12 Thread Daniel Veillard
Was still missing from main commits and would be needed for 0.8.0 Add documentation for synchronous hooks * docs/sitemap.html.in: add in navigation under Documentation/Deployment/Hooks * docs/hooks.html.in: new doc describing current support for 0.8.0 diff --git a/docs/hooks.html.in b/docs/hoo

Re: [libvirt] migration flags

2010-04-12 Thread Daniel P. Berrange
On Mon, Apr 12, 2010 at 02:01:51PM +0300, Kenneth Nagin wrote: > > Could someone explain the usage of the following migration flags: Normally migration is co-ordinated by the libvirt client in a 3 step process Client --> Dest host (prepare) Client --> Source host (perform) Client

Re: [libvirt] Documentation for synchronous hooks

2010-04-12 Thread Chris Lalancette
On 04/12/2010 11:16 AM, Daniel Veillard wrote: > Was still missing from main commits and would be needed for 0.8.0 > > Add documentation for synchronous hooks > > * docs/sitemap.html.in: add in navigation under > Documentation/Deployment/Hooks > * docs/hooks.html.in: new doc describing current

Re: [libvirt] Documentation for synchronous hooks

2010-04-12 Thread Eric Blake
On 04/12/2010 09:16 AM, Daniel Veillard wrote: > Was still missing from main commits and would be needed for 0.8.0 > > Add documentation for synchronous hooks > > * docs/sitemap.html.in: add in navigation under > Documentation/Deployment/Hooks > * docs/hooks.html.in: new doc describing current

Re: [libvirt] [PATCH v1 2/2] Add ip6tables support for IPv6 filtering

2010-04-12 Thread Stefan Berger
Daniel Veillard wrote on 03/30/2010 10:02:09 AM: > > Index: libvirt-acl/configure.ac > > === > > --- libvirt-acl.orig/configure.ac > > +++ libvirt-acl/configure.ac > > @@ -300,6 +300,9 @@ AC_DEFINE_UNQUOTED([BASH_PATH], "$BASH_P > >

Re: [libvirt] [PATCH v1 2/2] Add ip6tables support for IPv6 filtering

2010-04-12 Thread Daniel Veillard
On Mon, Apr 12, 2010 at 11:41:31AM -0400, Stefan Berger wrote: > Daniel Veillard wrote on 03/30/2010 10:02:09 AM: > > > > > Index: libvirt-acl/configure.ac > > > === > > > --- libvirt-acl.orig/configure.ac > > > +++ libvirt-acl/conf

Re: [libvirt] [Qemu-devel] Re: Libvirt debug API

2010-04-12 Thread Luiz Capitulino
On Fri, 9 Apr 2010 15:27:17 +0100 "Daniel P. Berrange" wrote: > On Fri, Apr 09, 2010 at 09:41:39AM -0400, Chris Lalancette wrote: > > Hello, > > In response to a lot of the talk of qemud lately on qemu-devel, the > > libvirt community would like to put forward a proposal to help enable > > d

Re: [libvirt] Documentation for synchronous hooks

2010-04-12 Thread Daniel Veillard
On Mon, Apr 12, 2010 at 09:34:59AM -0600, Eric Blake wrote: > On 04/12/2010 09:16 AM, Daniel Veillard wrote: > > Was still missing from main commits and would be needed for 0.8.0 > > > > Add documentation for synchronous hooks > > > > * docs/sitemap.html.in: add in navigation under > > Document

[libvirt] Release of libvirt-0.8.0

2010-04-12 Thread Daniel Veillard
After heroic efforts in the last couple of weeks it is out ! That's by large the release packed with most new features ever, and the changelog is simply huge. I hope we didn't introduce too many bugs, but we certainly fixed a very large amount in the first place ! Tarball is available as usu

[libvirt] [PATCH] add nwfilter functions to virsh man page

2010-04-12 Thread Stefan Berger
Unfortunately after the 0.8.0 release, but here's a beginning of the documentation of the nwfilter functionality. Signed-off-by; Stefan Berger --- tools/virsh.pod | 53 + 1 file changed, 53 insertions(+) Index: libvirt-acl/tools/virsh.pod =

Re: [libvirt] cannot start a qemu64 model on an Intel host

2010-04-12 Thread Dan Kenigsberg
On Wed, Jan 06, 2010 at 10:38:32AM +0100, Jiri Denemark wrote: > > If I specify > > > > > > qemu64 > > > > > > according to the new cpu schema, I get > > error: internal error guest CPU is not compatible with host CPU > > because qemu64 supports svm, and my host does not. > > > > Howev

[libvirt] [PATCH] Consolidate interface related functions in interface.c

2010-04-12 Thread Stefan Berger
I am consolidating network interface related functions used in nwfilter and macvtap code in utils/interface.c. All function names are prefixed with 'Iface'. The following functions are now available through interface.h: int IfaceCtrl(const char *name, bool up); int IfaceUp(const char *name); int I

[libvirt] small bug in spec file (0.8.0)

2010-04-12 Thread Daniel Berteaud
Hi. I've downloaded libvirt 0.8.0, and tried to re-build a rpm (on CentOS 5.4 x86_64), and found that there's a small bug in the spec file. Line 608: rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu Should be: rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc Withou

Re: [libvirt] [PATCH] add nwfilter functions to virsh man page

2010-04-12 Thread Eric Blake
On 04/12/2010 12:47 PM, Stefan Berger wrote: > Unfortunately after the 0.8.0 release, but here's a beginning of the > documentation of the nwfilter functionality. > > +=head1 NWFILTER COMMMANDS > + > +The following commands manipulate network filters. Network filters > allow > +to filter the netwo

Re: [libvirt] [PATCH] Consolidate interface related functions in interface.c

2010-04-12 Thread Eric Blake
On 04/12/2010 02:21 PM, Stefan Berger wrote: > I am consolidating network interface related functions used in nwfilter > and macvtap code in utils/interface.c. All function names are prefixed > with 'Iface'. The following functions are now available through > interface.h: I'm not a fan of initial

Re: [libvirt] [PATCH] add nwfilter functions to virsh man page

2010-04-12 Thread Stefan Berger
Eric Blake wrote on 04/12/2010 05:30:55 PM: > > ACK, after fixing the nits. And I might as well submit a separate patch > for behavio[u]r, given my previous patch for initiali[sz]e. Ok, fixed the typos and pushed. Stefan -- libvir-list mailing list libvir-list@redhat.com https://www.redha

Re: [libvirt] [PATCH] Consolidate interface related functions in interface.c

2010-04-12 Thread Stefan Berger
Eric Blake wrote on 04/12/2010 05:38:24 PM: > > On 04/12/2010 02:21 PM, Stefan Berger wrote: > > I am consolidating network interface related functions used in nwfilter > > and macvtap code in utils/interface.c. All function names are prefixed > > with 'Iface'. The following functions are now a

[libvirt] [PATCH] build: include usleep gnulib module

2010-04-12 Thread Eric Blake
Without this module, attempts to sleep for 1 or more seconds on mingw instead become a no-delay no-op. * bootstrap.conf (gnulib_modules): Add usleep. --- bootstrap.conf |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index ac2f8e6..d55dc71

[libvirt] [PATCH] build: fix syntax-check problems

2010-04-12 Thread Eric Blake
* .x-sc_prohibit_gettext_noop: Add new exemption. * .x-sc_prohibit_test_minus_ao: Likewise. * Makefile.am (EXTRA_DIST): Distribute new files. * .gitignore: Ignore built file. --- Pushing as obvious, since otherwise 'make syntax-check' fails, and with my name prominently listed in the failure messa