WSL import, install error: ERROR_BAD_EXE_FORMAT

Open
#42,288 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active

Research direction

Start by reproducing the failure with the listed wsl --install Ubuntu, wsl --import, or wsl --import-in-place commands on the reported Windows and WSL versions. The report provides no diagnostic logs or source entry point, so first identify which registration or VM creation path returns ERROR_BAD_EXE_FORMAT. Done means locating the cause and confirming installation or import succeeds.

Written by the indexing model from the issue text.

Description

needs-author-feedback wsl2
Windows Version

Microsoft Windows [Version 10.0.22621.6060]

WSL Version

3.0.5.0

Are you using WSL 1, WSL 2, or WSLC?
  • WSL 2
  • WSL 1
  • WSLC
Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

wsl --install Ubuntu
wsl --import
wsl --import-in-place

Expected Behavior

install or import process ok

Actual Behavior

%1 is not a valid Win32 application. Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/ERROR_BAD_EXE_FORMAT

Diagnostic Logs

No response

Dominant language
C++
Stars
34.4k
Forks
1.9k
Avg merge
1d 23h
Merged PRs (30d)
166

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/WSL

All issues in microsoft/WSL

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.