-
Notifications
You must be signed in to change notification settings - Fork 642
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
Multipass for Windows instance cannot resolve hostnames #572
Comments
Thank you for reporting this issue. Are you running a firewall? If so, perhaps you need to allow instances access to DNS? But it certainly seems like something is blocking DNS lookup on the virtual network. |
Can you try pinging the address listed there? Also, the equivalent of Ultimately, it's Hyper-V providing the "Default Switch" network in the Hyper-V manager, and that's what should be handling the DHCP (which it does do, since you were able to reach the instance in the first place) as well as DNS (which seems broken in your case). As a workaround, you could use the public |
I don't see any DNS servers there in the output from that:
|
That's likely the culprit then, your Windows DHCP didn't give your instance a DNS address... Can you check and launch any other VM manually with the Hyper-V manager, connect it to the Default Switch and see if you get a happy network? |
I thought maybe a reboot might help as I was playing with the Default Switch network card settings and messed something up. The settings got restored but for some reason now |
same issue here. |
Manually edited /etc/resolv.conf with cloudfare DNS |
By chance, is anyone here using Docker Linux Containers on Windows (LCOW)? Having that running affects non-Docker VM's from having a usable DNS provided by the Hyper-V default switch. See minishift/minishift#1792 (comment) and docker/for-win#1166 (comment). |
Yeah I do have Docker for Windows installed and running. I actually have bigger problems with multipass which are that I can't run it at all since rebooting as now multipassd won't start successfully for some reason. Is there some log or something I can look at to work out why that may be? |
Thank you for confirming that you have Docker for Windows running. We'll have to think about how best to work around the issue where the Hyper-V Default Switch only allows sharing by one service. Regarding the Something like You might be hitting #573. |
This is the log:
It looks like it is a similar issue |
Yep, I think either Docker or Hyper-V has reserved that port:( For a temporary workaround, you can set the Sorry about all of this frustration, but it's good to know what the issues are. |
I tried the workaround but after it started I tried restarting the VM but |
Did you happen to uninstall and reinstall multipass? If you did, then the internal database multipass uses for its instances was wiped. You'll need to delete the running VM in the Hyper-V Manager and create a new instance in multipass. |
I did not. It's the same installation. It seems like there should be a way to reattach an instance to the database in this case. Because of the DNS issue I hadn't configured the instance yet but I would have been exceptionally annoyed if I had invested time in configuring it and then found I couldn't access it. |
Ah, ok, I think I know why it's not showing up in multipass. It's because the original instance was created when Perhaps modifying the multipassd system service to use the |
I changed the service command line to |
Good grief...I'll look into if there is way to make that work. |
Ok, I was able to make it work by doing the following:
I did this and now have |
Another bug report supporting the DNS issue and Docker: |
This doesn't work for me. The service looks like it starts successfully but then stops for some reason. The services UI says it is Running but if you refresh then it isn't again. |
A bit of a shot in the dark, but do you have an internet connection when that happens? Because we currently have an open bug where multipassd fails to start when it can't access image hosts: #555 |
@marksztainbok-okta can you please also include |
I do have an internet connection at the time I'm starting multipassd. I've added the parameter. Does it produce logs somewhere I can look to see what the issue is? |
Yes, you can access them in the Event Viewer, under "Windows Logs->Application". Is there anything suggestive? |
No it says the service started but then it didn't. |
Hmm, I'm not really sure what's going on at this point. |
That is correct |
We've not seen this in a while, please reopen if you have this issue still. |
This ought to fix it. Don't modify
|
it's works, thank you! @pcgeek86 |
So multipass for windows, whether it's virtualbox or hyper-V, can't rely on the dns client from windows itself to serve it dns resolution? |
I just installed the beta of the Windows Multipass and set up an instance and found that it cannot resolve hostnames.
When I attempted to resolve a hostname, I'm getting an error similar to this:
It's not a network connectivity issue as if I use an IP address I can successfully communicate:
I configured instance using the 18.04.1 image and am running Windows 10 Enterprise version 10.0.17763 N/A Build 17763.
My resolv.conf in the instance contains the folllowing:
Any ideas what could be wrong and how to fix it?
The text was updated successfully, but these errors were encountered: