-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
42 lines (34 loc) · 1.21 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
# VMware Fusion.
# `vagrant up vmware --provider=vmware_fusion`
config.vm.define "vmware" do |vmware|
vmware.vm.hostname = "ubuntu1204-vmware"
vmware.vm.box = "file://builds/vmware-ubuntu1204.box"
vmware.vm.network :private_network, ip: "192.168.3.2"
config.vm.provider :vmware_fusion do |v, override|
v.gui = false
v.vmx["memsize"] = 1024
v.vmx["numvcpus"] = 1
end
config.vm.provision "shell", inline: "echo Hello, World"
end
# VirtualBox.
# `vagrant up virtualbox --provider=virtualbox`
config.vm.define "virtualbox" do |virtualbox|
virtualbox.vm.hostname = "virtualbox-ubuntu1204"
virtualbox.vm.box = "file://builds/virtualbox-ubuntu1204.box"
virtualbox.vm.network :private_network, ip: "172.16.3.2"
config.vm.provider :virtualbox do |v|
v.gui = false
v.memory = 1024
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
config.vm.provision "shell", inline: "echo Hello, World"
end
end