Using wsl2 install elasticsearch cant' create vm.max_map_cout

Hello @rick_zhang

The "vm.max_map_count" it's a linux kernel parameter. You are using WSL2 which have a linux but I think that only if you uses a distro backed by "WSL2" did you follow the official Install guide? https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

To be honest it's more an WSL issue than an elasticsearch one, WSL never have been friendly with kernel parameters. And as I see a file not found exception seems that you have taken a linux image without kernel.

I hope this helps

1 Like