-
Notifications
You must be signed in to change notification settings - Fork 209
/
Vagrantfile
50 lines (37 loc) · 1.94 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
42
43
44
45
46
47
48
49
50
## Vagrantfile for SDN Coursera Course 2015
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.box = "coursera-sdn-2015.box"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
# 64 bit Vagrant Box
config.vm.box_url = "https://d396qusza40orc.cloudfront.net/sdn1/srcs/Vagrant%20Box/coursera-sdn-2015_64bit.box"
# 32 bit Vagrant Box
# config.vm.box_url = "https://d396qusza40orc.cloudfront.net/sdn1/srcs/Vagrant%20Box/coursera-sdn-2015_32bit.box"
## Guest Config
config.vm.hostname = "coursera-sdn"
config.vm.network :private_network, ip: "192.168.0.100"
config.vm.network :forwarded_port, guest:6633, host:6635 # forwarding of port
## Provisioning
## We will update the Vagrantfile as the course progresses and students will
## need additional installations to complete the assignments.
#config.vm.provision :shell, privileged: false, :path => "setup/ryu-setup.sh"
#config.vm.provision :shell, privileged: false, :path => "setup/p4-setup.sh"
#config.vm.provision :shell, privileged: false, :path => "setup/netasm-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/sdx-setup.sh"
#config.vm.provision :shell, privileged: false, :path => "setup/kinetic-setup.sh"
## SSH config
config.ssh.forward_x11 = true
## CPU & RAM
## We need at least 2G to build P4, otherwise you run out of memmory
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "100"]
vb.memory = 2048
vb.cpus = 1
end
end