-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
8
-
False
-
-
False
-
rhel-container-tools
-
-
-
RUN 266, RUN 267, RUN 268
[2832828493] Upstream Reporter: Mario Loriedo
Upstream issue status: Closed
Upstream description:
Issue Description
Podman tries to import the machine-os into WSL even when it's impossible because the Windows features Microsoft-Windows-Subsystem-Linux and VirtualMachinePlatform aren't enabled.
This is a regression observed with the latest version of the WSL client (2.3.26.0 or later).
Steps to reproduce the issue
Steps to reproduce the issue
- Make sure to have latest version WSL (wsl --update)
- Disable the Windows features Microsoft-Windows-Subsystem-Linux and VirtualMachinePlatform
- Run podman machine init
Describe the results you received
Unable to find source-code formatter for language: log. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yamlExtracting compressed file: podman-machine-default-amd64: done Importing operating system into WSL (this may take a few minutes on a new WSL install)... Import in progress, this may take a few minutes. The operation could not be started because a required feature is not installed. Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_SERVICE_NOT_AVAILABLE Error: the WSL import of guest OS failed: command C:UsersmarioAppDataLocalMicrosoftWindowsAppswsl.exe [--import podman-machine-default C:Usersmario.localsharecontainerspodmanmachinewslwsldistpodman-machine-default C:Usersmario.localsharecontainerspodmanmachinewslpodman-machine-default-amd64 --version 2] failed: exit status 0xffffffffDescribe the results you expected
The command should NOT try to import the machine OS in WSL and propose to install WSL to the user:
Unable to find source-code formatter for language: log. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yamlWSL is not installed on this system, installing it. NOTE: A system reboot will be required as part of this process. If you prefer, you may abort now, and perform a manual installation using the "wsl --install" command.podman info output
OS: windows/amd64 provider: wsl version: 5.4.0-devPodman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Upstream URL: https://github.com/containers/podman/issues/25234
- links to