forked from voxxit/packer-arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (31 loc) · 963 Bytes
/
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
INTERFACE = "en0: Ethernet"
IP_ADDR = "10.10.10.2"
BOX_URL = "http://localhost/jme/boxes/arch-iperf/metadata.json"
ENABLE_GUI = false
# This box has 512 MB by default
CUSTOM_RAM = false # 1024
# This box has 2 CPUs by default
CUSTOM_CPU = false # 4
# !! Don't edit below here !! #
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "arch-iperf"
config.vm.box_url = BOX_URL
# Bridged inf for using iperf on
config.vm.network :public_network, ip: IP_ADDR, bridge: INTERFACE
# Custom settings
if CUSTOM_RAM
config.vm.memory = CUSTOM_RAM
end
if CUSTOM_CPU
config.vm.cpus = CUSTOM_CPU
end
config.vm.provider :virtualbox do |vb|
vb.gui = ENABLE_GUI
# This reduces the amount of time to boot (merginally)
vb.customize ["modifyvm", :id, "--bioslogodisplaytime", "1"]
end
# Extra improvements
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.box_check_update = false
end