You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/userguide.rst
+27-13Lines changed: 27 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Installation
29
29
30
30
.. REQUIREMENTS {{{3
31
31
32
-
Requirements
32
+
Requirements: Installing Mininet
33
33
------------
34
34
35
35
You need to start MiniCPS installation by `installing
@@ -39,26 +39,40 @@ Notice that Mininet can be installed either inside a Virtual Machine (VM)
39
39
or on your physical machine.
40
40
The official Mininet VM comes without an X-server that is an *optional*
41
41
requirements for MiniCPS (e.g., it can be used to display a pop-up window
42
-
with sensor data visualization).
42
+
with sensor data visualization). If you decide to install Mininet on your own, the following hints can be helpful.
43
43
44
-
The `Install MiniCPS`_ section provides instructions to install ``minicps``
45
-
for a user or a developer, and it assumes that you *already* have installed
46
-
``mininet``.
44
+
Mininet relies on openvswitch-controller as basic SDN controller (unless you install POX or other controllers yourself). Since Open vSwitch 2.1, the openvswitch-controller was renamed to openvswitch-testcontroller. This means you will have to a) ensure that you have the corresponding package installed, e.g. via (on Ubuntu 16.04 or later)
45
+
46
+
.. code-block:: console
47
47
48
-
.. UPGRADE TO UBUNTU-16.04 {{{3
48
+
sudo apt install openvswitch-testcontroller
49
49
50
-
Upgrade to Ubuntu-16.04
51
-
-----------------------
50
+
Then, you need to patch the minicps source (e.g., /usr/lib/python2.7/dist-packages/mininet/clean.py and /usr/lib/python2.7/dist-packages/mininet/node.py) to use the updated binary name (change occurances of openvswitch-controller to openvswitch-testcontroller).
52
51
53
-
Some MiniCPS libraries like cryptography now require Ubuntu16.04. To upgrade do:
54
52
.. code-block:: console
55
-
sudo apt-get update
56
-
sudo apt-get dist-upgrade
57
-
sudo do-release-upgrade
53
+
54
+
find /usr/lib/python2.7/dist-packages/mininet/ -type f -exec sudo sed -i 's/ovs-controller/ovs-testcontroller/' {} \;
55
+
56
+
Ensure the corresponding service is running, e.g., by using
57
+
58
+
.. code-block:: console
59
+
60
+
sudo service openvswitch-switch start
61
+
62
+
You should now be able to start a simple topology without error messages by using
63
+
64
+
.. code-block:: console
65
+
66
+
sudo mn
67
+
68
+
69
+
The `Installing MiniCPS`_ section provides instructions to install ``minicps``
70
+
for a user or a developer, and it assumes that you *already* have installed
0 commit comments