Mani, since this seems to be less of an OVS discussion and more of a libvirt discussion, I'll respond directly to you with more detail regarding your question in a subsequent e-mail. If others on the list are interested in the same information, please let me know.
On Dec 3, 2014, at 12:29 PM, Mani Devarajan <[email protected]> wrote: > Hello Scott, > Thanks for you quick response. Currently I decided to implement the option > 2. > But it would be ideal to have the option 1 working. So i did follow your > blog to use the port-group and vlans( > http://blog.scottlowe.org/2012/11/07/using-vlans-with-ovs-and-libvirt/). But > when i defined the vm again some > how the port-group config was ignored. Can you confirm the format is correct. > Please correct if my definition is wrong. > > <interface type='bridge'> > <mac address='52:54:00:54:95:e6'/> > <source bridge='L1' portgroup='port-group1'/> > <virtualport type='openvswitch'> > <parameters interfaceid='4b8d291b-d6e5-4226-887c-4a8ae9188205'/> > </virtualport> > <target dev='vnet6'/> > <model type='rtl8139'/> > <alias name='net2'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' > function='0x0'/> > </interface> > > Thanks, > Mani > > On Wed, Dec 3, 2014 at 9:56 AM, Scott Lowe <[email protected]> wrote: > Please see my response below. > > > On Dec 3, 2014, at 9:54 AM, Mani Devarajan <[email protected]> wrote: > > > Hello all, > > I am using virt-install to spawn a virtual machine and attached to ovs > > network created through "virsh network" command. virt-install(0.9.5) doesnt > > support port-group option for network. Is there ovs-vsctl command which > > will help in adding the ovs port to a port-group. I did check > > ovs-vswitchd.conf, but i couldnt find any relevant information. > > > > Appreciate your response. > > > OVS doesn't understand port groups; those are a libvirt construct that serve > to apply a group of settings to an OVS port. There are a couple of ways to > handle your situation: > > 1. Modify the libvirt XML definition to include the portgroup assignment > after the VM is created. > > 2. Use ovs-vsctl to apply the settings (VLAN tags, etc.) manually to the VM > port after it is created. > > I hope this helps! -- Scott _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
