Merge pull request #496 from sukster/Win10-WSL-Doc
Added new section "Configuring Windows 10 with WSL as a Provisioning …
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris Long
					Chris Long