-
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
Can't reinit Podman inside WSL2 #15107
Comments
Hi @delucca am I correct in that you are running podman machine init and start within WSL2? Those commands need to be run on your Windows host in powershell / windows terminal. See the tutorial here: https://github.com/containers/podman/blob/main/docs/tutorials/podman-for-windows.md |
hi @n1hility thanks! I've followed the steps under the tutorial. I've installed podman on Windows, but how can I access and use that podman machine inside WSL? For example (like I do with Docker), Podman is running on Windows, and I've a WSL machine running, so I can execute Podman inside my WSL machine that will use the Podman machine hosted in Windows? |
WSL does not allow nested virtualization, so starting machine inside WSL2 will not work. I am not so sure what you mean with 'use podman machine inside WSL'. You mean to use the podman command inside the debian/ubuntu environment to handle the WSL2 Fedora environment? Have you tried setting the Docker host inside the WSL2 environment?
Note: unable to test atm. |
Docker works (as expected) inside WSL2. To achieve this I need to install Docker in the Windows Machine, and it creates a socket that can be used within WSL2 In any case, I've decided to move away from WSL and go back to Linux. I had several problems with WSL2 (mainly related to the filesystem and USB in general), so this issue is no longer relevant (at least for me) |
I forgot that we run I will record that this needs to be described (new issue). Can you otherwise close this one as the described practice is not recommended.
where the port is based on the host's connection:
and make sure you share the keys with the other WSL environment to allow password-less (key-based) authentication. |
A friendly reminder that this issue had no activity for 30 days. |
Closing since there was no underlying bug. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I tried to use Podman within my setup (Windows 11 + WSL2) but was having issues while trying to connect with a container from Windows.
I found this reply, so I updated my Podman version to
4.1.1
and, after that, I ran:Them:
After the
machine start
command, I received the following error:I've already tried to change the permissions of
/dev/kvm
to666
, but the issue remains.What should I do? Even with
4.1.1
if I run a Podman container I can connect with its port from within Linux, but I can't access it from Windows.Steps to reproduce the issue:
N/A
Describe the results you received:
After running
podman machine start
Describe the results you expected:
To be able to interact with my containers ports from the Windows side
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):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
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: