Skip to content

Commit a318505

Browse files
wip
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 6c19b68 commit a318505

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

012.multi.Vagrantfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://stackoverflow.com/questions/60940227/two-operating-systems-in-a-single-vagrantfile
2+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
3+
# box 1 - centos
4+
config.vm.define "centos" do |centos|
5+
centos.vm.box = "centos/7"
6+
centos.vm.hostname = "centos"
7+
centos.vm.network :private_network, ip: "192.168.75.10"
8+
# setting name of vm to inspect in virtualbox
9+
centos.vm.provider :virtualbox do |vb|
10+
vb.name = "centos"
11+
end
12+
# box 2 - ubuntu
13+
end
14+
config.vm.define "ubuntu" do |ubuntu|
15+
ubuntu.vm.box = "ubuntu/trusty64"
16+
ubuntu.vm.hostname = "ubuntu"
17+
ubuntu.vm.network :private_network, ip: "192.168.75.11"
18+
# setting name of vm to inspect in virtualbox
19+
ubuntu.vm.provider :virtualbox do |vb|
20+
vb.name = "ubuntu"
21+
end
22+
end
23+
end

0 commit comments

Comments
 (0)