Creating additional virtual hard disk (VHDX) for WSL2 with ext4 filesystem
Lines starting with #
mean the commands have to be executed by root user under Linux shell (WSL distro).
All other commands have to be executed under Windows-PowerShell as Administrator.
New-VHD support.vhdx -SizeBytes 25GB -Dynamic -BlockSizeBytes 1MB
Write-Output "\\.\PhysicalDrive$((Mount-VHD -Path support.vhdx -PassThru | Get-Disk).Number)"