-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile.dist
26 lines (23 loc) · 1.12 KB
/
Vagrantfile.dist
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
Vagrant.configure(2) do |config|
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# This is the docker network
config.vm.network "private_network", ip: "10.10.0.2", auto_config: false
config.vm.provider :virtualbox do |vb|
# Set the vboxnet interface to promiscous mode so that the docker veth
# interfaces are reachable
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
# Otherwise we get really slow DNS lookup on OSX (Changed DNS inside the machine)
# vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
# Use the paravirt network adapter, because the default one hangs on linux hosts
# Vagrant::Util::Platform.platform == "linux-gnu"
# Vagrant::Util::Platform.platform.start_with?("darwin")
if Vagrant::Util::Platform.platform.start_with?("darwin")
vb.customize ["modifyvm", :id, "--nictype1", "82543GC"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
else
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end
end