Difference between revisions of "Wsl2"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
[network] | [network] | ||
generateResolvConf = false | generateResolvConf = false | ||
+ | |||
+ | [user] | ||
+ | default=myuser | ||
+ | ``` | ||
+ | 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 | ||
``` | ``` |
Latest revision as of 18:26, 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 [user] default=myuser
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