[libvirt] Question about the specification of "virsh vcpupin" and "virsh vcpuinfo" in libvirt-0.6.1.

2009-04-01 Thread Takahashi Tomohiro
Hi, I have questions. I would like to know the specification of "virsh vcpupin" and "virsh vcpuinfo" in libvirt-0.6.1. "virsh vcpupin" and "virsh vcpuinfo" can not be executed to inactive domains. I think it is the specification. Is it correct ? I would like to know whether the libvirt-community

Re: [libvirt] How to prevent libvirt from adding iptables rules?

2009-04-01 Thread Mariano Absatz
I'm sorry... is this not the right place to ask this kind of questions? Is there another more user-oriented list or forum? TIA On Tue, Mar 31, 2009 at 16:08, Mariano Absatz wrote: > Hi, > > I'm new to libvirt but not a complete neophite. > > I'm using libvirt and kvm in ubuntu with "vmbuilder".

Re: [libvirt] PATCH: Fix duplicate methods in python binding

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 02:46:31PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 01:15:14PM +0100, Daniel P. Berrange wrote: > > There are three methods with the same name in the python binding > > due to a generator bug. This patch fixes them, so we get methods > > networkCreateXML() and

Re: [libvirt] PATCH: Clear reference after closing connection object

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 02:47:08PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 01:16:31PM +0100, Daniel P. Berrange wrote: > > In the python bindings, if you call close() it will close the connection > > and release the handle, but it doesn't clear the python reference to the > > C obje

Re: [libvirt] PATCH: Update XenD for new location of (localtime 1) SEXPR

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:38:11PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 02:33:46PM +0100, Daniel P. Berrange wrote: > > Newer versions of XenD have the (localtime 1) bit of the SEXPR > > moved outside the (image ...) bit, and made available for both PV > > and HVM guests. This p

Re: [libvirt] PATCH: Fix error report for unknown node devices

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:39:23PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 03:20:40PM +0100, Daniel P. Berrange wrote: > > When requesting a non-existant device you currently get > > > > # virsh nodedev-dumpxml foo > > error: Could not find matching device 'foo' > > error: invalid

Re: [libvirt] PATCH: Fix error reporting for guest with missing network

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:41:55PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 04:37:36PM +0100, Daniel P. Berrange wrote: > > If you attempt to create a Xen guest using a virutal network that does not > > exist, or is not running you get a cryptic message > > > > # virsh create rhel5p

Re: [libvirt] PATCH: Fix XM driver to extract vifname= parameter

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:44:59PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 04:58:42PM +0100, Daniel P. Berrange wrote: > > The XM driver is not currently handling the vifname= parameter for > > network devices in /etc/xen config files. This patch fixes that > > ommision > > Okay

Re: [libvirt] How to prevent libvirt from adding iptables rules?

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 04:08:24PM -0300, Mariano Absatz wrote: > At first I used the 'default' network (with a different rfc1918 > network)... everything was kinda working until I rebooted the host... at > that point I lost connectivity between the outside world and the VMs. > From inside the h

Re: [libvirt] question about qemudDomainMigratePrepare2 of qemu_driver.c from libvirt-0.6.1

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:36:51PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 05:29:09PM +0200, Chris Lalancette wrote: > > > > > > Can you try with this patch applied > > > > > > diff -r b5ad7b1c453b src/qemu_driver.c > > > --- a/src/qemu_driver.c Tue Mar 31 14:55:23 2009 +0100 >

Re: [libvirt] PATCH: Add --tree flag to virsh nodedev-list

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:35:23PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 02:58:37PM +0100, Daniel P. Berrange wrote: > > On Tue, Mar 31, 2009 at 12:09:21PM +0200, Daniel Veillard wrote: > > > > > > > +#define MAX_INDENT 100 > > > > + > > > > +static void > > > > +cmdNodeListDevic

Re: [libvirt] PATCH: Fix misc memory alloc/free/usage bugs

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 11:34:21PM +0200, Daniel Veillard wrote: > On Tue, Mar 31, 2009 at 02:29:02PM +0100, Daniel P. Berrange wrote: > > On Tue, Mar 31, 2009 at 12:04:00PM +0200, Daniel Veillard wrote: > > Actually, the buffer is the exact right size, because that > > 'buf.st_size' was filled by

[libvirt] PATCH: Allow running of console after creating guest

2009-04-01 Thread Daniel P. Berrange
This patch adds a new flag to the 'create' and 'start' commands in virsh, making it immeditely spawn the builtin virsh console, eg # virsh start --console demo At the same time, I also add in a check for virConnectGetHostname() against the local hostname, and refuse to launch the console if they

[libvirt] error in libvirt.py from libvirt-0.6.1 ?

2009-04-01 Thread Gerrit Slomma
Hello Is there a paticular reason for having "def migrate" two times in libvirt.py? The first occurence is on line 345 with parameters (self, dconn, flags, dname, uri, bandwidth) The second occurence is on line 1102 with parameters (self, domain, flags, dname, uri, bandwidth) Which one is cor

Re: [libvirt] PATCH: Allow running of console after creating guest

2009-04-01 Thread John Levon
On Wed, Apr 01, 2009 at 01:47:26PM +0100, Daniel P. Berrange wrote: > Finally, when starting the console print a message telling the user the > hotkey to quit > > # virsh start --console VirtTest > Domain VirtTest started > Connecting to console, type Ctrl+] to quit Can we please make this

Re: [libvirt] PATCH: Allow running of console after creating guest

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 08:51:14AM -0400, John Levon wrote: > On Wed, Apr 01, 2009 at 01:47:26PM +0100, Daniel P. Berrange wrote: > > > Finally, when starting the console print a message telling the user the > > hotkey to quit > > > > # virsh start --console VirtTest > > Domain VirtTest start

Re: [libvirt] PATCH: Allow running of console after creating guest

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 02:31:37PM +0100, Daniel P. Berrange wrote: > On Wed, Apr 01, 2009 at 08:51:14AM -0400, John Levon wrote: > > On Wed, Apr 01, 2009 at 01:47:26PM +0100, Daniel P. Berrange wrote: > > > > > Finally, when starting the console print a message telling the user the > > > hotkey t

Re: [libvirt] [PATCH 1/1] Add SCSI pool support.

2009-04-01 Thread Daniel Veillard
On Tue, Mar 31, 2009 at 05:49:47PM -0400, Dave Allan wrote: > Dave Allan wrote: > Attached is what I think is a final version of the scsi host pool code. > It's the set of patches we've been discussing rolled up into a single > patch, so it should look ok, but let me know if you have additional

Re: [libvirt] [PATCH 1/1] Add SCSI pool support.

2009-04-01 Thread Dave Allan
Daniel Veillard wrote: On Tue, Mar 31, 2009 at 05:49:47PM -0400, Dave Allan wrote: Dave Allan wrote: Attached is what I think is a final version of the scsi host pool code. It's the set of patches we've been discussing rolled up into a single patch, so it should look ok, but let me know if y

Re: [libvirt] [PATCH 1/1] Add SCSI pool support.

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 10:21:29AM -0400, Dave Allan wrote: > Daniel Veillard wrote: > >On Tue, Mar 31, 2009 at 05:49:47PM -0400, Dave Allan wrote: > >>Dave Allan wrote: > >>Attached is what I think is a final version of the scsi host pool code. > >>It's the set of patches we've been discussing r

Re: [libvirt] [PATCH 1/1] Add SCSI pool support.

2009-04-01 Thread Dave Allan
Daniel P. Berrange wrote: On Wed, Apr 01, 2009 at 10:21:29AM -0400, Dave Allan wrote: Daniel Veillard wrote: On Tue, Mar 31, 2009 at 05:49:47PM -0400, Dave Allan wrote: Dave Allan wrote: Attached is what I think is a final version of the scsi host pool code. It's the set of patches we've bee

[libvirt] Reworked the XML verification patch for svirt

2009-04-01 Thread Daniel J Walsh
Main goal of this patch it to verify data being written to xml and inform the user when he makes a mistake. Only able to verify static/dynamic in domain_conf. Added verify code to qemu_driver.c for model and potentially label. diff --git a/src/Makefile.am b/src/Makefile.am index d5aac11..8d5374

[libvirt] Added seclabeltest to run under test suite.

2009-04-01 Thread Daniel J Walsh
diff --git a/tests/.gitignore b/tests/.gitignore index 9d809c9..4f33d0b 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -15,6 +15,7 @@ nodedevxml2xmltest nodeinfotest statstest qparamtest +seclabeltest *.gcda *.gcno *.exe diff --git a/tests/Makefile.am b/tests/Makefile.am index 28b27

Re: [libvirt] Reworked the XML verification patch for svirt

2009-04-01 Thread Daniel Veillard
On Wed, Apr 01, 2009 at 10:33:56AM -0400, Daniel J Walsh wrote: > Main goal of this patch it to verify data being written to xml and > inform the user when he makes a mistake. This sounds good, especially about the added regression test, but at some point we should try to hook up the RelaxNG v

Re: [libvirt] PATCH: Allow running of console after creating guest

2009-04-01 Thread Chris Lalancette
Daniel P. Berrange wrote: > On Wed, Apr 01, 2009 at 02:31:37PM +0100, Daniel P. Berrange wrote: >> On Wed, Apr 01, 2009 at 08:51:14AM -0400, John Levon wrote: >>> On Wed, Apr 01, 2009 at 01:47:26PM +0100, Daniel P. Berrange wrote: >>> Finally, when starting the console print a message telling

[libvirt] PATCH: Fix 2 build bugs on mingw

2009-04-01 Thread Daniel P. Berrange
The Mingw platform lacks readlink(), so we stub out this method on that platform. The plain write() implementation of safezero() was not actually doing anything with the 'offset' arg. This makes it seek to the offset location before writing data. The mmap implementation of safezero() was also no

Re: [libvirt] [PATCH 1/1] Add SCSI pool support.

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 10:26:01AM -0400, Dave Allan wrote: > Daniel P. Berrange wrote: > >On Wed, Apr 01, 2009 at 10:21:29AM -0400, Dave Allan wrote: > >>Daniel Veillard wrote: > >>>On Tue, Mar 31, 2009 at 05:49:47PM -0400, Dave Allan wrote: > Dave Allan wrote: > Attached is what I think i

Re: [libvirt] Reworked the XML verification patch for svirt

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 10:33:56AM -0400, Daniel J Walsh wrote: > Main goal of this patch it to verify data being written to xml and > inform the user when he makes a mistake. > > Only able to verify static/dynamic in domain_conf. > > Added verify code to qemu_driver.c for model and potentially

Re: [libvirt] error in libvirt.py from libvirt-0.6.1 ?

2009-04-01 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 08:23:07PM +0200, Gerrit Slomma wrote: > Hello > > Is there a paticular reason for having "def migrate" two times in > libvirt.py? > The first occurence is on line 345 with parameters (self, dconn, flags, > dname, uri, bandwidth) This is the correct one, in the virDomain

Re: [libvirt] Question about the specification of "virsh vcpupin" and "virsh vcpuinfo" in libvirt-0.6.1.

2009-04-01 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 03:53:16PM +0900, Takahashi Tomohiro wrote: > Hi, > > I have questions. > > I would like to know the specification of "virsh vcpupin" and "virsh > vcpuinfo" in libvirt-0.6.1. > "virsh vcpupin" and "virsh vcpuinfo" can not be executed to inactive > domains. > I think it is

Re: [libvirt] Reworked the XML verification patch for svirt

2009-04-01 Thread Daniel J Walsh
On 04/01/2009 12:50 PM, Daniel P. Berrange wrote: On Wed, Apr 01, 2009 at 10:33:56AM -0400, Daniel J Walsh wrote: Main goal of this patch it to verify data being written to xml and inform the user when he makes a mistake. Only able to verify static/dynamic in domain_conf. Added verify code to

[libvirt] existing bridge and no iptable rules

2009-04-01 Thread Markus
hi, i try to setup libvirt with an existing network setup (bridge with NO physical device, routes and iptables are already configured, dhcp named ..) . this bridge should be available for the libvirt domains. now the problem: every configuration i tried ends in iptable rules beeing created which m