If you don't need the port-group abstraction (and the switch definition in
libvirt), just create your ovs switch (ovsbr0) with ovs-vsctl and use this
in the VM definition:

<interface type='bridge'>
    <source bridge='ovsbr0'/>
    <vlan>
        <tag id='99'/>
    </vlan>
    <virtualport type='openvswitch'/>
</interface>

I don't find a lot of documentation about this easier solution. Hope it
helps.

Le ven. 20 mai 2016 à 03:13, Scott Lowe <scott.l...@scottlowe.org> a écrit :

> Pippin, are you launching these VMs via libvirt? If so, most recent
> versions of libvirt have the ability to set the VLAN tag on the TAP
> interface that is created when you launch a VM.
>
> See here for more information:
>
> <http://blog.scottlowe.org/2012/11/07/using-vlans-with-ovs-and-libvirt/>
>
>
> > On May 19, 2016, at 5:50 PM, Pippin Wallace <pippin.wall...@oracle.com>
> wrote:
> >
> > That is an option, but if there is a way we can get these tags to
> persist it would be the best.
> >
> > Regards – Pippin
> >
> > From: Joel Wirāmu Pauling [mailto:aener...@aenertia.net]
> > Sent: Thursday, May 19, 2016 1:28 PM
> > To: Pippin Wallace
> > Cc: nickcooper-zhangtonghao; discuss@openvswitch.org
> > Subject: Re: [ovs-discuss] Issue with vlan tag being changed after
> reboot of KVM hypervisor.
> >
> > Why not set the tag inside the guest?
> >
> > On May 19, 2016 9:15 AM, "Pippin Wallace" <pippin.wall...@oracle.com>
> wrote:
> > Nǐ hǎo and thank you for the great explanation.
> >
> > We are using the very old 1.9.3 version but if it just a matter of how
> we are setting the tag or if we are missing a save step would you please
> let us know.
> >
> > Xiexie -- Pippin
> >
> > -----Original Message-----
> > From: nickcooper-zhangtonghao [mailto:
> nickcooper-zhangtong...@opencloud.tech]
> > Sent: Wednesday, May 18, 2016 10:10 PM
> > To: discuss@openvswitch.org
> > Subject: Re: [ovs-discuss] Issue with vlan tag being changed after
> reboot of KVM hypervisor.
> >
> > Hi Pippin,
> >         The VM’s tap devices will been destroyed when the physical host
> is powered off.
> > So, the OVS can’t find the tap device of VMs when the OVS service
> restarted. When you start the VM, the tap inserted in OVS bridge is a new
> tap and the tag is reseted as default.
> >         The command "virsh reboot/dumpxml <domain>” should not change
> the tag while “virsh destroy/start <domain>” can change it. I think this is
> not a bug.
> > They have been only tested under 2.3.3 version of the OVS. Can you tell
> me the version of the OVS which you use? Let me know if there are any
> errors.
> >
> > Thanks,
> > nickcooper-zhangtonghao
> >
> >
> > _______________________________________________
> > discuss mailing list
> > discuss@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
> > _______________________________________________
> > discuss mailing list
> > discuss@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
> > _______________________________________________
> > discuss mailing list
> > discuss@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
>
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to