Difference between revisions of "Wsl2"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
generateResolvConf = false | generateResolvConf = false | ||
``` | ``` | ||
+ | C:\Users\jebusk\AppData\Local\Packages | ||
+ | |||
``` | ``` | ||
+ | wsl --terminate Ubuntu-22.04 | ||
+ | wsl --export Ubuntu-22.04 .\bkp\Ubuntu-22.04.wslv1.tar | ||
+ | mkdir wsl | ||
+ | wsl --import newName .\wsl\j .\bkp\Ubuntu-22.04.wslv1.tar | ||
+ | wsl --set-default newName | ||
+ | bash | ||
+ | |||
sudo ln -s /mnt/wsl/resolv.conf /etc/resolv.conf | sudo ln -s /mnt/wsl/resolv.conf /etc/resolv.conf | ||
``` | ``` |
Revision as of 18:25, 25 April 2024
https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn
sudo vim /etc/wsl.conf
<br />[boot] systemd=true [automount] options = "metadata" [network] generateResolvConf = false
C:\Users\jebusk\AppData\Local\Packages
wsl --terminate Ubuntu-22.04 wsl --export Ubuntu-22.04 .\bkp\Ubuntu-22.04.wslv1.tar mkdir wsl wsl --import newName .\wsl\j .\bkp\Ubuntu-22.04.wslv1.tar wsl --set-default newName bash sudo ln -s /mnt/wsl/resolv.conf /etc/resolv.conf