-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow network connection #1807
Comments
You could try to add:
|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
w34u - Websites Which Work For You |
Thanks, I'm glad you figured this out. Unfortunately, the heuristic for when to enable/disable this is really just... not strong. I don't know the cases when internet is slow. Sigh VirtualBox. |
Without those lines, VitrualBox machines are being very slow with all network operations (tested only in OS X Lion, but they are supposed to work everywhere). See hashicorp/vagrant#1807
config.vm.provider :virtualbox do |vb| worked like a charm, thank you!!! |
For more info see hashicorp/vagrant#1807
This isn't just a VirtualBox thing. I run into the exact same problem with the Parallels provider. |
This seems to work. Does anyone have an explanation of what is happening behind the scenes to cause the slow down? Just curious. |
Without those lines, VitrualBox machines are being very slow with all network operations (tested only in OS X Lion, but they are supposed to work everywhere). See hashicorp/vagrant#1807
I'd like to know as well? Thanks! |
This issue also exists on the vagrant-parallels provider. See Parallels/vagrant-parallels#97 There might be a more general fix necessary... |
Test case: a wget of an url from a public cdn:
I was able to fix it (for the most part) using this: http://superuser.com/a/850389/174755 |
it works thanks |
I had success with the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi
Been using a vagrant 2 installation of ubuntu 12.04 on a Linuxmint host.
Getting very slow internet connection on all connections.
Vagrant file has this
Vagrant.configure("2") do |config|
This Vagrantfile is auto-generated by
vagrant package
to containthe MAC address of the box. Custom configuration should be placed in
the actual
Vagrantfile
in this box.config.vm.base_mac = "080027129698"
config.vm.network :public_network
config.vm.synced_folder "/home/julianb/MyDocuments/WebSites/JamesGrey/ContentCapsule/working", "/var/ContentCapsule"
config.vm.network :forwarded_port, guest: 80, host: 8080
end
When I look at the config using virtualbox admin there are two adapters configured, a NAT with the ports forwarded and a bridge without any ports forwarded. which is, presumably why the problems are occurring.
Anybody got any ideas how to fix this?
Jules
The text was updated successfully, but these errors were encountered: