-
Notifications
You must be signed in to change notification settings - Fork 2
Mininet VM
Jim Burns edited this page Sep 7, 2015
·
16 revisions
This page describes how to get our custom virtual machine image that provides tools to quickly get Mininet running and connected to your SDN Developer Lab.
- Be sure you meet the Prerequisites
- On your computer:
-
On SDN Developer Lab scroll down to the 'Devices' table. In the header click the link 'Download Mininet VM'. This is a large file, it will take some time to download.
-
Once the Mininet VM has completed downloading you will have a .OVA file in your downloads folder.
-
Copy the .OVA file to a safe location such as where you store your documents. Remember the location.
-
Open VirtualBox
- Select File:Import Appliance
- Browse to the .OVA file and select it, it will take some time to load this OVA.
- Highlight the newly imported virtual machine named: Elbrys SDN Developer Portal Virtual Switch
- Select 'Start'
- A new terminal window will open and you will see the virtual machine starting
-
In the running virtual machine
- Login with
mininetas the username andmininetas the password. - Once logged in, go into the FirstSdnApp directory:
cd FirstSdnApp- Update the source code to be sure it is up to date.
git pull
- Become super user
sudo su
- Run the FirstSwitch.py application providing it with the required set of flags (be sure you are superuser, the prompt should be a # not a >)
python FirstSwitch.py --id <Id> --server <IP> --port <OFPort>
- Where:
- Id: SDN App Id found in the header of the 'SDN Applications' table on the SDN Developer Lab screen.
- IP: IP Address of controller found in the 'SDN Controller' table on the SDN Developer Lab screen.
- OFPort: TCP port number that the controller is listening on for OpenFlow connections. It is found in the 'SDN Controller' table on the SDN Developer Lab screen.
- At this point Mininet runs, creates a virtual switch, connects it to your SDN Developer Lab and connects two virtual hosts (endpoints) to the virtual switch. Leave this window open and running.
- Return to Quick Start Guide
- Login with
-
- If you want a different topology with more hosts, switches or connections then make a copy of FirstSwitch.py and edit it and then run it instead of FirstSwitch.py.