Statistics
| Branch: | Tag: | Revision:

mininet / INSTALL @ 21b2c2c4

History | View | Annotate | Download (2.81 KB)

1

    
2
Mininet Installation/Configuration Notes
3

    
4
Mininet 2.0.0rc1
5

    
6
---
7

    
8
The supported installation methods for Mininet are 1) using
9
a pre-built VM image, and 2) native installation on Ubuntu. You
10
can also easily create your own Mininet VM image (3).
11

    
12
(Other distributions may be supported in the future - if you would
13
like to contribute an installation script, we would welcome it!)
14

    
15
1. Easiest "install" - use our pre-built VM image!
16

    
17
The easiest way to get Mininet running is to start with one of our pre-built 
18
virtual machine images from http://openflow.org/mininet
19

    
20
Boot up the VM image, log in, and follow the instructions on the wiki page.
21

    
22
An additional advantage of using the VM image is that it doesn't mess with
23
your native OS installation or damage it in any way.
24

    
25
2. Next-easiest install: use our Ubuntu package!
26

    
27
To install Mininet itself (i.e. mn and the Python API) on Ubuntu 12.10+
28

    
29
  sudo apt-get install mininet
30

    
31
Note: if you are upgrading from an older version of Mininet, make sure you
32
remove the old OVS from /usr/local:
33

    
34
  sudo rm /usr/local/bin/ovs*
35
  sudo rm /usr/local/sbin/ovs*
36

    
37
3. Native installation from source on Ubuntu 11.10+
38

    
39
If you're reading this, you've probably already done it, but the command to
40
download the Mininet source code is;
41
   
42
  git clone git://openflow.org/mininet.git
43

    
44
If you are running Ubuntu, you may be able to use our handy install.sh script,
45
which is in mininet/util.
46

    
47
WARNING: USE AT YOUR OWN RISK!
48

    
49
install.sh is a bit intrusive and may possibly damage your OS and/or
50
home directory, by creating/modifying several directories such as
51
mininet, openflow, openvswitch and noxcore. Although we hope it won't
52
do anything completely terrible, you may want to look at the script
53
before you run it, and you should make sure your system and home
54
directory are backed up just in case!
55

    
56
To install Mininet itself, the OpenFlow reference implementation, and
57
Open vSwitch, you may use:
58

    
59
$ mininet/util/install.sh -fnv
60

    
61
This should be reasonably quick and the following command should work
62
after the installation:
63

    
64
$ sudo mn --test pingall
65

    
66
To install ALL of the software which we use for OpenFlow tutorials,
67
including NOX classic, the OpenFlow WireShark dissector, the oftest
68
framework, and other potentially useful software (and to add some stuff
69
to /etc/sysctl.conf which may or may not be useful) you may use
70

    
71
$ mininet/util/install.sh -a
72

    
73
This takes about 20 minutes on our test system.
74

    
75
4. Creating your own Mininet/OpenFlow tutorial VM
76

    
77
Creating your own Ubuntu Mininet VM for use with the OpenFlow tutorial
78
is easy! First, create a new Ubuntu VM. Then, run
79

    
80
$ wget https://raw.github.com/mininet/mininet/util/vm/install-mininet-vm.sh
81
$ time install-mininet-vm.sh
82

    
83
Good luck!
84

    
85
p.s. Note that only one instance of Mininet is currently supported on a single
86
machine - that's one reason we recommend using a VM to run it.
87

    
88
---
89

    
90
  
91