canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.89k stars 861 forks source link

[docs]: `wsl --list` not output downloaded image from Microsoft Store #5746

Open minhtaile2712 opened 3 days ago

minhtaile2712 commented 3 days ago

On this link WSL Tutorial, the tutorial claims that

Which is not correct, effectively make the Option #1 of the tutorial invalid.

If follow the Option #1, the later command wsl --distribution Ubuntu-24.04 will fail with this output:

There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND

Please fix this option or remove it if not applicable.

The solution from Automatic setup with cloud-init providing this command ubuntu2404.exe install --root may solve the problem of wsl --distribution Ubuntu-24.04.

Tested system:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.4169
TheRealFalcon commented 2 days ago

@minhtaile2712 , thanks for filing the issue. I have a PR up at https://github.com/canonical/cloud-init/pull/5752 to address this.