Changes between Version 6 and Version 7 of Documentation/fSDN/aSwitchImage
- Timestamp:
- Mar 2, 2013, 9:26:12 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/fSDN/aSwitchImage
v6 v7 4 4 == Contents == 5 5 [#install I. Installation] [[BR]] 6 [#src 1.1 from source] [[BR]] 7 [#bin 1.2 from binaries] [[BR]] 6 8 [#run II. Running OVS] [[BR]] 9 [#init 2.1 initialization] [[BR]] 10 [#conf 2.2 Configuring OVS] [[BR]] 11 [#kvm 2.3 OVS with KVM] [[BR]] 12 [#of 2.4 OVS with OpenFlow] [[BR]] 13 [#cite III. References] [[BR]] 7 14 ---- 8 15 = I Installation = #install … … 10 17 11 18 === Prerequisites === 12 OVS should install/work with relatively little effort on Ubuntu (or perhaps other Linuxes as well). The following installation/operation steps were done on Ubuntu 10.10 through 12.04.19 OVS should install/work with relatively little effort on Ubuntu (or perhaps other Linuxes as well). The following installation/operation steps were successfully done on Ubuntu 10.10 through 12.04. 13 20 14 21 == 1.1 Method 1: from source == #src … … 40 47 }}} 41 48 42 === 1. 2.2 Some Sanity Checks. ===49 === 1.1.2 Some Sanity Checks. === 43 50 If things don't go well, here are some things worth checking: 44 51 … … 74 81 * In general, `dmesg` can be used to check for various anomalies when things e.g. insmod fail silently. 75 82 76 == 1. 3Method 2: from binaries == #bin83 == 1.2 Method 2: from binaries == #bin 77 84 Binaries are easier to set up, but lag in OVS version and support a narrower range of architectures and kernel versions. 78 85 1. Install the openvswitch packages. Do not use the Ubuntu repositories since the install the incorrect versions of the package; Download the 79 packages that match your kernel version from [http://openvswitch.org/releases/binaries/1.2.2.10448/ natty_amd64/here] [[BR]]86 packages that match your kernel version from [http://openvswitch.org/releases/binaries/1.2.2.10448/ here] [[BR]] 80 87 For an x86_64 system, the following are needed (The package '''openvswitch-brcompat_1.2.2.10448_amd64.deb''' should be added if bridge compatibility is needed): 81 88 {{{ … … 92 99 }}} 93 100 lsmod should also show the running openvswitch_mod. 94 95 == 1.4 Section I References ==96 The following links were referenced but aren't relevant overall; this is just for citation.97 98 * http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html99 * http://forums.gentoo.org/viewtopic-t-118180-highlight-bridgeutils.html?sid=4d602c9e364130609caff99aa2a40c69100 * https://help.ubuntu.com/community/Kernel/Compile101 * http://ubuntuguide.net/ubuntu-11-04-upgrade-linux-kernel-to-2-6-39-0102 101 103 102 ---- … … 109 108 The daemon configures itself using the data provided by the database; `ovs-vsctl` is used to modify the contents of the database in order to configure the OVS switch at runtime. 110 109 111 == 2.1 Initialization == 110 == 2.1 Initialization == #init 112 111 1. Load openVswitch kernel module 113 112 {{{ … … 138 137 The 'unix:...db.sock' specifies that the process attach to the socket opened by `ovsdb`. 139 138 140 == 2.2 Configuring OVS == 139 == 2.2 Configuring OVS == #conf 141 140 Once OVS is running, virtual switches may be created and configured. In general, a virtual switch is comprised of a bridge interface (usually named br''x''), and one or more interfaces associated with it. A single vswitchd can control multiple virtual switches with arbitrary number of ports each. 142 141 … … 172 171 }}} 173 172 174 == 2.3 OVS with KVM == 173 == 2.3 OVS with KVM == #kvm 175 174 OVS can be used with KVM. The instructions for setting this up can be found [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.KVM;hb=HEAD here], or in the root directory of the source as INSTALL.KVM. A use case is documented in this separate [http://orbit-lab.org/wiki/Internal/VMHostSetup wiki entry]. 176 175 177 == 2.4 OVS with !OpenFlow == 176 == 2.4 OVS with !OpenFlow == #of 178 177 OVS switches may be run as !OpenFlow switches. The following steps describe how to run OVS in !OpenFlow mode. 179 178 … … 210 209 }}} 211 210 Once running, all typical things applicable to an !OpenFlow switch applies to the running OVS switch. 211 212 ---- 213 = III References = #cite 214 The following links were referenced but aren't relevant overall; this is just for citation. 215 216 * http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html 217 * http://forums.gentoo.org/viewtopic-t-118180-highlight-bridgeutils.html?sid=4d602c9e364130609caff99aa2a40c69 218 * https://help.ubuntu.com/community/Kernel/Compile 219 * http://ubuntuguide.net/ubuntu-11-04-upgrade-linux-kernel-to-2-6-39-0