-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathREADME.Vagrant
70 lines (47 loc) · 1.85 KB
/
README.Vagrant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ODL OVSDB Vagrant
=================
# Installation
You can download an install for your system from [here](http://www.vagrantup.com/downloads.html)
# Usage
Vagrant is a tool for creating development/test environments.
The environment created for this project is as follows:
1 x DevStack Control/Compute VM
1-3 x DevStack Compute VM
1 x Mininet VM
It's assumed you already have an OVSDB development environment set up.
1. Run `mvn clean install`
2. Run `vagrant up`
3. Start the controller (in distirbution/target/opendaylight/...)
> Note: It's assumed that the subnet 192.168.50.x/24 is not in use
> Your PC is 192.168.50.1. If you would like to change the addressing,
> you will need to edit the Vagrantfile and hosts.json
Follow the instructions below for Devstack and Mininet
## DevStack VMs
There are two DevStack VMs. One combined control/compute node and a variable number of dedicated compute nodes.
The following steps are performed when the VM is created or when `vagrant provision` is run.
- Check dependencies are installed
- Clone the devstack repository to `devstack`
- Generate a `local.conf` file
To start DevStack
vagrant ssh devstack-control
# or vagrant ssh devstack-compute
cd devstack
./stack.sh
> Note: To start more than one compute node
> export DEVSTACK_NUM_COMPUTE_NODES=3
> vagrant up
## Mininet
There is a single VM provided for running mininet.
This is for testing that does not require OpenStack Neutron.
The following steps are performed when the VM is created or when `vagrant provision` is run.
- Check dependencies are installed
- Clone the mininet repository
- Install mininet and Open vSwitch
To start Mininet
vagrant ssh mininet
sudo mn
# Port Forwarding
The following ports are forwarded:
localhost:8080 -> opendaylight:8080
localhost:8000 -> opendaylight:8000
localhost:8081 -> devstack-control:8080