[Libvir] lxc patches

2008-03-26 Thread Dave Leskovec
Sorry - I should have mentioned that the two lxc patches I just posted are built on Dan B's patch. The order is this: Dan's patch lxc_start.patch lxc_stop.patch Thanks! -- Best Regards, Dave Leskovec IBM Linux Technology Center Open Virtualization -- Libvir-list mailing list Libvir-list@redha

[Libvir] [PATCH] lxc: shutdown and destroy domain

2008-03-26 Thread Dave Leskovec
This patch contains the shutdown and destroy domain support for Linux Containers. A shutdown of the container is requested by sending a SIGINT to the container root process. A container is destroyed by sending a SIGKILL to the container root process. When this process exits, it takes all containe

[Libvir] [PATCH] lxc: start domain

2008-03-26 Thread Dave Leskovec
This is a repost of patch four in the last series I posted. It contains the start container support. I've made some changes corresponding to Dan B's patch moving the lxc driver under libvirtd. I removed the isolation forks and cleaned up the status handling and PID storing. Thanks! -- Best Re

Re: [Libvir] building ruby bindings

2008-03-26 Thread Vadim Zaliva
On Mar 26, 2008, at 16:24, David Lutterkort wrote: This is very strange since the NORETURN macro is defined by ruby-devel (for gcc it amounts to __attribute__((noreturn)) ) I just checked in my RHEL5 build root, and it's set to a noop in ruby.h if it is not defined by config.h This is with

Re: [Libvir] building ruby bindings

2008-03-26 Thread David Lutterkort
On Wed, 2008-03-26 at 14:53 -0700, Vadim Zaliva wrote: > The offending line is: > > NORETURN(static void vir_error(virConnectPtr conn, const char *fn)) { > rb_raise(rb_eSystemCallError, "libvir call %s failed", fn); > } This is very strange since the NORETURN macro is defined by ruby-devel

[Libvir] [PATCH]: Make the iscsi backend work with updated iscsiadm tools

2008-03-26 Thread Chris Lalancette
All, Updated versions of the iscsi-initiator-utils changed the output structure from the "iscsiadm -m session -P 3" command, which is being used in storage_backend_iscsi.c to gather the scsi devices available in a pool and present them as volumes. Consequently, when starting an iSCSI pool on

[Libvir] building ruby bindings

2008-03-26 Thread Vadim Zaliva
Hi! I am trying to build Ruby bindings for libvirt 0.4.1. I have checked out ruby-libvirt from mercurial repository, but it fails during the build: # rake build (in /home/lord/tmp/ruby-libvirt) make gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux - I. -fPIC -O2 -g -pip

[Libvir] [PATCH 9/9] lxcError: mark a string and add to the list of nearly-checked functions

2008-03-26 Thread Jim Meyering
lxcError: mark a string and add to the list of nearly-checked functions * Makefile.maint (msg_gen_function): Add, but commented-out. * src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation. Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint |1 + src/lxc_conf.c |

[Libvir] [PATCH 8/9] testError: mark most string arguments for translation

2008-03-26 Thread Jim Meyering
testError: mark most string arguments for translation Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint |5 +++-- src/test.c | 30 +++--- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Makefile.maint b/Makefile.maint index 55a9

[Libvir] [PATCH 7/9] openvzLog: mark its string arguments for translation

2008-03-26 Thread Jim Meyering
openvzLog: mark its string arguments for translation Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint |2 +- src/openvz_conf.c | 35 ++- src/openvz_driver.c | 25 + 3 files changed, 36 insertions(+), 26 dele

[Libvir] [PATCH 6/9] error: mark most string arguments for translation

2008-03-26 Thread Jim Meyering
error: mark most string arguments for translation Also mark some arguments to __virRaiseError. Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint|4 +- po/POTFILES.in|2 + src/openvz_conf.c | 42 +++ src/openvz_driver.c | 31 +

[Libvir] [PATCH 5/9] Convert diagnostics like "VAR > MAX_VAR" to translatable messages.

2008-03-26 Thread Jim Meyering
Convert diagnostics like "VAR > MAX_VAR" to translatable messages. * src/remote_internal.c (errorf): New function. (remoteListDomains, remoteDomainPinVcpu, remoteDomainGetVcpus): (remoteListDefinedDomains, remoteListNetworks): (remoteListDefinedNetworks): Signed-off-by: Jim Meyering <[EMAIL PROTE

[Libvir] [PATCH 4/9] qemudReportError: mark for translation string args to this function

2008-03-26 Thread Jim Meyering
qemudReportError: mark for translation string args to this function Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint|2 +- src/qemu_conf.c | 248 + src/qemu_driver.c | 27 -- 3 files changed, 174 insertions(+)

[Libvir] [PATCH 3/9] ReportError: mark for translation string args to this function

2008-03-26 Thread Jim Meyering
ReportError: mark for translation string args to this function Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint |2 +- src/util.c | 21 +++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile.maint b/Makefile.maint index ff09660

[Libvir] [PATCH 2/9] xenXMError: mark for translation string args to this function

2008-03-26 Thread Jim Meyering
xenXMError: mark for translation string args to this function Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> --- Makefile.maint|2 +- src/xm_internal.c | 81 +--- 2 files changed, 52 insertions(+), 31 deletions(-) diff --git a/Makefile.

[Libvir] 0/9: mark error messages as translatable

2008-03-26 Thread Jim Meyering
Daniel Veillard <[EMAIL PROTECTED]> wrote: > On Mon, Mar 24, 2008 at 12:26:51PM +0100, Jim Meyering wrote: >> Daniel Veillard <[EMAIL PROTECTED]> wrote: >> > On Sun, Mar 23, 2008 at 07:50:24PM +0100, Guido Günther wrote: >> >> This patch marks the error messages in qemu_driver.c as translatable, >>

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Pau Garcia i Quiles
Quoting Guido Günther <[EMAIL PROTECTED]>: On Wed, Mar 26, 2008 at 02:23:05PM +, Richard W.M. Jones wrote: Currently (libvirt 0.4.0-6) the logic is: There's a 0.4.1 package in exprimental but the autobuilder didn't pick it up yet so it's only available on ppc: http://packages.debian.org/

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Felix Krohn
Hallo Guido, Guido Günther wrote: The version on backports.org doesn't even have xen support enabled due to the missing libxen in Debian Lenny and Etch at that point - I tried to make that obvous from the changelog but obviously failed. D'oh! Or I didn't read it... There's now a libxenstore

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Guido Günther
On Wed, Mar 26, 2008 at 02:23:05PM +, Richard W.M. Jones wrote: > Currently (libvirt 0.4.0-6) the logic is: There's a 0.4.1 package in exprimental but the autobuilder didn't pick it up yet so it's only available on ppc: http://packages.debian.org/experimental/libvirt-bin I'll move that one

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Guido Günther
Hi Felix, On Wed, Mar 26, 2008 at 02:52:14PM +0100, Felix Krohn wrote: > Since I was using the version from etch-backports > (http://packages.qa.debian.org/libv/libvirt.html) I don't think so. The version on backports.org doesn't even have xen support enabled due to the missing libxen in Debian Len

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Richard W.M. Jones
On Wed, Mar 26, 2008 at 02:52:14PM +0100, Felix Krohn wrote: > Since I was using the version from etch-backports > (http://packages.qa.debian.org/libv/libvirt.html) I don't think so. libvirt was compiled without Xen in Debian for some time because the requisite Xen headers were missing. However t

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Felix Krohn
Hi, Richard W.M. Jones wrote: libvir: error : could not connect to xen:/// error: failed to connect to the hypervisor Really strange. Is xen configured as a backend (ie. ./configure --without-xen or something like that?) Since I was using the version from etch-backports (http://packages.qa.

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Daniel P. Berrange
On Wed, Mar 26, 2008 at 01:02:00PM +, Richard W.M. Jones wrote: > On Tue, Mar 25, 2008 at 01:00:27PM +0100, Felix Krohn wrote: > > I can't find the reason for the following error: > > > > # virsh > > libvir: error : could not connect to xen:/// > > error: failed to connect to the hypervisor > [

Re: [Libvir] [PATCH] Fix Xen-3.2 hypercalls

2008-03-26 Thread Daniel Veillard
On Thu, Feb 28, 2008 at 06:22:35AM -0500, Daniel Veillard wrote: > While testing against Xen-3.2 I found out that the Xen hypercalls > failed, this patches fixes it by checking the newer sysctl versions > when initializing the driver. I also merged the associated debugging > with the DEBUG from l

Re: [Libvir] suspended domains

2008-03-26 Thread Richard W.M. Jones
On Wed, Mar 26, 2008 at 12:58:57PM +, Richard W.M. Jones wrote: > On Fri, Mar 21, 2008 at 10:10:53AM -0700, Vadim Zaliva wrote: > > On Mar 21, 2008, at 10:00, Dan Smith wrote: > >> This is a known issue with Xen 3.2 and paused domains, but I thought > >> it was fixed by this patch: > >> > >> h

Re: [Libvir] error : could not connect to xen:///; error: failed to connect to the hypervisor

2008-03-26 Thread Richard W.M. Jones
On Tue, Mar 25, 2008 at 01:00:27PM +0100, Felix Krohn wrote: > I can't find the reason for the following error: > > # virsh > libvir: error : could not connect to xen:/// > error: failed to connect to the hypervisor [...] > Output from `strace -s 1024 -f virsh list --all` is here: > http://krohnjob

Re: [Libvir] suspended domains

2008-03-26 Thread Richard W.M. Jones
On Fri, Mar 21, 2008 at 10:10:53AM -0700, Vadim Zaliva wrote: > On Mar 21, 2008, at 10:00, Dan Smith wrote: >> This is a known issue with Xen 3.2 and paused domains, but I thought >> it was fixed by this patch: >> >> https://www.redhat.com/archives/libvir-list/2008-February/msg00413.html >> >> Loo

Re: [Libvir] [PATCH] Typo in latest cvs lt.po

2008-03-26 Thread Richard W.M. Jones
On Tue, Mar 25, 2008 at 01:20:44PM -0400, Beth Kon wrote: > #: src/test.c:780 > -mseid "node memory" > +msgid "node memory" > msgstr "node memory" Thanks, applied. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtu