vagrant deployment get stuck after vm has booted

I am trying to deploy 3 nodes of vm into virtualbox using vagrant, but it gets stuck at this point

https://preview.redd.it/m852ot2gpv781.png?width=721&format=png&auto=webp&s=03dfce5293e75c3f071cdbc93cbf461c723b294d

VM is running but vagrant deployment is not going any further.

Here is my vagrant file

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"
PUBLIC_NET_BRIDGE = 'Realtek PCIe GbE Family Controller #5'
SWAMR_MASTER_PUBLIC_IP = "192.168.1.152"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"]
config.vm.box = "ubuntu/focal64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.define "swarm-master" do |d|
d.vm.provision :shell, path: "bootstrap_ansible.sh"
d.vm.hostname = "swarm-master"
d.vm.network "private_network", ip: "10.100.192.200"
d.vm.network "public_network", ip: SWAMR_MASTER_PUBLIC_IP, bridge: PUBLIC_NET_BRIDGE
end
(1..2).each do |i|
config.vm.define "swarm-node-#{i}" do |d|
d.vm.hostname = "swarm-node-#{i}"
d.vm.network "private_network", ip: "10.100.192.20#{i}"
end
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
end

is there anything I can do from this not happen.

any suggestion will be greatly appreciated.

My host machine has 8GB RAM on ssd, plenty of space

only 2 other VMs are running each with 1GB alloted.

1 thought on “vagrant deployment get stuck after vm has booted”

  1. I tried your Vagrantfile, found no problems booting. (Though I had to change the `d.vm .network “public_network”…`, as my host has different interfaces).

    I’ve got no specific solution, but try booting without the ‘public_network’ line, maybe without plugins, then add lines until things break again: there’s your problem.

    Reply

Leave a Comment