-
Notifications
You must be signed in to change notification settings - Fork 16
/
Vagrantfile
41 lines (32 loc) · 1.54 KB
/
Vagrantfile
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
# This is the base Vagrantfile used to create the iSDX box.
#Vagrant.configure("1") do |config|
#config.vm.boot_mode = :gui
#end
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
#config.vm.box = "ubuntu/trusty32"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
v.customize ["modifyvm", :id, "--memory", "2048"]
end
## Guest Config
config.vm.hostname = "iSDX"
config.vm.network :private_network, ip: "172.28.128.3"
#config.vm.network :private_network, type: "dhcp"
#config.vm.network :private_network, ip: "192.168.0.300"
config.vm.network :forwarded_port, guest:6633, host:6637 # open flow controller
config.vm.network :forwarded_port, guest:3000, host:3000 # grafana
## Provisioning
config.vm.provision :shell, privileged: false, :path => "setup/basic-setup.sh"
config.vm.provision :shell, privileged: false, :path => "setup/ovs-setup.sh"
config.vm.provision :shell, privileged: false, :path => "setup/mininet-setup.sh"
config.vm.provision :shell, privileged: false, :path => "setup/ryu-setup.sh"
config.vm.provision :shell, privileged: false, :path => "setup/grafana-setup.sh"
config.vm.provision :shell, privileged: false, :path => "setup/sdx-setup.sh"
## SSH config
config.ssh.forward_x11 = true
#config.vm.synced_folder ".", "/home/vagrant/iSDX", type: "rsync",
#rsync__exclude: ".git/"
config.vm.synced_folder ".", "/home/vagrant/iSDX"
#config.vm.synced_folder ".", "/home/vagrant/iSDX", owner: "quagga", group: "quaggavty"
end