Skip to content

Instantly share code, notes, and snippets.

@Prajwalprakash3722
Last active August 7, 2023 16:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
2 ubuntu 22.04 os
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2204"
config.vm.network "private_network", type: "dhcp"
(1..2).each do |i|
config.vm.define "ubuntu#{i}" do |node|
node.vm.provider "libvirt" do |vb|
vb.memory = "1024"
end
node.vm.network "forwarded_port", guest: 80, host: 808#{i}"
node.vm.provision "shell", inline: "echo Hello from Ubuntu #{i}!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment