# # VMTux 2.3 # # Example: .wslconfig # # 0) save this file as %UserProfile%\.wslconfig # # 1) Check wsl version (must be 2.x) # > wsl --version # # 2) Copy current kernel to c:\temp # > copy vmlinuz64-6.10.1 C:\temp # # 3) Copy filesystem tar.gz file to c:\temp # > copy vmtux64-2.3.tar.gz C:\temp # # 4) Import a distro by its current .tar.gz file (once) # > wsl --import vmtux c:\temp\vmtux c:\temp\vmtux64-2.3.tar.gz # # 5) Check imported distros # > wsl -l -v # # 6) Execute # > wsl -d vmtux -e login # # 7) Shutdown # > wsl --shutdown # # ) Remove the distro # > wsl --unregister vmtux # [wsl2] #networkingMode=bridged #vmSwitch=wsl-switch # Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB #memory=4GB # Sets the VM to use two virtual processors #processors=2 # Specify a custom Linux kernel to use with your installed distros. kernel=C:\\temp\\vmlinuz64-6.10.1 # Sets additional kernel parameters #kernelCommandLine = loglevel=3 console=ttyS0 kernelCommandLine = console=ttyS0 # Sets amount of swap storage space to 8GB, default is 25% of available RAM #swap=8GB # Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx #swapfile=C:\\temp\\wsl-swap.vhdx # Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when free #pageReporting=false # Turn on default connection to bind WSL 2 localhost to Windows localhost. Setting is ignored when networkingMode=mirrored #localhostforwarding=true # Disables nested virtualization #nestedVirtualization=false # Turns on output console showing contents of dmesg when opening a WSL 2 distro for debugging debugConsole=true # Enable experimental features #[experimental] #sparseVhd=true