swapFilepath%USERPROFILE%\AppData\Local\Temp\swap.vhdx交换虚拟硬盘的绝对 Windows 路径。 pageReportingbooleantrue默认的true设置使 Windows 能够回收分配给 WSL 2 虚拟机的未使用内存。 guiApplicationsbooleantrue一个布尔值,用于在 WSL 中打开或关闭对 GUI 应用程序 (WSLg) 的支持。
WSL 安装似乎已损坏 (错误代码: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE)。按任意键修复 WSL,或 ...
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 ...
Move WSL PowerShell script to move WSL 1 and WSL 2 distros VHDX file to a different location. Usage Warning This script uses officialwslcommands and was used by a lot of people. Nevertheless some people had weird issues that resulted in broken WSL disks. Make sure you have a backup of ...
default is 25% of available RAMswap=8GB# Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdxswapfile=C:\\temp\\wsl-swap.vhdx# Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when freepageReporting=false# ...
How does one move the VM (.vhdx file) used by WSL from the C: drive to a different drive? The reason for questionit doesn't work on my turing machine#2, is that I wish to move the VM (.vhdx file) to a faster disc on a RAID controller. ...
# Sets swapfile path location,defaultis%USERPROFILE%\AppData\Local\Temp\swap.vhdx swapfile=C:\\temp\\wsl-swap.vhdx # Disable page reporting soWSLretains all allocated memory claimed from Windows and releases none back when free pageReporting=false# Turn offdefaultconnection to bindWSL2localhost...
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...
# Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx swapfile=E:\\wsl\\swap\\wsl-swap.vhdx 2 卸载 wslconfig /l #显示出你安装的列表。 wslconfig /u debian #debian为上述列表中的名字 注销子系统 3 关闭 ❯ wsl --shutdown 4 查看状态 ❯ wsl -l -v ...
Sets amount of swap storage space to 8GB, default is 25% of available RAMswap=8GB# Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdxswapfile=D:\\WSL\\wsl-swap.vhdx# Turn off default connection to bind WSL 2 localhost to Windows localhostlocalhostforwarding...