# Installation Guide

## Prerequisites
- Make sure CPU virtualization is enabled in BIOS.
- Ensure you are running PowerShell with Administrator rights.
- Run all scripts from the installation directory.

## Steps

1. **Unlock Script Execution (if restricted):**

     Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -Force

     Get-ChildItem -Path . | Unblock-File

   *As an alternative you can append "powershell.exe -executionpolicy bypass -file" before each script path:
     powershell.exe -executionpolicy bypass -file .\SCRIPT_NAME.ps1
     
     powershell.exe -executionpolicy bypass -file .\uninstall.ps1

2. **Run WSL installation Script:**

    .\install-wsl.ps1


3. **Run Docker installation Script:**
  
    .\install-docker.ps1


4. **Configure Docker Settings in Docker Desktop:**

    - Go to `Settings` -> `Resources` -> `Network` and enable the "Host Networking" option.
    - Go to `Settings` -> `Resources` -> `WSL Integration` and select the "Ubuntu-24.04" option.
    - Go to `Settings` -> `General` and enable the "Start Docker Desktop when you sign in to your computer" option.

5. **Apply all configurations and restart Docker Desktop.**

6. **Close the current PowerShell window and reopen it.**

7. **Run VMS installation Script:**
   
    .\install-vms.ps1


## Additional notes
- if you changed timezone on Windows, run ./newTZ.ps1 and restart VMS
- if you changed network configuration on Windows, run ./newIP.ps1  and restart VMS
- if you added/removed storage on Windows, run ./newDisks.ps1 and restart VMS