Allow WSL to talk with Hyper-V VMs

 Enter this command in powershell to enable forwarding:

Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose


Credits goes to this link (thanks!) https://automatingops.com/allowing-windows-subsystem-for-linux-to-communicate-with-hyper-v-vms

Comments

Popular posts from this blog

Switching from Docker Desktop to Rancher Desktop on WSL2: Solving the Missing docker-credential-desktop.exe Error

Ruby weirdness

Proxmox Remote administration via VNC