Re: [libvirt] [PATCH] introducing source name (for logical storage pools)

2008-09-03 Thread Daniel Veillard
On Tue, Sep 02, 2008 at 11:59:35AM -0400, David Lively wrote: On Tue, 2008-09-02 at 17:54 +0200, Jim Meyering wrote: Daniel Veillard [EMAIL PROTECTED] wrote: diff --git a/src/storage_conf.c b/src/storage_conf.c index 2f6093b..37a2040 100644 --- a/src/storage_conf.c +++

Re: [libvirt] Java bindings

2008-09-03 Thread Daniel Veillard
On Tue, Sep 02, 2008 at 04:39:03PM +0200, Alejandro Berna Juan wrote: Hi Daniel, all, I'm sorry for my non show during the summer but I was in my long holidays ;) No problem, I'm french I know what real summer vacations means :-) I will have the libvirt project for Eclipse with the

Re: [libvirt] Live migration sanity checks

2008-09-03 Thread Daniel P. Berrange
On Wed, Sep 03, 2008 at 09:22:50AM -0400, Konrad Rzeszutek wrote: On Wed, Sep 03, 2008 at 01:53:44PM +0100, Daniel P. Berrange wrote: On Wed, Sep 03, 2008 at 08:43:44AM -0400, Konrad Rzeszutek wrote: amount of host 'setup'. If a guest is using iSCSI as its storage, then there is a step

Re: [libvirt] [PATCH] Attempt to detect cdrom change failures

2008-09-03 Thread Cole Robinson
Cole Robinson wrote: If a 'change' or 'eject' qemu monitor command fails, an error message is printed to the monitor of the form device {not found, is locked, is not removable}. This is really the only indication we have that the command errored out, so scrape the monitor reply for \ndevice

[libvirt] [PATCH] virConnectListAllDomains (version 3, still no Xen)

2008-09-03 Thread Richard W.M. Jones
This is a third version of the virConnectListAllDomains patch. The API is now slightly different from previous proposals. We only allow filtering on All/Active/Inactive, and not by a long list of fine-grained states. The reason is twofold: (1) a simpler implementation and (2) doubtful that

[libvirt] [PATCH] Two safer versions of virDomainGetID

2008-09-03 Thread Richard W.M. Jones
Two alternative versions of a safer virDomainGetID call in followups to this message. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 64 OCaml packages (the OPEN alternative

[libvirt] [PATCH alternative 1/2] virDomainGetID2

2008-09-03 Thread Richard W.M. Jones
This adds virDomainGetID2 which uses a pointer to int parameter, allowing the -1 (non-running) domain ID to be returned safely. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside

[libvirt] [PATCH alternative 2/2] Change contract of virDomainGetID to make it safer

2008-09-03 Thread Richard W.M. Jones
This changes the contract of the existing virDomainGetID call so that it is guaranteed to return the ID provided that the @domain parameter is not NULL or corrupted. This should be compatible with all preceeding versions of libvirt, since all they have ever done is to check the @domain parameter

Re: [libvirt] PATCH: Add a augeas lens for libvirtd.conf

2008-09-03 Thread Daniel Veillard
On Wed, Aug 27, 2008 at 12:04:17PM +0100, Richard W.M. Jones wrote: On Tue, Aug 26, 2008 at 09:05:37PM +0100, Daniel P. Berrange wrote: Augeas is a awesome config file manipulation tool. libvirtd has a config file. libvirtd meet augeas; augeas meet libvirt. Now instead of telling people

Re: [libvirt] Libvirtd needs to be always running/

2008-09-03 Thread Atsushi SAKAI
Hi, Yao You should differenciate Qemu and Xen(zen). For QEMU, libvirtd need to run always. For Xen, it does not requrired to run for local machine. and required to run for remote machine. Thanks Atsushi SAKAI Yushu Yao [EMAIL PROTECTED] wrote: Hi All, A newbie question:

Re: [libvirt] Libvirtd needs to be always running/

2008-09-03 Thread Yushu Yao
Thanks Atsushi and Stefan, It seems that libvirtd has to run with root, is this true? But why does libvirtd need to run for QEMU? If it's for start/stop/pause vm, is Qemu's command line tool not enough? Thanks! -Yushu On 9/3/08 6:08 PM, Stefan de Konink [EMAIL PROTECTED] wrote: -BEGIN

Re: [libvirt] Libvirtd needs to be always running/

2008-09-03 Thread Atsushi SAKAI
Yushu Yao [EMAIL PROTECTED] wrote: Thanks Atsushi and Stefan, It seems that libvirtd has to run with root, is this true? Yes But why does libvirtd need to run for QEMU? If it's for start/stop/pause vm, is Qemu's command line tool not enough? Please see follows

Re: [libvirt] [PATCH] xen: fix domain lookup after define

2008-09-03 Thread Daniel Veillard
On Thu, Aug 28, 2008 at 10:19:01AM +0100, Daniel P. Berrange wrote: On Wed, Aug 27, 2008 at 08:57:24PM -0400, Cole Robinson wrote: Defining a xen domain will succeed, but report error because we weren't properly passing the domain's name to the post-define lookup. ACK, this was a mistake

[libvirt] [PATCH] Fix signedness bug in src/qemu_driver.c

2008-09-03 Thread James Morris
Fix a signedness bug in src/qemu_driver.c, qemuCmdFlags needs to be unsigned int. Signed-off-by: James Morris [EMAIL PROTECTED] --- src/qemu_driver.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 59faf94..72c2d81 100644 ---

Re: [libvirt] [PATCH] Fix vnc port determining for xend

2008-09-03 Thread Daniel Veillard
On Thu, Aug 28, 2008 at 04:48:06PM -0400, Cole Robinson wrote: Current libvirt checks xenstore for a xen guests fixed vnc port on xend 3.0.3. At least on f8 though, hvm guests don't store the vnc port in xenstore, it is stored in the sexpr. Patch fixes the logic to look in the sexpr if

Re: [libvirt] LXC: making the private root filesystem more secure

2008-09-03 Thread Daniel Veillard
On Thu, Aug 28, 2008 at 11:56:58PM +0100, Daniel P. Berrange wrote: When I wrote the private root filesystem stuff for LXC (which I just committed) I noted that we couldn't actually make this secure, because someone inside the chroot can just 'mknod' and access the host devices. What I