Skip to content

Copy wsl vhdx file

phaledang edited this page May 30, 2024 · 3 revisions

File location:

%userprofile%\AppData\Local\Packages\Canonical...\LocalState\ext4.vhdx.

%userprofile% is C:\Users<username>.

Import

From PowerShell: wsl --import-in-place <new_distro_name> <path_to_vhdx>

References:

https://askubuntu.com/questions/1380253/where-is-wsl-located-on-my-computer

https://superuser.com/questions/1667969/create-wsl2-instance-from-vhdx

Clone this wiki locally