problem creating Debian based machine and issues with win-sshproxy.exe #14632
Replies: 11 comments 2 replies
-
@n1hility PTAL |
Beta Was this translation helpful? Give feedback.
-
You cannot just use any old qcow2. You have to use one that is prepared specifically for the environment of machine (it has to have a ignition file, podman (at the same version as the windows client), among other things like network support already installed into it. |
Beta Was this translation helpful? Give feedback.
-
Are there instructions for generating a suitable qcow2 file somewhere? |
Beta Was this translation helpful? Give feedback.
-
As Brent mentions this option is not for a generic Linux distro, it's to allow for a customized or updated variant of the same distro podman machine is using (currently Fedora). The Linux distribution is provisioned by podman machine based on certain expectations, modifying system services, installing packages, including a custom recent copr package of podman, and various configuration changes. All these things are distribution specific so supporting additional distributions would require an additional code path per distro, and a maintainer to sign up for the ongoing work maintaining it. If you do decide to create a customized variant, WSL needs a rootfs tarball instead of a qcow (that's why you see the error). As to to the win-sshproxy error. Can you paste the event logs. The easiest way to get them is through powershell:
Internally win-sshproxy is making an ssh connection, so one simple thing to check is can you do |
Beta Was this translation helpful? Give feedback.
-
I have an existing distribution based on Debian that I am using for my current work and I would like to be able to run podman on that distribution is there documentation somewhere on the changes you mentioned above so that I can apply these changes. I was able to build and run podman from the github repo but I would like to apply the windows integration that the windows releaase provides When I run: Get-WinEvent -ProviderName '.NET Runtime' -Oldest | Format-table -Wrap I get: Get-WinEvent: There is not an event provider on the localhost computer that matches ".NET Runtime". |
Beta Was this translation helpful? Give feedback.
-
Did you install via the msi installer?. If there is no logs that implies the executable might not be at the expected location. The zip files we have include just the podman.exe remote client. If you intend to just use the podman command you could not use podman machine and instead install/manage the distro yourself and just use the windows client as described here: If you want docker clients to work though you need API forwarding, which you could still do with this approach by manually starting and stopping win-sshproxy.exe You could try to manually create what podman machine init does, and the start and stop would work, but it would be brittle, an update might break something and you would have to sort out the difference. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ah ok, so it looks for win-sshyproxy.exe in the same dir as the podman.exe so I would double check the one being ran has it next to it. The way you use it manually is like this: Replace [user] with your user and [port] with the port you decide to run the ssh service on your distro, and update the drive paths to point to where you want them (the latter needs to point to your identify key) The source code to the proxy is here: The source to machine init is here: |
Beta Was this translation helpful? Give feedback.
-
A friendly reminder that this issue had no activity for 30 days. |
Beta Was this translation helpful? Give feedback.
-
Converted to discussion since this is now about how to create a custom podman WSL instance |
Beta Was this translation helpful? Give feedback.
-
CoreOS as is isn’t compatible with WSL,since it expects a kernel ramfs where it can configure the system and wire-up device mounts. To work, it needs a custom bootstrap involving a separate path on many of the systemd init services which implements the fs pivot it does differently. That would also require a new regular build since it would be a different binary output. That said if you want to run CoreOS you could just set it up in a VM (e.g using the built in Hyper-V in windows). |
Beta Was this translation helpful? Give feedback.
-
/kind bug
/kind feature
Description
I'm trying to create a machine using
Describe the results you received:
Downloading VM image: debian-11-generic-amd64.qcow2: done
Importing operating system into WSL (this may take 5+ minutes on a new WSL install)...
Import in progress, this may take a few minutes.
Unspecified error
Error: WSL import of guest OS failed: exit status 4294967295
Describe the results you expected:
machine installed
Additional information you deem important (e.g. issue happens only occasionally):
I have tried several debian distributions with same result either specifying the URL or the path to the downloaded image
Installing the default machine (using fedora) worked fine apart from
I could not find the error in the windows logs some additional pointers on this would be useful also instructions on how to run win-sshproxy.exe after the machine has been started
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.):
Beta Was this translation helpful? Give feedback.
All reactions