Enable Ingress controller on Docker Desktop with WLS2

Finally I found the way to fix. I have to deploy ingress Nginx by command: kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.41.2/deploy/static/provider/cloud/deploy.yaml (Follows the instruction at https://kubernetes.github.io/ingress-nginx/deploy/#docker-for-mac. It works just fine for Docker for Windows) Now I can access http://ingress.local successfully.

WSL2 REST API Error due to WSL2 clock out of sync with Windows clock [closed]

In case anyone finds this via search and doesn’t notice that there is actually a solution listed in the question, you can fix WSL clock drift via. sudo hwclock -s If you just need to do it occasionally, this is a fine solution. If you need to do it more frequently, consider @piouson’s solution.

Unable to boot Windows 10 guest using VirtualBox with enabled Hyper-V and WSL2 installed [closed]

Downgrade to WSL1, if you want to save yourself from days of wasted effort. I’ve upgraded to WSL2 and tried a bit to get VirtualBox to work with it and I couldn’t find anything useful. There are few guides suggesting that turning off some features of VirtualBox will make it work, however it will make … Read more

WSL-2 DNS is not working with VPN connection on Win 10 [closed]

There is an issue with DNS Forwarding in WSL2 when using VPN (see github Issue). Plus there is a issue with the Cisco AnyConnect. So here is a workaround for these problems. Should work for Ubuntu and Debian. Workaround (new – automatic) This solution is automatic and was created by EdwardCooke (see https://www.frakkingsweet.com/automatic-dns-configuration-with-wsl-and-anyconnect-client/). This is … Read more

Access a localhost running in Windows from inside WSL 2 [closed]

Short answer for most recent Windows versions mDNS has been a feature of WSL2 for a while now. Concatenating your WSL2 hostname (or the equivalent command/function in your programming/language environment) with “.local” should get you access. For example, from Bash, try: ping “$(hostname).local” For instance, if your hostname is “MyComputer”, then the mDNS should be … Read more

WSL-2: Which ports are automatically forwarded?

When you run WSL-2, a machine like a vitural machin run on your window device. Windows will create a local network, same your LAN, and connect WLS-2 to this network. On your WSL2, you can run ip a | grep eth0, result look like: 5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default … Read more

Can’t restart WSL2, LxssManager hangs in stopping state, how to restart? [closed]

It looks like the hang LxssManager service is preventing wsl to restart, I found a way to stop LxssManager and then I was able to restart wsl normally. First get the PID of svchost.exe running LxssManager, open the cmd as administrator and run: tasklist /svc /fi “imagename eq svchost.exe” | findstr LxssManager Grab the returned … Read more

tech