Re: [Libvir] [PATCH] typo

2008-01-24 Thread Richard W.M. Jones
Atsushi SAKAI wrote: Hi, I finally succeed for building libvirt on windows(MinGW/MSYS). Thank you for coopration. During that work I found several typo in libvirt document. Thanks, applied. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat

Re: [Libvir] [PATCH] typo

2008-01-24 Thread Richard W.M. Jones
Atsushi SAKAI wrote: I finally succeed for building libvirt on windows(MinGW/MSYS). So you built it, but did it work? A couple of basic tests you can do to check: (1) virsh.exe -c test:///default list (should list the test domain) (2) virsh.exe -c xen+tcp://somehost/ list Assuming that

Re: [Libvir] Libvirt on windows

2008-01-24 Thread Richard W.M. Jones
Gabriel Kaufmann wrote: In file included from remote_internal.c:73: ../qemud/remote_protocol.h:1218:2: error: #endif without #if remote_internal.c: In function 'remoteDomainGetMaxMemory': remote_internal.c:1581: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'

Re: [Libvir] Libvirt on windows

2008-01-24 Thread Richard W.M. Jones
There's a couple of odd things about this. Firstly: In file included from ../gnulib/lib/sys/stat.h:28, from remote_internal.c:36: ../gnulib/lib/sys/stat.h: In function 'rpl_mkdir': ../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode' In file included from

RE: [Libvir] Libvirt on windows

2008-01-24 Thread Gabriel Kaufmann
Hi, Thank for you reply. I'm using the libvirt-0.4.0.tar.gz from http://libvirt.org/sources/ and didn't take the sources from CVS Maybe that is my problem. I'll try using the sources from CVS. Which patches do I have to run on the CVS sources? By the way, in libvirt-0.4.0.tar.gz directory

Re: [Libvir] Libvirt on windows

2008-01-24 Thread Daniel Veillard
On Thu, Jan 24, 2008 at 03:18:53PM +0200, Gabriel Kaufmann wrote: Hi, Thank for you reply. I'm using the libvirt-0.4.0.tar.gz from http://libvirt.org/sources/ and didn't take the sources from CVS Maybe that is my problem. I'll try using the sources from CVS. Even simpler, grab the

[Libvir] [PATCH] fix to allow usage of flags when saving XML

2008-01-24 Thread Daniel Veillard
As pointed by Jay Gagnon on IRC, virDomainGetXMLDesc() was failing if the flags value was non-NULL, and looking at the source we still had a check there to fail if flags is non-zero (and we define 2 flags in virDomainXMLFlags, so this is clearly broken), Daniel -- Red Hat Virtualization group

Re: [Libvir] [PATCH] fix to allow usage of flags when saving XML

2008-01-24 Thread Richard W.M. Jones
Daniel Veillard wrote: As pointed by Jay Gagnon on IRC, virDomainGetXMLDesc() was failing if the flags value was non-NULL, and looking at the source we still had a check there to fail if flags is non-zero (and we define 2 flags in virDomainXMLFlags, so this is clearly broken), +1 for the

Re: [Libvir] [PATCH] fix to allow usage of flags when saving XML

2008-01-24 Thread Daniel P. Berrange
On Thu, Jan 24, 2008 at 03:35:43PM +, Richard W.M. Jones wrote: Daniel Veillard wrote: As pointed by Jay Gagnon on IRC, virDomainGetXMLDesc() was failing if the flags value was non-NULL, and looking at the source we still had a check there to fail if flags is non-zero (and we define 2

Re: [Libvir] [PATCH] fix to allow usage of flags when saving XML

2008-01-24 Thread Daniel Veillard
On Thu, Jan 24, 2008 at 03:35:43PM +, Richard W.M. Jones wrote: Daniel Veillard wrote: As pointed by Jay Gagnon on IRC, virDomainGetXMLDesc() was failing if the flags value was non-NULL, and looking at the source we still had a check there to fail if flags is non-zero (and we define 2

[Libvir] A sample program to create a Linux Container

2008-01-24 Thread Dave Leskovec
Attached is a simple program that uses the clone() function to create a container. This is not intended as a patch - just an example of what creating a Linux Container looks like. Something along these lines will be used by the Linux Container driver to start the domain. The code run within

Re: [Libvir] A sample program to create a Linux Container

2008-01-24 Thread Daniel P. Berrange
On Thu, Jan 24, 2008 at 04:06:17PM -0800, Dave Leskovec wrote: Attached is a simple program that uses the clone() function to create a container. This is not intended as a patch - just an example of what creating a Linux Container looks like. Something along these lines will be used by