Hello, I''m trying to use OpenVSwitch (OVS) to connect among VMs. However, it looks like current Dom0 (Linux 3.9) kernel does not include openvswitch-brcompat module (which looks essential for using OpenVSwitch in Xen). While I was browsing the Internet, I found the following: http://openvswitch.org/pipermail/dev/2012-June/018310.html which is basically the patch to the Linux kernel for using openvswitch-brcompat, and my question is: Is there another way to use OpenVSwitch without brcompat for connecting VMs by OVS or do I have to apply the above patch? Sincerely, Thomas
On Mon, 2013-04-15 at 12:44 +0100, Sengul Thomas wrote:> Hello, > > I''m trying to use OpenVSwitch (OVS) to connect among VMs. > However, it looks like current Dom0 (Linux 3.9) kernel does not > include openvswitch-brcompat module (which looks essential for using > OpenVSwitch in Xen). > While I was browsing the Internet, I found the following: > > http://openvswitch.org/pipermail/dev/2012-June/018310.html > > which is basically the patch to the Linux kernel for using > openvswitch-brcompat, > and my question is: > > Is there another way to use OpenVSwitch without brcompat for > connecting VMs by OVS or do I have to apply the above patch?The brcompat layer is OK for human use but not really for scripting. A person can adapt to its quirks etc. So the best way would be to use a Xen hotplug script which speaks ovs directly instead of using the brcompat layer. If you take a look through the xen-devel archives you ought to be able to find an initial attempt by Bastian Blank from a little while back which looked pretty good. I also saw a quick & dirty method on xen-users@ last week. Ian.
Thanks for the quick reply, Ian. I got the idea and I somehow tweaked a bit of the xen hotplug scripts (just grep brctl and changed it to proper ovs-vsctl commands). Now, it looks working! Thanks a lot :) Jaeyong On Mon, Apr 15, 2013 at 8:50 PM, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Mon, 2013-04-15 at 12:44 +0100, Sengul Thomas wrote: >> Hello, >> >> I''m trying to use OpenVSwitch (OVS) to connect among VMs. >> However, it looks like current Dom0 (Linux 3.9) kernel does not >> include openvswitch-brcompat module (which looks essential for using >> OpenVSwitch in Xen). >> While I was browsing the Internet, I found the following: >> >> http://openvswitch.org/pipermail/dev/2012-June/018310.html >> >> which is basically the patch to the Linux kernel for using >> openvswitch-brcompat, >> and my question is: >> >> Is there another way to use OpenVSwitch without brcompat for >> connecting VMs by OVS or do I have to apply the above patch? > > The brcompat layer is OK for human use but not really for scripting. A > person can adapt to its quirks etc. > > So the best way would be to use a Xen hotplug script which speaks ovs > directly instead of using the brcompat layer. If you take a look through > the xen-devel archives you ought to be able to find an initial attempt > by Bastian Blank from a little while back which looked pretty good. I > also saw a quick & dirty method on xen-users@ last week. > > Ian. >
It seems that openvswitch support is being planned for xen. the biggest issue is hvm systems as it uses tun interface also. I had issue removing interfaces added to switch. on reboot. On Mon, Apr 15, 2013 at 6:17 AM, Sengul Thomas <thomas.sengul@gmail.com>wrote:> Thanks for the quick reply, Ian. > > I got the idea and I somehow tweaked a bit of the xen hotplug scripts > (just grep brctl and changed it to proper ovs-vsctl commands). > Now, it looks working! > Thanks a lot :) > > Jaeyong > > On Mon, Apr 15, 2013 at 8:50 PM, Ian Campbell <Ian.Campbell@citrix.com> > wrote: > > On Mon, 2013-04-15 at 12:44 +0100, Sengul Thomas wrote: > >> Hello, > >> > >> I''m trying to use OpenVSwitch (OVS) to connect among VMs. > >> However, it looks like current Dom0 (Linux 3.9) kernel does not > >> include openvswitch-brcompat module (which looks essential for using > >> OpenVSwitch in Xen). > >> While I was browsing the Internet, I found the following: > >> > >> http://openvswitch.org/pipermail/dev/2012-June/018310.html > >> > >> which is basically the patch to the Linux kernel for using > >> openvswitch-brcompat, > >> and my question is: > >> > >> Is there another way to use OpenVSwitch without brcompat for > >> connecting VMs by OVS or do I have to apply the above patch? > > > > The brcompat layer is OK for human use but not really for scripting. A > > person can adapt to its quirks etc. > > > > So the best way would be to use a Xen hotplug script which speaks ovs > > directly instead of using the brcompat layer. If you take a look through > > the xen-devel archives you ought to be able to find an initial attempt > > by Bastian Blank from a little while back which looked pretty good. I > > also saw a quick & dirty method on xen-users@ last week. > > > > Ian. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
There are few scripts moded for openvswitxh floating around. On Tue, Apr 16, 2013 at 6:57 PM, jacek burghardt <jaceksburghardt@gmail.com>wrote:> It seems that openvswitch support is being planned for xen. the biggest > issue is hvm systems as it uses tun interface also. I had > issue removing interfaces added to switch. on reboot. > > > On Mon, Apr 15, 2013 at 6:17 AM, Sengul Thomas <thomas.sengul@gmail.com>wrote: > >> Thanks for the quick reply, Ian. >> >> I got the idea and I somehow tweaked a bit of the xen hotplug scripts >> (just grep brctl and changed it to proper ovs-vsctl commands). >> Now, it looks working! >> Thanks a lot :) >> >> Jaeyong >> >> On Mon, Apr 15, 2013 at 8:50 PM, Ian Campbell <Ian.Campbell@citrix.com> >> wrote: >> > On Mon, 2013-04-15 at 12:44 +0100, Sengul Thomas wrote: >> >> Hello, >> >> >> >> I''m trying to use OpenVSwitch (OVS) to connect among VMs. >> >> However, it looks like current Dom0 (Linux 3.9) kernel does not >> >> include openvswitch-brcompat module (which looks essential for using >> >> OpenVSwitch in Xen). >> >> While I was browsing the Internet, I found the following: >> >> >> >> http://openvswitch.org/pipermail/dev/2012-June/018310.html >> >> >> >> which is basically the patch to the Linux kernel for using >> >> openvswitch-brcompat, >> >> and my question is: >> >> >> >> Is there another way to use OpenVSwitch without brcompat for >> >> connecting VMs by OVS or do I have to apply the above patch? >> > >> > The brcompat layer is OK for human use but not really for scripting. A >> > person can adapt to its quirks etc. >> > >> > So the best way would be to use a Xen hotplug script which speaks ovs >> > directly instead of using the brcompat layer. If you take a look through >> > the xen-devel archives you ought to be able to find an initial attempt >> > by Bastian Blank from a little while back which looked pretty good. I >> > also saw a quick & dirty method on xen-users@ last week. >> > >> > Ian. >> > >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel >> > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel