-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathVagrantfile
60 lines (47 loc) · 1.89 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
51
52
53
54
55
56
57
58
59
60
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.host_name = "fexm"
# 3 Ports for 3 Dashboards
for i in 5307..5309
config.vm.network :forwarded_port, guest: i, host: i
end
# An additional range of ports for AFL-TW
for i in 53007..53107
config.vm.network :forwarded_port, guest: i, host: i
end
config.vm.provision "shell" do |s|
s.path = "./fexm/scripts/provision.sh"
s.privileged = false
end
config.vm.provider "virtualbox" do |v|
v.name = "fexm-vm"
v.memory = 8192
v.cpus = 8
v.customize ['modifyvm', :id, '--cableconnected1', 'on']
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
# A private dhcp network is required for NFS to work (on Windows hosts, at least)
config.vm.network "private_network", type: "dhcp"
# We want vagrant and interactive docker to look the same.
config.vm.synced_folder ".", "/vagrant", disabled: true
## In case you don't want to use nfs, use these lines instead (but it's slower)
# config.vm.synced_folder "./fexm", "/fexm", create: true
# config.vm.synced_folder "./seeds", "/seeds", create: true
# config.vm.synced_folder "./data", "/data", create: true
config.vm.synced_folder "./fexm", "/fexm", create: true, type: "nfs"
config.vm.synced_folder "./seeds", "/seeds", create: true, type: "nfs"
# config.vm.synced_folder "./data", "/data", create: true, type: "nfs"
# config.ssh.forward_agent = true
config.ssh.forward_x11 = true
if Vagrant.has_plugin?("vagrant-disksize")
config.disksize.size = '200GB'
end
if Vagrant.has_plugin?("vagrant-cachier")
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
config.cache.scope = :box
config.cache.synced_folder_opts = { type: :nfs, mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] }
end
end