Vaprobash icon indicating copy to clipboard operation
Vaprobash copied to clipboard

Use auto network only if hostmanager is installed

Open hussainweb opened this issue 9 years ago • 4 comments

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).

hussainweb avatar Feb 07 '16 14:02 hussainweb

I'm guessing to figure out the IP address you had to go into the VM and run ifconfig ?

fideloper avatar Feb 12 '16 14:02 fideloper

Yes, that's right.

hussainweb avatar Feb 12 '16 14:02 hussainweb

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.

hussainweb avatar Feb 12 '16 14:02 hussainweb

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?

stereoplegic avatar Apr 01 '16 17:04 stereoplegic