11월, 2021의 게시물 표시

WSL2 (how to move the vhdx of wsl2 to other disk)

  Here is exactly what I did  and it worked without a reboot or errors. Run  powershell.exe  as Administrator PS C:\WINDOWS\system3 2> wsl - l Windows Subsystem for Linux Distributions: Ubuntu ( Default ) # mkdir S:\ISOs\ PS C:\WINDOWS\system3 2> wsl -- export Ubuntu S:\ISOs\ubuntu - wsl.tar # mkdir w:\VMs PS C:\WINDOWS\system3 2> cd w:\VMs PS W:\VMs > mkdir ubuntu - wsl PS W:\VMs > wsl -- unregister Ubuntu Unregistering... PS W:\VMs > wsl -- import Ubuntu W:\VMs\ubuntu - wsl S:\ISOs\ubuntu - wsl.tar PS W:\VMs > wsl - l Windows Subsystem for Linux Distributions: Ubuntu ( Default )