Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-03 Thread Ansis Atteka
Laine, How do I make interfaceid persistent across libvirtd restarts if user did not specify one in domain XML config file and libvirtd generated it for him automatically? It seems that different interfaceid is regenerated each time the libvirtd is restarted. If I understand correctly then two XM

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-03 Thread Laine Stump
On 02/03/2012 10:42 AM, Ansis Atteka wrote: On Thu, Feb 2, 2012 at 10:10 PM, Laine Stump mailto:la...@laine.org>> wrote: There are a few other places where it may be appropriate to do the bridge removal during error paths; this same search may show you some of them,

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-03 Thread Ansis Atteka
On Thu, Feb 2, 2012 at 10:47 PM, Ansis Atteka wrote: > > > On Thu, Feb 2, 2012 at 10:10 PM, Laine Stump wrote: > >> On 02/02/2012 01:28 PM, Ansis Atteka wrote: >> >> >> >> On Thu, Feb 2, 2012 at 6:08 PM, Laine Stump wrote: >> >>> On 02/02/2012 09:30 AM, Ansis Atteka wrote: >>> Libvirt has

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-02 Thread Ansis Atteka
On Thu, Feb 2, 2012 at 10:10 PM, Laine Stump wrote: > On 02/02/2012 01:28 PM, Ansis Atteka wrote: > > > > On Thu, Feb 2, 2012 at 6:08 PM, Laine Stump wrote: > >> On 02/02/2012 09:30 AM, Ansis Atteka wrote: >> >>> Libvirt has a function virNetDevBridgeRemovePort() which can >>> remove port from

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-02 Thread Laine Stump
On 02/02/2012 01:28 PM, Ansis Atteka wrote: On Thu, Feb 2, 2012 at 6:08 PM, Laine Stump > wrote: On 02/02/2012 09:30 AM, Ansis Atteka wrote: Libvirt has a function virNetDevBridgeRemovePort() which can remove port from the Linux Bridge, but it seem

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-02 Thread Ansis Atteka
On Thu, Feb 2, 2012 at 6:08 PM, Laine Stump wrote: > On 02/02/2012 09:30 AM, Ansis Atteka wrote: > >> Libvirt has a function virNetDevBridgeRemovePort() which can >> remove port from the Linux Bridge, but it seems that no one calls it. >> >> Wanted to confirm if port removal happens automatically

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-02 Thread Laine Stump
On 02/02/2012 09:30 AM, Ansis Atteka wrote: Libvirt has a function virNetDevBridgeRemovePort() which can remove port from the Linux Bridge, but it seems that no one calls it. Wanted to confirm if port removal happens automatically for Linux Bridges if VM goes down? I didn't write that code, an

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-02 Thread Ansis Atteka
Libvirt has a function virNetDevBridgeRemovePort() which can remove port from the Linux Bridge, but it seems that no one calls it. Wanted to confirm if port removal happens automatically for Linux Bridges if VM goes down? The difference between OVS and Linux Bridge is that OVS will need a hook tha

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-02-01 Thread Dan Wendlandt
On Tue, Jan 31, 2012 at 4:01 AM, Daniel P. Berrange wrote: >> > I do like the idea of using the virtual port construct even in the >> > initial only case.  For example: >> > >> > >> >   >> >   >> >     >> >   >> > > > NB,  type='bridge' technically refers to the *concept* of bridging > an inte

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-31 Thread Laine Stump
On 01/31/2012 06:57 AM, Daniel P. Berrange wrote: On Fri, Jan 27, 2012 at 02:58:58AM -0800, Dan Wendlandt wrote: Hello all, I know of many people who want to spin up VMs using libvirt + kvm/qemu and attach those VMs to an openvswitch bridge (see: http://www.openvswitch.org). However, the onl

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-31 Thread Kyle Mestery
On Jan 31, 2012, at 6:01 AM, Daniel P. Berrange wrote: > On Mon, Jan 30, 2012 at 02:49:03PM -0600, kmestery wrote: >> On Jan 30, 2012, at 2:41 PM, Dan Wendlandt wrote: >>> Hi Kyle! Funny how we keep bumping into each other... I hope you're >>> keeping warm in Minnesota :) >>> >>> On Fri, Jan 27,

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-31 Thread Daniel P. Berrange
On Mon, Jan 30, 2012 at 02:49:03PM -0600, kmestery wrote: > On Jan 30, 2012, at 2:41 PM, Dan Wendlandt wrote: > > Hi Kyle! Funny how we keep bumping into each other... I hope you're > > keeping warm in Minnesota :) > > > > On Fri, Jan 27, 2012 at 11:22 AM, kmestery wrote: > >> Hi Dan: > >> > >

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-31 Thread Daniel P. Berrange
On Fri, Jan 27, 2012 at 02:58:58AM -0800, Dan Wendlandt wrote: > Hello all, > > I know of many people who want to spin up VMs using libvirt + kvm/qemu and > attach those VMs to an openvswitch bridge (see: http://www.openvswitch.org). > However, the only way I know of to get this working is a klu

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-30 Thread kmestery
On Jan 30, 2012, at 2:41 PM, Dan Wendlandt wrote: > Hi Kyle! Funny how we keep bumping into each other... I hope you're > keeping warm in Minnesota :) > > On Fri, Jan 27, 2012 at 11:22 AM, kmestery wrote: >> Hi Dan: >> >> We at Cisco have been looking at this as well, and in fact were going to

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-30 Thread Dan Wendlandt
Hi Kyle! Funny how we keep bumping into each other... I hope you're keeping warm in Minnesota :) On Fri, Jan 27, 2012 at 11:22 AM, kmestery wrote: > Hi Dan: > > We at Cisco have been looking at this as well, and in fact were going to > propose some things in this area as well. Our proposal (wh

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread kmestery
On Jan 27, 2012, at 2:55 PM, Laine Stump wrote: > On 01/27/2012 02:22 PM, kmestery wrote: >> Hi Dan: >> >> We at Cisco have been looking at this as well, and in fact were going to >> propose some things in this area as well. Our proposal (which frankly just >> builds on top of what you have): >>

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Laine Stump
On 01/27/2012 02:45 PM, Roopa Prabhu wrote: The existing forward mode bridge could also work perhaps. If there are no special cases for ovs. ovs-network This one would be confused with macvtap in bridge mode (which is recognized by mode='bridge' and the presence

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Laine Stump
On 01/27/2012 05:58 AM, Dan Wendlandt wrote: Hello all, I know of many people who want to spin up VMs using libvirt + kvm/qemu and attach those VMs to an openvswitch bridge (see: http://www.openvswitch.org). However, the only way I know of to get this working is a kludge that uses to tap de

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Laine Stump
On 01/27/2012 02:22 PM, kmestery wrote: Hi Dan: We at Cisco have been looking at this as well, and in fact were going to propose some things in this area as well. Our proposal (which frankly just builds on top of what you have): The proposal at hand is to add some libvirt configuration as fol

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Laine Stump
On 01/27/2012 05:58 AM, Dan Wendlandt wrote: Hello all, I know of many people who want to spin up VMs using libvirt + kvm/qemu and attach those VMs to an openvswitch bridge (see: http://www.openvswitch.org). However, the only way I know of to get this working is a kludge that uses to tap de

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Roopa Prabhu
On 1/27/12 11:22 AM, "kmestery" wrote: > Hi Dan: > > We at Cisco have been looking at this as well, and in fact were going to > propose some things in this area as well. Our proposal (which frankly just > builds on top of what you have): > > The proposal at hand is to add some libvirt config

Re: [libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread kmestery
Hi Dan: We at Cisco have been looking at this as well, and in fact were going to propose some things in this area as well. Our proposal (which frankly just builds on top of what you have): The proposal at hand is to add some libvirt configuration as follows: ovs-network This

[libvirt] [RFC Incomplete Patch] Libvirt + Openvswitch

2012-01-27 Thread Dan Wendlandt
Hello all, I know of many people who want to spin up VMs using libvirt + kvm/qemu and attach those VMs to an openvswitch bridge (see: http://www.openvswitch.org). However, the only way I know of to get this working is a kludge that uses to tap devices along with while running ovs-vsctl outside