Re: [libvirt] [BUG] connection to vbox 3.1 fails

2009-12-07 Thread Florian Vichot
There are some IID mismatches regarding version 3.1. Could you test the attached patch? I replaced vbox_CAPI_v3_1.h with the version from the VirtualBox 3.1 SDK and this fixes the problem for me. Matthias Patch tested, works fine. Thanks Matthias. Florian -- Libvir-list mailing list

[libvirt] [BUG] connection to vbox 3.1 fails

2009-12-04 Thread Florian Vichot
Hello all, As confirmed on IRC by Matthias, when trying to open a connection of any sort (vbox:///session or vbox:///system) to the vbox driver with a VirtualBox 3.1 installed, the connection fails with: internal error nsIEventQueue object is null This is printed by line 726 in vbox_tmpl.c.

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Florian VICHOT
def virEventUpdateTimerImpl(timerID, interval): global eventLopo Small typo here: eventLopo instead of eventLoop. Florian -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] in vbox driver, interface type bridge should really be type ethernet

2009-10-08 Thread Florian Vichot
So back to your original question - is the current VirtualBox bridge impl 'correct'. If it is doing ethernet layer bridging, then I think there is a strong argument that it is reasonably compliant. If there is a way todo bridging with VirtualBox + a bridge + TAP device (or equivalent),

Re: [libvirt] [PATCH] in vbox driver, interface type bridge should really be type ethernet

2009-10-06 Thread Florian Vichot
Could we get some arbitration by the powers-that-be ? :) Thanks, Florian Florian Vichot a écrit : Hey Pritesh, If you check http://libvirt.org/formatdomain.html#elementsNICS then it is not much clear if the type bridged is more suitable or ethernet cause the bridged section says

Re: [libvirt] [PATCH] in vbox driver, interface type bridge should really be type ethernet

2009-10-02 Thread Florian Vichot
Hey Pritesh, If you check http://libvirt.org/formatdomain.html#elementsNICS then it is not much clear if the type bridged is more suitable or ethernet cause the bridged section says: This assumes there is a bridge device on the host which has one or more of the hosts physical NICs

[libvirt] [PATCH] incorrect error message in virDomainNetDefParseXML

2009-09-30 Thread Florian Vichot
When declaring a interface type=bridge tag, source needs a bridge attribute, but the parser complains about a missing dev attribute. Florian diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 868e865..86da022 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@

[libvirt] [PATCH] in Vbox driver, OpenHardDisk is called with NULL instead of

2009-09-29 Thread Florian Vichot
This patch replaces the use of NULL with empty strings () in a call to OpenHardDisk, which otherwise fails with E_INVALIDARG. Florian diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index c02b18c..f5a8c97 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -3206,9 +3206,9 @@

[libvirt] [PATCH] add doc for graphic and video elements

2009-09-21 Thread Florian Vichot
Hello The title says it all. Here's some doc explaining the new syntax of the video and graphic elements in the domain XML. It (probably) won't get me any literary awards but, eh, it's a start :) Florian diff --git a/docs/formatdomain.html b/docs/formatdomain.html index a715457..f95f72b 100644

[libvirt] Latest git tree doesn't compile

2009-05-13 Thread Florian Vichot
Hello everyone, I just got the latest and grooviest libvirt from the git tree at : git://git.et.redhat.com/libvirt.git but compiling fails: /bin/bash ../mylibtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud

Re: [libvirt] Latest git tree doesn't compile

2009-05-13 Thread Florian Vichot
I run a Ubuntu 8.04, kernel is 2.6.24-24-openvz. 2.6.24 is probably too old I see the patch from Nov 2007 http://lkml.indiana.edu/hypermail/linux/kernel/0711.3/0496.html Am I missing headers that are not tested for in the ./configure ? If not, any way that functionality could be

Re: [libvirt] [PATCH 1/1] Support for RDP

2009-04-23 Thread Florian Vichot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Isn't 3D support implied by the type of graphics card emulated ? eg cirrus is a 2d only card, so it seems like 3Daccel is redundant. Similarly if the graphics model were a 3d card. true. no need for that. Actually I believe there is. I think

Re: [libvirt] [PATCH 2/2] VirtualBox support

2009-04-08 Thread Florian Vichot
I've just had time to test start, shutdown, dominfo and list but works great so far :) Tomorrow I'll probably try define create VRDP etc... Just one quick patch though: I'm not sure you know, but you call VBoxCGlueInit() twice at every start of virsh: once in vboxRegister() and once in

Re: [libvirt] freecell gives out bytes instead of kilobytes

2009-04-03 Thread Florian Vichot
Gerrit Slomma a écrit : --- a/src/virsh.c2009-04-02 17:45:50.0 +0200 +++ b/src/virsh.c 2009-04-02 23:35:54.0 +0200 @@ -1661,10 +1661,23 @@ } if (cell == -1) -vshPrint(ctl, %s: %llu kB\n, _(Total), memory); + if (memory 10*1024*1204*1024) If I

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-17 Thread Florian Vichot
Florian Vichot a écrit : Hi everyone, Here is the new patch, with the requested modifications: - The target tag is now set to '/', and not used to specify the pivot root location. - Search and replace uses virBuffer and strstr() - Use of virAsprintf when possible, instead of stack arrays

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-13 Thread Florian Vichot
Hi everyone, Here is the new patch, with the requested modifications: - The target tag is now set to '/', and not used to specify the pivot root location. - Search and replace uses virBuffer and strstr() - Use of virAsprintf when possible, instead of stack arrays. - Default config file name is

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-12 Thread Florian Vichot
Hi Evgeniy, really, default config is specified in /etc/sysconfig/vz # grep -R CONFIGFILE /etc/sysconfig/vz CONFIGFILE=vps.basic config file is calculating by snprintf(path, sizeof(path), VPS_CONF_DIR ve-%s.conf-sample, config); Actually, vz.conf is in /etc/vz/ on my machine (Ubuntu

[libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-11 Thread Florian Vichot
Hi everyone, This patch is to allow using the mount type in the filesystem tag for OpenVZ domains. Example: ... filesystem type='mount' source dir='/path/to/filesystem/directory/' / target dir='/path/to/pivot/root/' / /filesystem ... This is my first patch to an external

[libvirt] some questions about libvirt features and limitations

2009-03-04 Thread Florian Vichot
Hello everyone, I'm working on a open source project (http://www.hynesim.org) in which we needed libvirt-like functionalities. As at the time, libvirt did not support OpenVZ, and it did not support VirtualBox, we went and implemented our own wrappers around Kvm/Qemu, VirtualBox and OpenVz

Re: [libvirt] some questions about libvirt features and limitations

2009-03-04 Thread Florian Vichot
I'm not sure - it depends what you're doing with the TAP device on the host side of things ? The project I'm working on is an information system simulator. So I need virtual machines and virtual networks. I plan to use libvirt to provide the virtual machines, but even though I know libvirt

[libvirt] some questions about libvirt features and limitations

2009-03-03 Thread Florian Vichot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello everyone, I'm working on a open source project (http://www.hynesim.org) in which we needed libvirt-like functionalities. As at the time, libvirt did not support OpenVZ, and it did not support VirtualBox, we went and implemented our own wrappers