go-wsl2-host icon indicating copy to clipboard operation
go-wsl2-host copied to clipboard

failed to install wsl2host: CreateFile

Open TTSKarlsson opened this issue 4 years ago • 1 comments

Environment:

$ wsl -l -v
  NAME      STATE           VERSION
* Debian    Stopped         2

Install command in cmd.exe run by Administrator:

$ wsl2host.exe install
2020/06/05 10:11:42 failed to install wsl2host: CreateFile C:\cmd\wsl2host.exe: The
 system cannot find the file specified.

Expected to happen:

A service being installed windows hosts changed(?) /etc/hosts changed(?)

What happens instead:

It outputs the above error message

More info:

Username is the same for the Debian distro and Windows, passwords differ. There's never any choice of entering username or password.

TTSKarlsson avatar Jun 05 '20 08:06 TTSKarlsson

Shayne has written a handy and useful tool, however if you are having issues installing or running, as an option - try my take on the problem https://github.com/hndcrftd/wsl2ip2hosts

hndcrftd avatar Aug 04 '20 00:08 hndcrftd