WikiStart: InstallRYU.md

File InstallRYU.md, 1.7 KB (added by andy, 5 years ago)
Line 
1% SDN / Openflow tutorial
2% Installing Ryu
3
4# Introduction
5
6In this lab we will connect to our virtual machine, ensure that it is running up to date software and install the Ryu OpenFlow Controller
7
8# Goals
9
10* Connect to VM
11* Update VM
12* Install Ryu
13
14# Notes
15
16* Commands preceded with "$" imply that you should execute the command as
17  a general user - not as root.
18* Commands preceded with "#" imply that you should be working as root.
19* Commands with more specific command lines (e.g. "RTR-GW>" or "mysql>")
20  imply that you are executing commands on remote equipment, or within
21  another program.
22
23# Installation
24
25## Updating and installing required packages
26
27The first step is to make sure that you have up-to-date software.  Use the following command, entering in the sysadm password when prompted.
28
29    $ sudo apt-get update
30        [sudo] password for sysadm:
31
32
33Once this is updated install some essential packages using the following command
34
35
36    $ sudo apt-get install build-essential pkg-config autoconf automake python-qt-dev python-dev python-twisted-conch libtool libxml2-dev libxslt1-dev git python-pip python-bson
37
38## Installing Ryu
39
40In order to install Ryu and all of it's dependancies all that is required is to run the following command.
41
42    $ sudo pip install ryu     
43
44There will be lots of expected errors, but it should complete with the following output.
45
46    Successfully installed ryu eventlet routes webob paramiko lxml netaddr oslo.config msgpack-python greenlet repoze.lru ecdsa six
47    Cleaning up...
48
49You can check that the installation has gone well by running the ryu-manager program.
50
51    $ ryu-manager
52    loading app ryu.controller.ofp_handler
53    instantiating app ryu.controller.ofp_handler of OFPHandler 
54
55Press Ctrl-C to exit
56
57--End