UtahDave / salt-vagrant-demo

Demo of Salt in Vagrant. 1 master and 2 minions
Apache License 2.0
247 stars 191 forks source link

Host-only network does not allow communication between master and minions #40

Closed faulesocke closed 6 years ago

faulesocke commented 7 years ago

The VirtualBox provider by default creates a host-only network per machine, as documented here: https://www.vagrantup.com/docs/virtualbox/networking.html

Therefore communication between the virtual machines is not possible. To fix the issue, just modify the vm.network calls to use a virtualbox internal network, for example:

master_config.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: "minionnet"

UtahDave commented 6 years ago

@faulesocke, are you sure? The virtual machines can and do communicate with each other in my testing.

UtahDave commented 6 years ago

@faulesocke are you still seeing this behavior? I can't reproduce. After spinning up the VMs they do communicate.

UtahDave commented 6 years ago

I think this may have been an issue with networking on your box. I'm going to close this for now since I haven't heard back.

If anyone continues to run into this issue, please comment here and I'll happily reopen.

Thanks!