-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access to local network within windows WSL distros when rancher desktop 1.15.0 #7294
Comments
Hi @yevon, We added that diagnostic in our latest release (1.15.0). The diagnostic message you're seeing is from the WSL integration when you attempt to enable Kubernetes in another WSL distribution. Generally, when you enable WSL integration and Kubernetes is active, Rancher Desktop tries to create a symlink from your kube config on the host to your WSL distribution ( @jandubois, should we consider including a link to the documentation in the diagnostic message to guide users on how to manually create this symlink? |
Nice, I created the symlink with this command inside my Ubuntu wsl distribution and the diagnostics message dissappeared. |
Seems to be solved by downgrading to 1.13.1 and disabling the windows tunneling. Is there a way to be able to keep the old behaviour but with latest versions? Should I be able to contact to local network hosts inside wsl distros with the new windows tunneling stack? |
It seems that this used to be an automatic thing, and now just does not work. I LOVE the memory leak fix in 1.15.0 and i want to use this version of rancher desktop, but it wont be possible for me as i no longer have the network tab available as stated here in this issue and i require the network tunneling to be disabled. Though i do not see the diagnostic error, i instead see "Expose Rancher Desktop's Kubernetes configuration and Docker socket to Windows Subsystem for Linux (WSL) distros". So i thought i needed to do the symbolic link fix but that also failed (and its hard for me to know where to link that file since it didnt exist and i have no /home folder in my distro, so i assumed the default location (~/.kube/config) and copied it there with no luck). Not sure what else changed from 1.14.1 to 1.15.0 to remove the network tab that I needed :( |
@yevon can I ask what operation you are attempting to do that prevents you from accessing the local network? I just need to understand what you are trying todo and how I can replicate the same thing. Thanks |
I'm just trying to contact my docker registry inside my local network server, I cannot ping to anything outside the WSL host machine. I just do a ping 192.168.1.X inside ubuntu WSL when rancher desktop is shutdown, and it works, but when I just turn it on, it immediately stops working in latest versions that have the new windows tunneling feature. |
I have a local network dns server, I don't know if this affects. |
I've also got similar issues with v1.15.0 - though I'm not using K8S at all. At 192.168.1.100 is a database, available via a VPN on the Win11 Pro host (to be used from containers in WSL2 / Ubuntu 24.04). With Rancher 1.15.0 pinging the IP address from a wsl2 command line gets "Destination Host Unreachable" or "no route to host" for an attempted DB connection. The database can be pinged from PowerShell, and connected to/browsed from Windows without issue. Without RancherDesktop 1.15.0 running, the ping is OK from a WSL2 command line. I've downgraded RancherDesktop to v1.13.1 & disabled the networking tunnel in Prefs/WSL/Network and can ping and connect to the DB successfully from Windows, WSL2 & the containers. |
I can confirm upgrading to 1.15.0 broke some network connections. Here's 2 ping commands from Windows and 2 from a docker container. Connections to 192.268.0.* still work, but connections to 192.168.1.* don't work, even though they are both on the same network/subnet
Here's my settings:
|
@yevon It sounds like there might be an IP address conflict in your case. We use |
That explains a lot, in many european countries the standard router ip is 192.168.1.1 and private networks in same range. So 192.168.1.1 will make conflicts in many cases as it is the main gateway. |
Hi @yevon we addressed the issue in an our upcoming release which should be out shortly. Please, try it out and see if you encounter anything else. I'm going to close this issue for now, feel free to reopen if needed. |
Perfect thanks!! |
Confirmed everything working fine on 1.16.0! |
Actual Behavior
Recently I lost access to local network within WSL windows distributions but only when I start rancher desktop 1.15.0. I read some issues about it, and options like enabling tunneling or host resolver. Does it apply anymore? As they are now default features?
I'm receiving this Diagnostics message that I don't know if I must do something about it, but I completely uninstalled my .kube folder, uninstalled rancher desktop completely, reinstalled it and there is still this message there:
Maybe this might be related? Thanks!
Steps to Reproduce
Install rancher desktop 1.15.0 and try to ping any local network server, it says Host Unreachable but only when rancher desktop is enabled.
Result
Unable to access to local network.
Expected Behavior
I should be able to access to local network resources within WSL distros.
Additional Information
No response
Rancher Desktop Version
1.15.0
Rancher Desktop K8s Version
1.29.3
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 11 23H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
Standard windows defender, no security softwares. Already tried to disable windows firewall without success.
The text was updated successfully, but these errors were encountered: