Multiple instances with same configuration
Simple approach to define a large number of virtual machines with same configuration.
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
N = 3
(1..N).each do |machine_id|
config.vm.define "exvm-#{machine_id}" do |exvm|
exvm.vm.box = "gutehall/fedora40"
exvm.vm.provider "parallels" do |p|
p.memory = "1024"
p.cpus = "2"
end
exvm.vm.hostname = "exvm-#{machine_id}"
end
end
end