-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
48 lines (42 loc) · 1.43 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
NAME = "fiscally"
FQDN = "#{NAME}.example.com"
Vagrant.configure("2") do |config|
# "trusty" is 14.04
config.vm.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
# Use the normal insecure key
# https://github.com/mitchellh/vagrant/issues/2608
config.ssh.insert_key = false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id,
# Basics.
"--name", NAME,
"--memory", 4096,
# I/O APIC must be enabled to support a multi-core guest.
"--cpus", 4,
"--ioapic", "on",
# Enable native host virtualization features (yields better performance).
"--pae", "on",
"--hwvirtex", "on",
"--largepages", "on",
"--vtxvpid", "on",
# This causes the virtual machine to proxy DNS requests through the host
# via NAT. Without this, the default resolver on the guest will introduce
# a 5 second latency on every HTTP request... which is a real downer.
"--natdnshostresolver1", "on"
]
end
config.vm.hostname = FQDN
config.vm.provision :shell, path: "provision.sh"
end
#
# DONT FORGET!
#
# Force update VirtualBox Guest Additions
# Run the following command inside same directory as Vagrantfile
# Must be done once on your dev system
#
# vagrant plugin install vagrant-vbguest
#