From 6d6dc8121e13a589e9a56613fccf756155836697 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Fri, 7 Jun 2024 21:52:58 +0200 Subject: [PATCH] vagrant: some fixes + use br0 as bridged interface --- vagrant/Vagrantfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 2b34b95..f8c96c9 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -26,10 +26,10 @@ Vagrant.configure(2) do |config| # node.vm.network "private_network", ip: "172.16.16.100" node.vm.network :public_network, - #:dev => "wlp5s0", + :dev => "br0", :mode => "bridge", :type => "bridge", - :ip => 192.168.0.21 + :ip => "192.168.0.21" @@ -40,7 +40,7 @@ Vagrant.configure(2) do |config| #end node.vm.provider :libvirt do |libvirt| - libvirt.name = "kmaster" + libvirt.hostname = "kmaster" libvirt.memory = MEMORY_MASTER_NODE libvirt.nested = true libvirt.cpus = CPUS_MASTER_NODE @@ -63,12 +63,12 @@ Vagrant.configure(2) do |config| node.vm.box_version = VAGRANT_BOX_VERSION node.vm.hostname = "kworker#{i}.home.lab" - # node.vm.network "private_network", ip: "192.168.0." + (20+i}.to_s" + # node.vm.network "private_network", ip: "192.168.0." + (20+i).to_s" node.vm.network :public_network, - #:dev => "wlp5s0", + :dev => "br0", :mode => "bridge", :type => "bridge", - :ip => "192.168.0." + (20+i}.to_s + :ip => "192.168.0." + (20+i).to_s #node.vm.provider :virtualbox do |v| @@ -78,10 +78,10 @@ Vagrant.configure(2) do |config| #end node.vm.provider :libvirt do |libvirt| - libvirt.name = "kworker#{i}" - libvirt.memory = MEMORY_WORKER_NODE - libvirt.nested = true - libvirt.cpus = CPUS_WORKER_NODE + libvirt.hostname = "kworker#{i}" + libvirt.memory = MEMORY_WORKER_NODE + libvirt.nested = true + libvirt.cpus = CPUS_WORKER_NODE libvirt.storage_pool_path = '/srv/vms' libvirt.storage :file, :size => '50G', :type => 'qcow2' end