cmd+r输入%UserProfile%
新建.wslconfig
[wsl2]
memory=20480MB
swap=8G
processors=10
networkingMode=bridged
vmSwitch=WSL
localhostForwarding=true
kernel=X:\\WSL\\bzImage-5.15.90.1
nestedVirtualization=true
kernelCommandLine=intel_iommu=on iommu=pt kvm.ignore_msrs=1 kvm-intel.nested=1 kvm-intel.ept=1 kvm-intel.emulate_invalid_guest_state=0 kvm-intel.enable_shadow_vmcs=1 kvm-intel.enable_apicv=1