forked from geerlingguy/packer-centos-7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
40 lines (35 loc) · 1.17 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
# config.vm.define "vmware" do |vmware|
# vmware.vm.hostname = "centos7-vmware"
# vmware.vm.box = "file://builds/vmware-centos7.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-centos7"
virtualbox.vm.box = "file://builds/virtualbox-centos7.box"
virtualbox.vm.network :private_network, ip: "172.16.3.2",
nic_type: "virtio"
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