[ovs-discuss] How to associate Ovs port to a port-group
Mani Devarajan
manidevarajan at gmail.com
Wed Dec 3 19:29:01 UTC 2014
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 <scott.lowe at scottlowe.org> wrote:
> Please see my response below.
>
>
> On Dec 3, 2014, at 9:54 AM, Mani Devarajan <manidevarajan at gmail.com>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141203/8d929b4f/attachment-0002.html>
More information about the discuss
mailing list