From f2367c8f838f2431b956896305fc9d25ed1899da Mon Sep 17 00:00:00 2001 From: sukster <67369320+sukster@users.noreply.github.com> Date: Fri, 31 Jul 2020 14:23:35 +0200 Subject: [PATCH] Added new section "Configuring Windows 10 with WSL as a Provisioning Host" --- ESXi/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ESXi/README.md b/ESXi/README.md index 2fe6151..ca916a0 100644 --- a/ESXi/README.md +++ b/ESXi/README.md @@ -47,6 +47,21 @@ These commands can be run in parallel from three separate terminal sessions. If you run into any issues along the way, please open an issue on Github and I'll do my best to find a solution. +## Configuring Windows 10 with WSL as a Provisioning Host + +Note: Run the following commands as a root user or with sudo + +1. In Windows 10 install WSL (version 1 or 2) +2. Install Ubuntu 18.04 app from the Microsoft Store +3. Update repositories and upgrade the distro: apt update && upgrade +4. Ensure you will install the most recent Ansible version: apt-add-repository --yes --update ppa:ansible/ansible +5. Install the following packages: apt install python python-pip ansible unzip sshpass libffi-dev libssl-dev +6. Install PyWinRM using: pip install pywinrm +7. Install Terraform and Packer by downloading the 64-bit Linux binaries and moving them to /usr/local/bin +8. Install VMWare OVF tool by downloading 64-bit Linux binary from my.vmware.com and running it with "--eulas-agreed" option +9. Download the Linux binary for the Terraform ESXi Provider from https://github.com/josenk/terraform-provider-esxi/releases and move it to /usr/local/bin +10. From "DetectionLab/ESXi/ansible" directory, run: "ansible --version" and ensure that the config file used is "DetectionLab/ESXi/ansible/ansible.cfg". If not, implement the Ansible "world-writtable directory" fix by going to running: "chmod o-w ." from "DetectionLab/ESXi/ansible" directory. + ## Future work required * It probably makes sense to abstract all of the logic in `bootstrap.sh` into individual Ansible tasks * There's a lot of areas to make reliability improvements