Skip to content

HOSTTYPE reports incorrect value on aarch64 systems #40040

Closed

Description

Windows Version

Microsoft Windows [Version 10.0.26100.8037]

WSL Version

2.6.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

Start a new bash shell
Type echo $HOSTTYPE

Expected Behavior

Expect the value of HOSTTYPE not to be explicitly set. If it is necessary to be set, expectation is that this value would be set to the correct host type. On a Qualcomm SoC based Windows WSL install this should be aarch64.

Actual Behavior

Running echo $HOSTTYPE today results in a value of x86_64 being reported when the value should be aarch64.

Diagnostic Logs

No response

Activity

  1. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    Logs are required for review from WSL team

    If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
    Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

    How to collect WSL logs

    Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
    Set-ExecutionPolicy Bypass -Scope Process -Force
    .\collect-wsl-logs.ps1
    

    The script will output the path of the log file once done.

    If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

    Once completed please upload the output files to this GitHub issue.

    See Collect WSL logs (recommended method).

    If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

  2. dkalowsk commented on Mar 30, 2026

    @dkalowsk
    Author

    Looks like this is explicitly set behavior when looking at the code:

  3. dkalowsk commented on Mar 30, 2026

    @dkalowsk
    Author

    Logs are required for review from WSL team

    If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

    How to collect WSL logs
    Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
    Set-ExecutionPolicy Bypass -Scope Process -Force
    .\collect-wsl-logs.ps1
    

    The script will output the path of the log file once done.

    If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

    Once completed please upload the output files to this GitHub issue.

    See Collect WSL logs (recommended method).

    If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

    WslLogs-2026-03-30_11-36-12.zip

  4. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

    Diagnostic information
    Detected appx version: 2.6.3.0
    Found no WSL traces in the logs
    
  5. dkalowsk commented on Mar 31, 2026

    @dkalowsk
    Author

    Second try. It seems the diagnostic information does not pick up the echo command though.

    WslLogs-2026-03-31_08-57-57.zip

  6. github-actions commented on Mar 31, 2026

    @github-actions
    Contributor
    Diagnostic information
    Detected appx version: 2.6.3.0
    
  7. chemwolf6922 commented on Apr 28, 2026

    @chemwolf6922
    Contributor

    Fixed in 2.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions