]> git.proxmox.com Git - ovs.git/blame - INSTALL.userspace
ofproto: Clear out entire 'name' field of ofp_phy_port when initializing.
[ovs.git] / INSTALL.userspace
CommitLineData
d377243b
BP
1 Using Open vSwitch without kernel support
2 =========================================
3
4Open vSwitch can operate, at a cost in performance, entirely in
5userspace, without assistance from a kernel module. This file
6explains how to install Open vSwitch in such a mode.
7
8The userspace-only mode of Open vSwitch is considered experimental.
9It has not been thoroughly tested.
10
11This version of Open vSwitch should be built manually with "configure"
12and "make". Debian packaging for Open vSwitch is also included, but
13it has not been recently tested, and so Debian packages are not a
14recommended way to use this version of Open vSwitch.
15
16Building and Installing
17-----------------------
18
19The requirements and procedure for building, installing, and
20configuring Open vSwitch are the same as those given in INSTALL.Linux.
21You may omit configuring, building, and installing the kernel module,
22and the related requirements.
23
24On Linux, the userspace switch additionally requires the kernel
25TUN/TAP driver to be available, either built into the kernel or loaded
26as a module. If you are not sure, check for a directory named
27/sys/class/misc/tun. If it does not exist, then attempt to load the
28module with "modprobe tun".
29
30The tun device must also exist as /dev/net/tun. If it does not exist,
31then create /dev/net (if necessary) with "mkdir /dev/net", then create
32/dev/net/tun with "mknod /dev/net/tun c 10 200".
33
e3e9370b
BP
34Using the Userspace Datapath with ovs-vswitchd
35----------------------------------------------
d377243b 36
e5334dad
JG
37To use ovs-vswitchd in userspace mode, create a bridge with datapath_type
38"netdev" in the configuration database. For example:
d377243b 39
e5334dad
JG
40 ovs-vsctl add-br br0
41 ovs-vsctl set bridge br0 datapath_type=netdev
42 ovs-vsctl add-port br0 eth0
43 ovs-vsctl add-port br0 eth1
44 ovs-vsctl add-port br0 eth2
d377243b
BP
45
46ovs-vswitchd will create a TAP device as the bridge's local interface,
e5334dad
JG
47named the same as the bridge, as well as for each configured internal
48interface.
d377243b 49
e3e9370b
BP
50Using the Userspace Datapath with ovs-openflowd
51-----------------------------------------------
52
53To use ovs-openflowd in userspace mode, specify a datapath name that
e5334dad 54begins with "netdev@", and specify --ports with the names of the ports
e3e9370b
BP
55that should be included in the datapath as argument. For example:
56
e5334dad 57 ovs-openflowd netdev@br0 --ports=eth0,eth1,eth2
e3e9370b
BP
58
59ovs-openflowd will create a TAP device as the bridge's local
e5334dad 60interface, named the same as the bridge minus the "netdev@" prefix.
e3e9370b 61
d377243b
BP
62Bug Reporting
63-------------
64
65Please report problems to bugs@openvswitch.org.