- See: Setup initial https://codingfullstack.com/cloud/docker-installation-wsl2/
- Additional Steps:
- Enable WSL2
- Enable VGPU
- Enable Hyper-V
- Enable Windows Apps -> Optional Features -> Graphics Tools
wsl -l -v
wsl --unregister container_name
wsl --import container_name storage_directory container_tarfile
wsl -d container_name
\\wsl$\
- See: https://anthony-f-tannous.medium.com/wsl2-how-to-prepare-and-attach-virtual-drives-vhd-ac17b1fc7a61
- See: https://joeferguson.me/adding-another-disk-to-wsl2/
- See: https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/
Sometimes a wsl --import
command never completes. The vhdx file will be modified for many hours, but the actual import will not complete. Workaround is to copy files directly into an existing vhdx image.
- See: microsoft/WSL#8787
(Re-)Enable "Full Access" permission on VHDX image of distro.
- See: microsoft/WSL#8145
$ apt install linux-tools-generic
$ rm /usr/bin/perf
$ ln -s /usr/lib/linux-tools/5.4.0-125-generic/perf /usr/bin/perf