Vaprobash
Vaprobash copied to clipboard
Use auto network only if hostmanager is installed
On my machine, hostmanager does not work very well and I removed it. Auto network still stayed around. The problem is that even if I assign a specific address and hostname in the Vagrantfile in the server_ip setting, neither works. I have to figure out the IP address assigned by auto network and then use that.
IMHO, this is a bug as neither config options server_ip and hostname work in this scenario. The change in PR should fix the issue by using auto_network only if hostmanager is also installed (so that at least hostname can be used).
I'm guessing to figure out the IP address you had to go into the VM and run ifconfig ?
Yes, that's right.
Actually, I can see the IP when the machine is created but it is usually fast and the screen gets filled with output from provisioning.
I too have problems with hostmanager, but was able to get the very similar vagrant-hostsupdater plugin to work. If we're going to make auto network conditional, can we have it check for any of (at least the most popular of) the hosts-modifying plugins before disabling?