EMBA fails to install in WSL environment #273
Labels
docker
docker related things
enhancement
New feature or request
Installation
Installation issues
unsupported
Unsupported environment
Thanks to https://twitter.com/jaylagorio we have tried to get EMBA running under WSL. There are some pitfalls that I want to show here. The following documentation is a quick howto to get EMBA up and running. In the near future I probably will integrate the relevant stuff into the installer.
Open Power Shell on your Windows host (with admin privs):
Do a reboot of your Windows host
Do a reboot of your Windows host
Download and install the WSL2 Linux Kernel from here: https://aka.ms/wsl2kernel
Open PowerShell as administrator and run:
As I have used the default ubuntu image I got the 20.04 LTS version. This version is not officially supported from EMBA. Let's give it a try:
First of all, I was running into issues with my DNS settings. So, I disabled the auto update and set it fixed to 8.8.8.8:
After changing the DNS settings it was possible to resolve hostnames. Now, we need to update docker-compose. Another EMBA user (https://github.com/erd0spy) has already shown how this will work: #247
After these preparation steps we are mostly ready to go:
As we will run into issues with docker we install it now manually:
Start the docker daemon in the background:
Now we can give the installatino process a first try:
EMBA installs the initial stuff on the host and downloads the EMBA docker container
After a while the installer will fail during the setup of mongod:
This means that we already have most of the relevant installation process finished. Let's do the last steps manually:
With this in place we should be able to manually update the cve database:
After all these steps EMBA should run as expected in your WSL Ubuntu environment.
I hope that I have noted all required steps. Please comment if something is not working as expected. I will do further tests with our supported Ubuntu and Kali Linux.
Thanks a lot to https://twitter.com/jaylagorio for an evening of testing, verifying and improving EMBA :)
The text was updated successfully, but these errors were encountered: