Re: [Libvir] big-endian support for libvirt - introduce GUEST_HANDLE infrastructure ?

2007-07-12 Thread Christian Ehrhardt
Hollis Blanchard wrote: On Wed, 2007-07-11 at 15:48 +0200, Christian Ehrhardt wrote: thanks a lot ! Does this fix all the libvirt proper platform issues (i.e. independantly of possible xen specific ones) ? Yes it fixes them as far as they are currently known to me. As I wrote

Re: [Libvir] [PATCH] Add the check of the device source

2007-07-12 Thread Masayuki Sunou
Hi Dan Thank you for a reviewing. I understand your suggestion. - Libvirt should not check the device source path. - The device source path should be checked by the Xen hotplug scripts. I consider a fixing of Xen. Thefore, I decline applying this patch. Thanks, Masayuki Sunou. In message

Re: [Libvir] PATCH: Force close of virConnectPtr if client quits abnormally

2007-07-12 Thread Richard W.M. Jones
Daniel P. Berrange wrote: If a remote client quits abnormally (or if the server forcably drops a client for misbehaviing), it is possible that the virConnectPtr object is not closed. This leads to a build up of active connections in the server. The attached patch simply calls virConnectClose

Re: [Libvir] PATCH: Report errors against virConnectPtr object

2007-07-12 Thread Richard W.M. Jones
Daniel P. Berrange wrote: The QEMU driver is not passing in a virConnectPtr object for many of the places it calls virRaiseError. This means the errors aren't getting fed back to the client correctly - particularly when starting a VM / network. This patch passes around a virConnectPtr object

Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Richard W.M. Jones
Daniel P. Berrange wrote: On the server end if you try to start the server with TLS enabled and you don't have the certs setup, you get a cryptic: gnutls_certificate_set_x509_trust_file: Error while reading file. Rather useless the gnutls error message not telling you what file was missing.

Re: [Libvir] xen long-list s-expression

2007-07-12 Thread Richard W.M. Jones
Daniel P. Berrange wrote: On Mon, Jul 09, 2007 at 04:12:26PM -0600, Daniel Miles wrote: Hello everone, does anybody know if libvirt has any way of getting the full s-expression that xm list --long domID produces? Nope, the SEXPR is a Xen specific format. For configuration options that we

Re: [Libvir] big-endian support for libvirt - introduce GUEST_HANDLE infrastructure ?

2007-07-12 Thread Daniel Veillard
On Wed, Jul 11, 2007 at 08:50:23AM -0400, Daniel Veillard wrote: On Wed, Jul 11, 2007 at 02:11:38PM +0200, Christian Ehrhardt wrote: Without introducing all the guest handle infrastructure and by just fixing the known xen_v2s3_getdomaininfolistop and xen_v2d5_cpumap the patch became as

[Libvir] Starting a domain

2007-07-12 Thread Shuveb Hussain
Hi, suspend() - resume() save() - restore() shutdown() - ??? Which method should I map in the OpenVZ driver that starts a domain that has been shutdown. Does the 'reboot' method do the job here as well? Thanks Regards, -- Shuveb Hussain Unix is very user friendly. It is just a little choosy

Re: [Libvir] Starting a domain

2007-07-12 Thread Daniel Veillard
On Thu, Jul 12, 2007 at 02:28:16PM +0530, Shuveb Hussain wrote: Hi, suspend() - resume() save() - restore() shutdown() - ??? Which method should I map in the OpenVZ driver that starts a domain that has been shutdown. Does the 'reboot' method do the job here as well? Assuming you can

[Libvir] Xen reboot does not work with Sys::Virt perl binding

2007-07-12 Thread Keck, Christian (ext)
Hello guys! I am using the perl bindings (Sys::Virt) to manage my virtual xen hosts. Because it directly maps the C api, I thought it's a good idea to ask you instead of the author of this module. Xen version is 3.0 with libvirt 0.1.9 on a red hat box. while calling the reboot method i get

Re: [Libvir] Next features and target for development

2007-07-12 Thread Kazuki Mizushima
Yes, that is an intesting thing to look at. The next python-virtinst release will have support for cloning VMs - this just does a 'deep' copy of all the disks creates a new VM config for the copy. It would be interesting to be able to clone to a different HV target, as well as being able to

Re: [Libvir] Xen reboot does not work with Sys::Virt perl binding

2007-07-12 Thread Daniel P. Berrange
On Thu, Jul 12, 2007 at 01:46:51PM +0200, Keck, Christian (ext) wrote: Hello guys! I am using the perl bindings (Sys::Virt) to manage my virtual xen hosts. Because it directly maps the C api, I thought it's a good idea to ask you instead of the author of this module. Xen version is 3.0

Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Daniel P. Berrange
On Wed, Jul 11, 2007 at 04:10:10PM -0400, Daniel Veillard wrote: On Wed, Jul 11, 2007 at 08:51:26PM +0100, Daniel P. Berrange wrote: On the server end if you try to start the server with TLS enabled and you don't have the certs setup, you get a cryptic:

Re: [Libvir] PATCH: More useful error messages with missing certs

2007-07-12 Thread Daniel Veillard
On Thu, Jul 12, 2007 at 03:59:57PM +0100, Daniel P. Berrange wrote: On Wed, Jul 11, 2007 at 04:10:10PM -0400, Daniel Veillard wrote: +#define CHECK_CERT(type, file) \ +do { if (stat(file, sb) 0) { \ +qemudLog (QEMUD_ERR, Cannot

Re: [Libvir] PATCH: Fix crash if client acl check fails

2007-07-12 Thread Daniel P. Berrange
On Wed, Jul 11, 2007 at 04:04:42PM -0400, Daniel Veillard wrote: On Wed, Jul 11, 2007 at 08:46:00PM +0100, Daniel P. Berrange wrote: There was a couple of places where if the ACL check for an incoming client failed, it would go on and register the client's FD in the event loop anyway. The

Re: [Libvir] PATCH: Report errors against virConnectPtr object

2007-07-12 Thread Daniel P. Berrange
On Wed, Jul 11, 2007 at 04:19:13PM -0400, Daniel Veillard wrote: On Wed, Jul 11, 2007 at 08:55:35PM +0100, Daniel P. Berrange wrote: The QEMU driver is not passing in a virConnectPtr object for many of the places it calls virRaiseError. This means the errors aren't getting fed back to the

[Libvir] [PATCH] Add the check of the format of MAC address on virsh attach-interface

2007-07-12 Thread Masayuki Sunou
Hi Even if specified MAC address is invalid, network interface is attached to the guest. And attached network interface cannot communicate. This patch checks the format of MAC address, and virsh become error when it is invalid. Signed-off-by: Masayuki Sunou [EMAIL PROTECTED] Thanks, Masayuki

[Libvir] [PATCH] Fix strange message on virsh attach-device

2007-07-12 Thread Masayuki Sunou
Hi Virsh attach-device outputs a strange message, when XML whose top element is not device or interface. -- libvir: Xen Daemon error : POST operation failed: (xend.err object of type 'NoneType' has no len()) error: Failed to