This guide provides detailed installation instructions for Kroltin on Windows, Linux, and WSL.
Before using Kroltin, you need:
- Python 3.8 or later
- HashiCorp Packer (required)
- At least one virtualization platform: VMware Workstation/Fusion OR VirtualBox
ℹ️ You only need to install one of the virtualization platforms (VMware or VirtualBox), not both.
Download and install Python 3.8 or later from python.org. Make sure to check "Add Python to PATH" during installation.
Verify installation:
python --versionpython -m pip install --user pipx
python -m pipx ensurepathClose and reopen your terminal after running ensurepath.
Option A: Using Chocolatey (recommended)
choco install packerOption B: Manual Installation
-
Download the Windows binary from packer.io/downloads
-
Extract the executable to a directory (e.g.,
C:\packer\) -
Add the directory to your PATH:
Using PowerShell (as Administrator):
# For current user only [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\packer", "User") # OR for all users (requires admin) [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\packer", "Machine")
Using GUI:
- Search for "Environment Variables" in Windows Start menu
- Click "Edit the system environment variables"
- Click "Environment Variables..." button
- Under "System variables" (or "User variables"), find and select "Path"
- Click "Edit..."
- Click "New"
- Add the directory containing
packer.exe(e.g.,C:\packer\) - Click "OK" on all dialogs
Close and reopen your terminal for changes to take effect.
Verify installation:
packer version
⚠️ Note: Ifpacker versiondoesn't work after manual installation, you may need to manually add Packer to your PATH using one of the methods above.
Option A: VMware Workstation
- Download and install VMware Workstation Pro
- The CLI tools (
vmrun,ovftool) should be automatically added to PATH during installation - Verify installation:
vmrun ovftool
⚠️ Note: Ifvmrunorovftoolcommands are not recognized:Using PowerShell (as Administrator):
# Add VMware paths (adjust if your installation path differs) $vmwarePath = "C:\Program Files (x86)\VMware\VMware Workstation" $ovfToolPath = "C:\Program Files (x86)\VMware\VMware Workstation\OVFTool" # For current user [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$vmwarePath;$ovfToolPath", "User") # OR for all users (requires admin) [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$vmwarePath;$ovfToolPath", "Machine")Using GUI:
- Locate your VMware installation directory (typically
C:\Program Files (x86)\VMware\VMware Workstation\)- Add these paths to your system PATH using the Environment Variables steps from section 3:
C:\Program Files (x86)\VMware\VMware Workstation\C:\Program Files (x86)\VMware\VMware Workstation\OVFTool\- Close and reopen your terminal
Option B: VirtualBox
- Download and install VirtualBox
- The installer should automatically add
VBoxManageto PATH - Verify installation:
VBoxManage --version
⚠️ Note: IfVBoxManagecommand is not recognized:Using PowerShell (as Administrator):
# Add VirtualBox path (adjust if your installation path differs) $vboxPath = "C:\Program Files\Oracle\VirtualBox" # For current user [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$vboxPath", "User") # OR for all users (requires admin) [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$vboxPath", "Machine")Using GUI:
- Locate your VirtualBox installation directory (typically
C:\Program Files\Oracle\VirtualBox\)- Add this path to your system PATH using the Environment Variables steps from section 3:
C:\Program Files\Oracle\VirtualBox\- Close and reopen your terminal
Windows golden image builds will need to serve the preseed file over an HTTP server on port 8804. Therefore, you will have to allow packer to open this port on the firewall using the following command (Run as Administrator).
New-NetFirewallRule -DisplayName "Packer HTTP Server" -Direction Inbound -Program (Get-Command packer).Path -Protocol TCP -LocalPort 8804 -Action Allow -Profile Privatepipx install git+https://github.com/d-woosley/Kroltin.gitDebian/Ubuntu:
sudo apt update
sudo apt install python3 python3-pip pipx
pipx ensurepathFedora/RHEL:
sudo dnf install python3 python3-pip pipx
pipx ensurepathArch Linux:
sudo pacman -S python python-pip python-pipx
pipx ensurepathReload your shell:
source ~/.bashrc # or ~/.zshrcOption A: Using Package Manager (Debian/Ubuntu)
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install packerOption B: Manual Installation
wget https://releases.hashicorp.com/packer/1.10.0/packer_1.10.0_linux_amd64.zip
unzip packer_1.10.0_linux_amd64.zip
sudo mv packer /usr/local/bin/
sudo chmod +x /usr/local/bin/packerVerify installation:
packer versionOption A: VMware Workstation
- Download VMware Workstation from vmware.com
- Install:
sudo chmod +x VMware-Workstation-*.bundle sudo ./VMware-Workstation-*.bundle
- Add VMware tools to PATH by adding to
~/.bashrcor~/.zshrc:export PATH=$PATH:/usr/bin/vmware export PATH=$PATH:/usr/lib/vmware/bin export PATH=$PATH:/usr/lib/vmware-ovftool
- Reload shell and verify:
source ~/.bashrc vmrun ovftool
Troubleshooting VMware on Debian: If VMware modules fail to load:
sudo vmware-modconfig --console --install-allOption B: VirtualBox
# Debian/Ubuntu
sudo apt update
sudo apt install virtualbox
# Fedora
sudo dnf install VirtualBox
# Arch Linux
sudo pacman -S virtualboxVerify installation:
VBoxManage --versionpipx install git+https://github.com/d-woosley/Kroltin.gitAfter completing the installation for your platform, verify everything is working:
kroltin --help
packer versionAnd verify your chosen virtualization platform:
# For VMware
vmrun
# For VirtualBox
VBoxManage --versionIf you already have all prerequisites installed, you can quickly install Kroltin:
pipx install git+https://github.com/d-woosley/Kroltin.gitPrerequisites:
- Python 3.8 or later
- HashiCorp Packer
- VMware Workstation/Fusion or VirtualBox CLI tools in PATH
Once installation is complete, check out the main README for:
- Usage examples
- Template system documentation
- Command reference
- Troubleshooting tips