Skip to content

Instantly share code, notes, and snippets.

@genneko
Created April 4, 2019 05:37
Show Gist options
  • Save genneko/c409376ad9bd2bef1c4389cc306c63c2 to your computer and use it in GitHub Desktop.
Save genneko/c409376ad9bd2bef1c4389cc306c63c2 to your computer and use it in GitHub Desktop.
Vagrantfile to create three FreeBSD 12.0 VMs in a private subnet 192.168.10.0/24.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/freebsd-12.0"
config.vm.define :r1 do |node|
node.vm.hostname = "r1"
node.vm.network "private_network", ip: "192.168.10.1", virtualbox__intnet: "wgnet"
node.vm.provider "virtualbox" do |vb|
vb.name = "r1"
vb.memory = "512"
vb.cpus = 1
vb.gui = true
end
end
config.vm.define :r2 do |node|
node.vm.hostname = "r2"
node.vm.network "private_network", ip: "192.168.10.2", virtualbox__intnet: "wgnet"
node.vm.provider "virtualbox" do |vb|
vb.name = "r2"
vb.memory = "512"
vb.cpus = 1
vb.gui = true
end
end
config.vm.define :r3 do |node|
node.vm.hostname = "r3"
node.vm.network "private_network", ip: "192.168.10.3", virtualbox__intnet: "wgnet"
node.vm.provider "virtualbox" do |vb|
vb.name = "r3"
vb.memory = "512"
vb.cpus = 1
vb.gui = true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment