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

Ruby weirdness

Running LXD/LXC on WSL2 with Ubuntu 20.04

Installing pikvm on raspberry pi zero 2 w