shayne / go-wsl2-host

Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k stars 140 forks source link

.wsl2hosts to windows host file #45

Closed stephanesoares closed 3 years ago

stephanesoares commented 3 years ago

Hello,

Using build 19042.610 doesnt work.

Service start but not create my configs at .wsl2hosts inside wsl

Anyone with this problem ?

Windows log events:

failed to write hosts file: failed to open hosts file for writing: open C:/Windows/System32/drivers/etc/hosts

stephanesoares commented 3 years ago

Disable read-only and works ;)