For this chapter, a different Vagrantfile is needed.
Feel free to use the following example if required—be sure to destroy any previous boxes to free up resources:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "centos1" do |centos1|
centos1.vm.box = "centos/7"
centos1.vm.network "private_network", ip: "192.168.33.10"
centos1.vm.hostname = "centos1"
centos1.vm.box_version = "1804.02"
end
config.vm.define "centos6" do |centos6|
centos6.vm.box = "centos/6"
end
config.vm.define "debian7" do |debian7|
debian7.vm.box = "debian/wheezy64"
end
end