Skip to content

Sparse VHD support is currently disabled due to potential data corruption. #13075

Description

@imjiaoyuan

Windows Version

Microsoft Windows [版本 10.0.19044.5854]

WSL Version

2.5.8.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.1-1

Distro Version

archlinux

Other Software

No response

Repro Steps

PS C:\Users\JiaoYuan> wsl --manage archlinux --set-sparse true

Expected Behavior

PS C:\Users\JiaoYuan> wsl --manage archlinux --set-sparse true
正在进行转换,这可能需要几分钟时间。
由于潜在的数据损坏,目前已禁用稀疏 VHD 支持。
若要强制分发使用稀疏 vhd,请运行:
wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe
错误代码: Wsl/Service/E_INVALIDARG

Actual Behavior

PS C:\Users\JiaoYuan> wsl --manage archlinux --set-sparse true
正在进行转换,这可能需要几分钟时间。
由于潜在的数据损坏,目前已禁用稀疏 VHD 支持。
若要强制分发使用稀疏 vhd,请运行:
wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe
错误代码: Wsl/Service/E_INVALIDARG
PS C:\Users\JiaoYuan> wsl.exe --manage archlinux --set-sparse --allow-unsafe
--allow-unsafe 不是有效的布尔值,<true|false>
错误代码: Wsl/E_INVALIDARG
PS C:\Users\JiaoYuan>

Diagnostic Logs

WslLogs-2025-06-09_14-32-16.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions