-
Notifications
You must be signed in to change notification settings - Fork 2.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
Cannot resolve mirrors.fedoraproject.org Windows machine init #13700
Comments
Can you ssh into the vm with @n1hility PTAL |
@Luap99 unfortunately no since the machine is never started and failed init.
|
@AddictArts is this issue transient? what happens if you podman machine rm and then podman machine init? If you have wsl already installed as your instructions indicate, are you able to reach remote sites from within the stock wsl instance (e.g run “wsl” then after getting a bash promt does curl resolve remote addresses)? btw I’m away this week with limited availability so will unfortunately be very delayed in replying. |
@n1hility Thanks for asking. No it is not transient. I did try those steps and I get the same results. Inside WSL2 and Ubuntu instance I am able to access remote sites. Mirrors.fedoraproject.org is a redirect, which I can curl from wsl2. This machine though tends to use ipv6, or at least I have had to use ::1 for example as 127.0.0.1 would not work, nor would localhost. Just pointing this out on the off chance it is ipv6 related. Ignore if otherwise.
|
@AddictArts it could very well be ipv6 related. Can you run the same test on the wsl instance that podman created? So basically after machine init fails do: then do Whats the output look like? Could you also cat /etc/resolv.conf? Thanks! |
The @n1hility Oddly today I tried again from the top with Now I get this, but it seems like I can ignore it, different issue, tmp issue
|
@AddictArts ah glad to hear it’s working now. The bogus warning you mentioned was recently fixed, and will be in the next release: If it bothers you, you should be able to edit your containers conf and manually set it to the windows temp folder |
Thanks @n1hility I tried a number of ways to set that
That didn''t work. Then I saw that the go code looks at
And that eliminated the warning message. |
@AddictArts Sorry I should have mentioned: The containers.conf is in a slightly different location on Win, under %AppData%/containers It should already exist and contain your connection info, but you would have to add that section like you did in your sample. That's probably why it wasn't taking effect. |
Hi! Happening the same here but for When I try
As suggested, I tried with the following outputs:
Any suggestions? |
Ok so avoid previous comment. I figured out the problem has to do with wsl version 2. I made the downgrade to version 1 and connection to internet seems to work fine. Keeping all this info for the record, just in case someone comes with the same problem as me |
WSL 2 was confirmed the issue for myself as well The following commands should get it to work
|
You should only ever use WSL2 with podman (Wsl 1 is very likely to lead to problems since it does not implement all Linux system calls (it’s also deprecated)) |
@n1hility is there anyway podman could detect that it is running on WSL1, and fail with a decent error message? |
@rhatdan yes we should be able to override and prevent it on on init and fail on start if it was changed afterwords. I’ll put a PR together. |
I facing the same problem. |
I had the same error but resolved it (while still using WSL2) by trying the 4.2 prerelease |
BUG REPORT
/kind bug
Windows
podman machine init
after podman-4.0.2.msi install has an error. " - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64".Steps to reproduce the issue:
Install WSL2
Install podman-4.0.2.msi
Run podman machine init using the Command Prompt.
C:>podman machine init
Extracting compressed file
Importing operating system into WSL (this may take 5+ minutes on a new WSL install)...
Installing packages (this will take awhile)...
Failed to set locale, defaulting to C.UTF-8
Fedora 35 - x86_64 0.0 B/s | 0 B 02:00
Errors during downloading metadata for repository 'fedora':
Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Error: package upgrade on guest OS failed: exit status 1
Expected it to run without error.
I was connected to the internet and able to resolve
curl 1.1.1.1
along with mirrors.fedoraproject.org in a web browser.Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Windows 10 latest stable updated
WSL2
The text was updated successfully, but these errors were encountered: