Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k
stars
142
forks
source link
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 / wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 #52
When I first installed WSL2HOST it worked great. It added the info to the HOSTS file and all was well till I rebooted my Surface Pro 4. Now it won't update the HOSTS file and I keep getting debug error:
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
for eternity even though the service starts. Any help would be greatly appreciated.
When I first installed WSL2HOST it worked great. It added the info to the HOSTS file and all was well till I rebooted my Surface Pro 4. Now it won't update the HOSTS file and I keep getting debug error: wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295 for eternity even though the service starts. Any help would be greatly appreciated.