You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! One of the projects I use frequently, https://github.com/roots/trellis, uses vagrant-hostmanager to manage the hosts file on the host for accessing local VMs. For whatever reason, connecting to the VMs in the browser is incredibly slow when there's only an IPv4 entry in hosts, and I've been able to fix it by adding a separate entry for ::1. A section of /etc/hosts might look like this:
I'd love to do this programmatically, so I was curious if this is something the plugin is currently capable of (perhaps undocumented) or something that could be added as a feature?
Thank you!
The text was updated successfully, but these errors were encountered:
I needed to do something similar today. Using the Custom IP resolver functionality seems to do the trick as it will take any output and write to /etc/hosts. Try:
config.hostmanager.ip_resolver = proc do
`echo ::1`.rstrip
end`
Hi there! One of the projects I use frequently, https://github.com/roots/trellis, uses
vagrant-hostmanager
to manage thehosts
file on the host for accessing local VMs. For whatever reason, connecting to the VMs in the browser is incredibly slow when there's only an IPv4 entry inhosts
, and I've been able to fix it by adding a separate entry for::1
. A section of/etc/hosts
might look like this:I'd love to do this programmatically, so I was curious if this is something the plugin is currently capable of (perhaps undocumented) or something that could be added as a feature?
Thank you!
The text was updated successfully, but these errors were encountered: