-
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
Vagrant ssh and synced folders, dns stopped working. Initializing new boxes with same problems #9596
Comments
I have the same problem, or something close enough that I greatly suspect it has the same cause. I am running Windows 10 x64 on host. My experiences follows.. VirtualBoxOld Ubuntu 17.10 box with a static IP on a private networkUsed to work just fine. But since Vagrant 2.0.3, the second New Ubuntu 17.10 box with no private networkAll Granted, I have put I get a feeling that the "fix" for the network configuration introduced in 2.0.3 was sort of half-assed and might have "fixed the first" problem in < 2.0.3 only on the surface but introduced the problems we're facing now. New Ubuntu 18.04 (development branch) boxSame same. Btw, boxes I use for the 18.04 release: VMware WorkstationNew Ubuntu 18.04 box with no private network(have not tried VMware on Ubuntu 17.10) This works only for the first spin, but the second I am sorry for the low quality of this post, I haven't spent to much time investigating this issue. But hopefully it helps somewhat. |
@martinanderssondotcom - it sounds like you're describing a different issue from the one you're commenting on. The original post has no mention of private networks. If you're experiencing an issue with private networking on ubuntu 17.10 and older, please open a new issue. |
negative! =) Look, same symptoms. Plus, pengo does have network configured. Plus number two: I see these same symptoms with or without a private network configured for Ubuntu 18.04 and VMware Workstation. And the biggest plus of them all: Peengo describes first and foremost issues with vagrant SSH'necting into the machine and only mentions in the passing that the machine has no network at all. But really, this is the problem. The machine is like booted from cyberspace, he can't connect to no one and no one can connect to him. I.e., it is the exact same problem (what I call "symptom") that I am having. And the whole idea with issue trackers, the way I see it.. is that we collect issues and for each issue, enumerate environment factors to facilitate debugging and problem-solving. For sure, in theory.. we could speaketh of two different root causes that happened to cause the same symptom - which I doubt. But even if that was the case (and we knew this) then I would personally still insist that the issue tracker remain focused on the symptom even though several fixes might, in the end, get deployed. Okay, so, having said that.. if you still think I should open a new issue I will =) Let me know! |
@martinanderssondotcom - If you are experiencing the same problem as the original issue with a Vargantfile that has no private networks defined then it makes sense to comment here. However if you are only experiencing issues once you define private networks, then open a new issue. Port forwards are handled by the virtualbox provider, where as configuring private networks are handled by guest capabilities in Vagrant. Thanks! |
@martinanderssondotcom have you tried any other non-ubuntu distro like centos? |
@peengo - the uninstall tool provided by the vagrant installer package should be sufficient enough. But if you wanted to be sure after uninstalling, I'd just make sure |
peengo, no I didn't. I went back to Vagrant 2.0.2 and stick to not having a private network, for now. That's better than not being able to make a second vagrant up lol. |
I'll try that version but I doubt I'll be able to "vagrant ssh" |
..and then what happened? |
Still the same issue. I've given up on this. Here is what I just tried: Uninstalled VirtualBox & Vagrant vagrant init ubuntu/xenial64 |
Still the same issue with Vagrant 2.0.4. |
This may be an issue with the box in use. I will pull one of the ubuntu boxes today and see if i can reproduce the behavior. Do you encounter the same behavior using the bento boxes? |
lol the box I use is built completely by the book =) Distributed here: https://app.vagrantup.com/pristine/boxes/ubuntu-budgie-18-x64 Files used (such as Packer's template) can be found here: https://github.com/martinanderssondotcom/box-ubuntu-budgie-18-x64 Yes, please do try these boxes with both VirtualBox and VMware. I would appreciate that very much. Do one |
@martinanderssondotcom Hi, you appear to be experiencing a different issue that what is originally described here. Please feel free to open a new issue, and we can track the problem there. Thanks! |
Hi there, Thanks for reporting this bug. I'm sure this was a real issue when originally reported (our fault for not looking sooner!) but there have been multiple Vagrant releases since the original report. I'm going to close this issue now and request you reopen the issue if you're still experiencing this problem. I'm sorry this wasn't looked at earlier Cheers! |
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. |
Vagrant version
Vagrant 2.0.3
Host operating system
Win7 64
Guest operating system
ubuntu/xenial64
but i've also tried centos/7 & bento/ubuntu-16.04
Vagrantfile
I've also tried making another box from scratch.
Debug output
https://gist.github.com/peengo/ede8bfbb5343a91eacebceda15977587
Expected behavior
vagrant ssh, machines dns, synced folders should work.
Actual behavior
After my vagrant box started to acting slow I reloaded it. After that I somehow lost network.
vagrant ssh doesn't work. So I've entered the machine manually via virtualbox and got in.
Found out that pinging google.com doesn't work but pinging 8.8.8.8 does. So I can't do any apt-get stuff.
Synced folders stopped working also.
Basically since I realoaded this box every new box I try to make I am stuck at this timeout and namespaces in the guest are not working. I am stuck at this since last thursday and I've tried anything I could think of.
Different boxes
Default VagrantFile
Different vagrant and virtualbox versions (including removing .virtualbox and .vagrant.d folders)
Setting up public_network and private_network in VagrantFile
Adding bridged and host-only network adapter in virtualbox
Deleting and readding network interfaces in VirtualBox
Yes SSH daemon is on
Checking that firewall (ufw) is disabled
Removing VMWare if somehow could interfer with vagrant or virtualbox
This box was working for couple of weeks if not months without any of this issues. I haven't updated vagrant or virtualbox unless they updated in the background? Right now I have both at the latest version.
Haven't really installed anything new in the meantime but there could be some windows updated in between.
Could be a virtualbox issue. I am not sure. The only thing I changed in virtualbox was memory from 1gb to 2gb (which I now know there is also vagrant cmd for it). Nothing else and it was working when I did that for weeks. Haven't opened virtualbox since then but just recently when I got a timeout error message and started digging what could be wrong.
The machine is up. But networking is messed up. Thats why it timeouts after continously retrying to SSH.
The text was updated successfully, but these errors were encountered: