In this chapter, we're going to use two CentOS boxes and two Debian boxes but, again, the principles we discuss will be fairly universal in nature.
The following Vagrantfile should be enough to get you started:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "centos1" do |centos1|
centos1.vm.box = "centos/7"
centos1.vm.box_version = "1804.02"
centos1.vm.network "private_network", ip: "192.168.33.10"
centos1.vm.hostname = "centos1"
centos1.vm.provider "virtualbox" do |centos1p|
centos1p.memory = 2048
centos1p.cpus = 2
end
end
config.vm.define "centos2" do |centos2|
centos2.vm.box = "centos/7"
centos2.vm.box_version = "1804.02"
centos2.vm.network "private_network", ip: "192.168.33.11"...