vagrant-hostmanager icon indicating copy to clipboard operation
vagrant-hostmanager copied to clipboard

Adding aliases for the host computer.

Open djmittens opened this issue 10 years ago • 4 comments

Hi i would like to be able to alias the host computer for access from the vm (particular use case is xdebug for php which does reverse debug connections from server to ide).

djmittens avatar Oct 15 '14 19:10 djmittens

I would like this as well. In chef recipes, you can use node['network']['default_gateway'] if you've setup a private network, but I don't want to have to template all of my Laraval config files in Chef...

jhoffmann avatar Apr 13 '15 14:04 jhoffmann

+1

garethahealy avatar Jan 11 '16 10:01 garethahealy

+1

creftos avatar Dec 21 '16 18:12 creftos

I was going to open a new issue, but saw this one, hopefully I can provide more information.

My use case is with the vagrant-proxyconf plugin. I have a squid proxy running on my host machine for caching apt and yum packages and use that plugin to configure the vagrant guest. Issue is I must provide a valid IP for the guest to reach the host. Usually this is the gateway of the first interface that vagrant configures, but that can vary between providers(I use both vmware fusion and virtualbox and each one is different in how networking is setup).

When using the vagrant-proxyconf plugin, I hardcode this IP address in my Vagrantfile, but it would be nice and more portable to use a name that can be set in /etc/hosts.

davidmnoriega avatar Jul 17 '17 18:07 davidmnoriega