forked from mitchellh/boot2docker-vagrant-box
-
Notifications
You must be signed in to change notification settings - Fork 16
/
vagrantfile.tpl
46 lines (40 loc) · 1.25 KB
/
vagrantfile.tpl
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
# -*- mode: ruby -*-
# # vi: set ft=ruby :
Vagrant.require_version ">= 1.6.3"
Vagrant.configure("2") do |config|
config.ssh.shell = "sh"
config.ssh.username = "docker"
config.ssh.insert_key = false
# Forward the Docker port
config.vm.network :forwarded_port, guest: 2375, host: 2375
# Disable synced folder by default
config.vm.synced_folder ".", "/vagrant", disabled: true
# Attach the b2d ISO so that it can boot
config.vm.provider :virtualbox do |v|
v.check_guest_additions = false
v.customize "pre-boot", [
"storageattach", :id,
"--storagectl", "IDE Controller",
"--port", "0",
"--device", "1",
"--type", "dvddrive",
"--medium", File.expand_path("../boot2docker.iso", __FILE__),
]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
config.vm.provider :parallels do |p|
p.check_guest_tools = false
p.functional_psf = false
p.customize "pre-boot", [
"set", :id,
"--device-set", "cdrom0",
"--image", File.expand_path("../boot2docker.iso", __FILE__),
"--enable", "--connect"
]
p.customize "pre-boot", [
"set", :id,
"--device-bootorder", "cdrom0 hdd0"
]
end
end