File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments