Re: [libvirt] compiling one driver

2009-08-06 Thread Chris Lalancette
Henrique TeĆ³filo wrote: Hello, I'm having problems to compile libvirt with opennebula driver. I executed: ./autogen.sh --with-one and got the following message: configure: error: You must install XMLRPC-C = 1.14.0 to compile libvirt ONE driver You have to install the xmlrpc-c

Re: [libvirt] compiling one driver

2009-08-06 Thread Daniel Veillard
On Thu, Aug 06, 2009 at 10:37:57AM +0200, Matthias Bolte wrote: Well, the basic problem seems to be that xmlrpc-c by itself doesn't provide a .pc file for pkg-config, but has its own script for this task called xmlrpc-c-config: xmlrpc-c-config client --cflags xmlrpc-c-config client --libs

Re: [libvirt] [PATCH] Support the usage of socat instead of netcat

2009-08-06 Thread Daniel P. Berrange
On Wed, Aug 05, 2009 at 12:58:33PM +0200, Jonas Eriksson wrote: Some netcat implementations does not support unix domain sockets (-U). Distros that ship these implementations often also ships socat, that do support this. This is a reworked patch based on the openSUSE libvirt package. The

Re: [libvirt] running with UID != 0: internal error about bridged network

2009-08-06 Thread Daniel P. Berrange
On Wed, Aug 05, 2009 at 02:51:14PM +0200, Harald Dunkel wrote: Hi folks, I would like to avoid running the virtual hosts with UID=0. But if I try to create a new virtual machine without being root, then it fails with % name=Lenny_amd64 % kvmdir=/local/kvm % mkdir -p $kvmdir/$name %

Re: [libvirt] VMware ESX 2/3: Fix memleak if esxOpen fails

2009-08-06 Thread Daniel P. Berrange
On Wed, Aug 05, 2009 at 03:23:14PM +0200, Matthias Bolte wrote: Subject says it all. Matthias diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 8b8575c..49fdf00 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -298,6 +298,7 @@ esxOpen(virConnectPtr conn,

Re: [libvirt] VMware ESX 3/3: Cleanup varaible naming

2009-08-06 Thread Daniel P. Berrange
On Wed, Aug 05, 2009 at 03:23:28PM +0200, Matthias Bolte wrote: Subject says it all. No functional change included. diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 49fdf00..0225e9a 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -56,11 +56,11 @@ static int

Re: [Fwd: Re: [libvirt] Release of libvirt-0.7.0]

2009-08-06 Thread Daniel P. Berrange
On Wed, Aug 05, 2009 at 07:21:46PM -0400, Robert L Cochran wrote: Ooops! I sent this to Dan when I meant to send it to the list. To be a bit repetitive...how do I get this for Fedora 11 -- and all of its dependencies? Join the Fedora virt mailing list - Mark will post an announcement when

Re: [libvirt] libvirt-0.3.3-14.el5 (redhat rpm) vs libvirt-0.6.5 (source)

2009-08-06 Thread Daniel P. Berrange
On Mon, Aug 03, 2009 at 05:14:27PM +0200, Jim Bergensen wrote: Hello everyone, I am looking to write a simple php interface to create, stop, start, restart, configure, backup, transfer VM's across a network of servers. Storage is done locally on the particular node (lvm), but I am

Re: [libvirt] [PATCH 1/5] Tighten libvirt's parsing of logging environment variables

2009-08-06 Thread Daniel P. Berrange
On Fri, Jul 31, 2009 at 05:57:25PM -0400, Amy Griffis wrote: Don't convert high priority levels to the debug level. Don't parse LIBVIRT_LOG_FILTERS and LIBVIRT_LOG_OUTPUTS when they're set to the empty string. Warn when the user specifies an invalid value (empty string remains a noop). ---

Re: [libvirt] [PATCH 2/5] Several fixes to libvirtd's log setup

2009-08-06 Thread Daniel P. Berrange
On Fri, Jul 31, 2009 at 05:57:31PM -0400, Amy Griffis wrote: Similar as for general libvirt, don't convert high priority levels to debug level. Ignore LIBVIRT_LOG_FILTERS and LIBVIRT_LOG_OUTPUTS when they're set to the empty string, otherwise they can override a valid setting from the config

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Daniel P. Berrange
On Fri, Jul 31, 2009 at 05:57:48PM -0400, Amy Griffis wrote: Try to include a little more description about the corner cases, things someone might get hung up on on. --- docs/logging.html.in | 22 -- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git

Re: [libvirt] virt-manager

2009-08-06 Thread Daniel P. Berrange
On Sat, Aug 01, 2009 at 12:13:42PM -0400, Michael Zeller wrote: okay so using virt-manager it only lists my root partition as storage, or atleast thats what it appears So it says I can only make a vm the size of 9G when my home partition has 800+G is there a way to change that? You'll

Re: [libvirt] error: failed to connect to the hypervisor

2009-08-06 Thread Daniel P. Berrange
On Mon, Aug 03, 2009 at 08:56:48AM +0200, Dominik Klein wrote: Hi I am running kvm-78 with libvirt 0.6.1 and see the following error from time to time when my linux-ha cluster tries to run virsh domstate to figure out a virtual machine's state: error: failed to connect to the hypervisor

Re: [libvirt] Is it possible to use more then 2 CPUs in the guest?

2009-08-06 Thread Daniel P. Berrange
On Thu, Aug 06, 2009 at 12:59:19PM +0100, Tom Hughes wrote: On 06/08/09 12:36, Daniel P. Berrange wrote: On Wed, Aug 05, 2009 at 10:11:07AM +0200, Mirko Raasch wrote: in my server i use an Intel Quad Core CPU and i want to use in one WindowsXP guest all 4 cores. The device manager shows

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Mark McLoughlin
On Fri, 2009-07-31 at 17:57 -0400, Amy Griffis wrote: +pLibvirtd does not reload its logging configuration when issued a SIGHUP. + If you want to reload the configuration, you must do a codeservice + libvirtd reload/code or manually stop and restart the daemon +

Re: [libvirt] [PATCH] Support the usage of socat instead of netcat

2009-08-06 Thread Daniel Veillard
On Thu, Aug 06, 2009 at 12:39:34PM +0100, Daniel P. Berrange wrote: On Wed, Aug 05, 2009 at 12:58:33PM +0200, Jonas Eriksson wrote: * src/remote_internal.c: Honour USE_SOCAT by selecting between netcat/nc and socat at compile time. Changing the binary used at compile time is really not a

[libvirt] PATCH: Support PolicyKit 1.0

2009-08-06 Thread Daniel P. Berrange
In the seriously annoying way of things, the newest PolicyKit in Fedora 12 has been completely re-written from scratch with a totally incompatible application facing API. Conceptually it is still pretty similar though, with the exception that client applications no longer need to explicitly

Re: [libvirt] VMware ESX 3/3: Cleanup varaible naming

2009-08-06 Thread Daniel Veillard
On Wed, Aug 05, 2009 at 03:23:28PM +0200, Matthias Bolte wrote: Subject says it all. No functional change included. Okay, applied along with the 2 previous fixes, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com |

Re: [libvirt] [PATCH 1/5] Tighten libvirt's parsing of logging environment variables

2009-08-06 Thread Daniel Veillard
On Fri, Jul 31, 2009 at 05:57:25PM -0400, Amy Griffis wrote: Don't convert high priority levels to the debug level. Don't parse LIBVIRT_LOG_FILTERS and LIBVIRT_LOG_OUTPUTS when they're set to the empty string. Warn when the user specifies an invalid value (empty string remains a noop). [...]

Re: [libvirt] [PATCH 2/5] Several fixes to libvirtd's log setup

2009-08-06 Thread Daniel Veillard
On Fri, Jul 31, 2009 at 05:57:31PM -0400, Amy Griffis wrote: Similar as for general libvirt, don't convert high priority levels to debug level. Ignore LIBVIRT_LOG_FILTERS and LIBVIRT_LOG_OUTPUTS when they're set to the empty string, otherwise they can override a valid setting from the config

Re: [libvirt] [PATCH 3/5] Cleanup VIR_LOG_DEBUG parsing in eventtest

2009-08-06 Thread Daniel Veillard
On Fri, Jul 31, 2009 at 05:57:37PM -0400, Amy Griffis wrote: Don't covert high priority levels to debug level. Consider an invalid priority level setting a setup failure. Okay, good to unify it there too, applied, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit

Re: [libvirt] [PATCH 4/5] Consolidate code for parsing the logging environment variables

2009-08-06 Thread Daniel Veillard
On Fri, Jul 31, 2009 at 05:57:42PM -0400, Amy Griffis wrote: Add two new functions to the internal API, virLogParseDefaultPriority() and virLogSetFromEnv(), as was suggested earlier by Cole Robinson. Nice cleanup and good comment about the order ! Applied, thanks ! Daniel -- Daniel

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Amy Griffis
Mark McLoughlin wrote: [Thu Aug 06 2009, 08:25:06AM EDT] On Fri, 2009-07-31 at 17:57 -0400, Amy Griffis wrote: +pLibvirtd does not reload its logging configuration when issued a SIGHUP. + If you want to reload the configuration, you must do a codeservice + libvirtd

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Daniel Veillard
On Fri, Jul 31, 2009 at 05:57:48PM -0400, Amy Griffis wrote: Try to include a little more description about the corner cases, things someone might get hung up on on. Excellent, but as Mark pointed out, it's 'service libvirtd restart', modified accordingly, applied. thanks a lot ! Daniel

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Daniel P. Berrange
On Thu, Aug 06, 2009 at 09:59:56AM -0400, Amy Griffis wrote: Mark McLoughlin wrote: [Thu Aug 06 2009, 08:25:06AM EDT] On Fri, 2009-07-31 at 17:57 -0400, Amy Griffis wrote: +pLibvirtd does not reload its logging configuration when issued a SIGHUP. + If you want to reload the

[libvirt] [PATCH] Set perms on /var/lib/libvirt/boot to 0711

2009-08-06 Thread Mark McLoughlin
Allow qemu user to open kernel/initrds in this dir, but still prevent others from listing it. * libvirt.spec.in: set /var/lib/libvirt/boot perms to 0711 --- libvirt.spec.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index

[libvirt] [PATCH] chown kernel/initrd before spawning qemu

2009-08-06 Thread Mark McLoughlin
If we're running qemu unprivileged, we need to chown any supplied kernel or initrd before spawning it. * src/qemu_driver.c: rename qemuDomainSetDiskOwnership() to qemuDomainSetFileOwnership(), pass it a path string instead of a disk definition and use it for chowning the kernel/initrd in

Re: [libvirt] [PATCH] Set perms on /var/lib/libvirt/boot to 0711

2009-08-06 Thread Daniel P. Berrange
On Thu, Aug 06, 2009 at 03:48:45PM +0100, Mark McLoughlin wrote: Allow qemu user to open kernel/initrds in this dir, but still prevent others from listing it. * libvirt.spec.in: set /var/lib/libvirt/boot perms to 0711 ACK --- libvirt.spec.in |2 +- 1 files changed, 1 insertions(+),

Re: [libvirt] [PATCH] chown kernel/initrd before spawning qemu

2009-08-06 Thread Daniel P. Berrange
On Thu, Aug 06, 2009 at 03:48:44PM +0100, Mark McLoughlin wrote: If we're running qemu unprivileged, we need to chown any supplied kernel or initrd before spawning it. * src/qemu_driver.c: rename qemuDomainSetDiskOwnership() to qemuDomainSetFileOwnership(), pass it a path string instead of

Re: [libvirt] [PATCH 01/20] Secret manipulation step 1: Public API

2009-08-06 Thread Daniel P. Berrange
On Tue, Aug 04, 2009 at 10:28:16PM +0200, Miloslav Trma?? wrote: This patch adds a secret as a separately managed object, using a special-purpose API to transfer the secret values between nodes and libvirt users. Rather than add explicit accessors for attributes of secrets, and hard-code

Re: [libvirt] [PATCH 5/5] Update logging documentation

2009-08-06 Thread Amy Griffis
Daniel P. Berrange wrote: [Thu Aug 06 2009, 10:07:26AM EDT] I guess that should be service libvirtd restart ? (i.e. all reload does is issue a SIGHUP) Oh, I forgot I was looking at debian. :-) Their start script for libvirtd actually does a restart under the reload. Generalizing

Re: [libvirt] Is it possible to use more then 2 CPUs in the guest?

2009-08-06 Thread Gerrit Slomma
Daniel P. Berrange schrieb: On Thu, Aug 06, 2009 at 12:59:19PM +0100, Tom Hughes wrote: On 06/08/09 12:36, Daniel P. Berrange wrote: On Wed, Aug 05, 2009 at 10:11:07AM +0200, Mirko Raasch wrote: in my server i use an Intel Quad Core CPU and i want to use in one WindowsXP guest

Re: [libvirt] Is it possible to use more then 2 CPUs in the guest?

2009-08-06 Thread Daniel P. Berrange
On Thu, Aug 06, 2009 at 05:53:01PM +0200, Gerrit Slomma wrote: I could test what is detected by windows if i choose another cpu-model than qemu when invoking kvm. Couldn't it made possible to choose the cpu-model via libvirt? We do have an RFE to choose the CPU model in libvirt, but that

Re: [libvirt] [PATCH 11/20] Add volume encryption information handling.

2009-08-06 Thread Daniel P. Berrange
On Tue, Aug 04, 2009 at 10:28:26PM +0200, Miloslav Trma?? wrote: Define an encryption tag specifying volume encryption format and format-depenedent parameters (e.g. passphrase, cipher name, key length, key). Currently the only defined parameter is a reference to a secret (passphrase/key)

Re: [libvirt] [PATCH 12/20] Attach encryption information to virStorageVolDef.

2009-08-06 Thread Daniel P. Berrange
On Tue, Aug 04, 2009 at 10:28:27PM +0200, Miloslav Trma?? wrote: The XML allows encryption format='unencrypted'/, this implementation canonicalizes the internal representation so that vol-encryption is non-NULL iff the volume is encrypted. Note that partial encryption information (e.g.

Re: [libvirt] Is it possible to use more then 2 CPUs in the guest?

2009-08-06 Thread Mirko Raasch
Daniel P. Berrange schrieb: On Thu, Aug 06, 2009 at 05:53:01PM +0200, Gerrit Slomma wrote: I could test what is detected by windows if i choose another cpu-model than qemu when invoking kvm. Couldn't it made possible to choose the cpu-model via libvirt? We do have an RFE to choose