Export, Import, and Migrate WSL and WSL2 Installations

Опубликовано: 14 Октябрь 2024
на канале: Darien's Tips
1,255
26

This video will cover exporting, importing, and migrating of WSL and WSL2 distributions and customizing the location of the associated virtual hard disks. It is a continuation of “Windows Subsystem for Linux, WSL Installation on Windows 10, 11, and Server 2022.”

WSL = Windows Subsystem for Linux
TAR = Tape Archive
VHD/VHDX = Virtual Hard Disk

WSL Commands:
wsl --export (Distribution Name) (FileName.tar)
wsl --export (Distribution Name) (FileName.vhdx) --vhd
wsl --import (Distribution Name) (InstallLocation) (FileName.[tar,vhdx])
wsl --import-in-place (Distribution Name) (FileName.vhdx)


Chapters

0:00 Introduction and Welcome
0:42 Windows Subsystem for Linux, WSL, and WSL2 Refresher
1:57 Export WSL and WSL2 Distributions
3:14 Import WSL and WSL2 Distributions
4:16 Import-In-Place WSL and WSL2 Distributions
5:56 Starting an Imported WSL or WSL2 Distribution
7:25 Unregistering a WSL or WSL2 Distribution
7:53 Notes and Miscellaneous
10:13 Thank you, everyone!
10:30 Like and Subscribe