From 0e7ab69aad3f61aadcc6ca27ef81fadc71e54563 Mon Sep 17 00:00:00 2001 From: Glenn Date: Wed, 5 Apr 2023 00:39:26 +0200 Subject: [PATCH] fix vagrant configuration --- vagrant--devstack/Vagrantfile | 4 +++- vagrant--devstack/provision/openstack.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vagrant--devstack/Vagrantfile b/vagrant--devstack/Vagrantfile index 2884124..79e43a0 100644 --- a/vagrant--devstack/Vagrantfile +++ b/vagrant--devstack/Vagrantfile @@ -7,7 +7,7 @@ Vagrant.configure('2') do |config| config.vm.provider 'libvirt' do |domain| domain.memory = 18_000 domain.nested = true - domain.cpus = 2 + # domain.cpus = 2 end config.vm.provider 'virtualbox' do |vb| @@ -28,6 +28,8 @@ Vagrant.configure('2') do |config| machine.vm.network 'forwarded_port', guest: port, host: port, host_ip: '127.0.0.1' end machine.vm.network 'forwarded_port', guest: 80, host: 1080, host_ip: '127.0.0.1' + # machine.vm.network "public_network", bridge: 'dummy0', auto_config: false + machine.vm.network "public_network", dev: "br25", type: "bridge", auto_config: false end config.vm.provision 'shell', name: 'provision/base', path: 'provision/base.sh', privileged: true diff --git a/vagrant--devstack/provision/openstack.sh b/vagrant--devstack/provision/openstack.sh index e3c43d1..ce964e3 100755 --- a/vagrant--devstack/provision/openstack.sh +++ b/vagrant--devstack/provision/openstack.sh @@ -27,6 +27,7 @@ iface br25 inet static bridge_maxwait 0 bridge_fd 0 MARK +sudo ifup br25 ## ## Get openstack