WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Project KRONOS - Networking with openvswitch (experimental)

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] Project KRONOS - Networking with openvswitch (experimental)
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Fri, 02 Sep 2011 14:27:59 +0200
Cc: Rob Hoes <Rob.Hoes@xxxxxxxxxx>, Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Delivery-date: Fri, 02 Sep 2011 05:29:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E5FEE1A.2040608@xxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <4E5F88CC.6040104@xxxxxxxxxxxxxxx> <4E5FEE1A.2040608@xxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
Hi,

Here you'll find my howto and the links to the files I've modded in order to get openvswitch networking working on a debian box.

Cheers,
Sébastien

Networking with openvswitch on project Kronos (experimental)


== Before you begin ==

Actually I only ported the openvswitch networking mode, don't try the bridge
mode, it wont work yet for sure.

ifupdown_0.7~beta1_i386.deb is required, because it supports interfaces file
includes and should merged in debian unstable repository in a quite near
future.

The VLAN workaround required for some NICs is disabled at the moment, because
debian stock kernel is not patched to support it. Still it should work with
most of the NICs.


== Install the required packages ==

apt-get chkconfig install ethtool vlan bridge-utils module-assistant openvswitch-common openvswtich-brcompat openvswitch-datapath-source openvswitch-pki python-openvswitch
wget http://xendev.swisscenter.com/xapi/debian/ifupdown_0.7~beta1_i386.deb
dpkg -i ifupdown_0.7~beta1_i386.deb


== build the openvswitch kernel module ==

m-a a-i openvswitch-datapath


== Replace the xapi networking files ==

wget http://xendev.swisscenter.com/xapi/openvswitch/InterfaceReconfigure.py
wget http://xendev.swisscenter.com/xapi/openvswitch/InterfaceReconfigureBridge.py wget http://xendev.swisscenter.com/xapi/openvswitch/InterfaceReconfigureVswitch.py
wget http://xendev.swisscenter.com/xapi/openvswitch/interface-reconfigure

cp *nterface* /usr/lib/xen-common/xapi/libexec
chmod 755 /usr/lib/xen-common/xapi/libexec/*nterface*


== install the management-interface init.d script ==
wget http://xendev.swisscenter.com/xapi/openvswitch/management-interface

cp management-interface /etc/init.d
chmod 755 /etc/init.d/management-interface
chkconfig management-interface on

note: I guess it should be started before xapi/xapissl


== Edit /etc/xensource/network.conf ==

replace "bridge" with "openvswitch"


Then use the xe command lines to setup your interfaces/networks like you would do on any XCP/XenServer host.
(xe pif-rescan, etc)

--

Last update: 02-Sep-2011
Author: Sébastien RICCIO <sr at swisscenter dot com>


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api