Windows Proxmox Optimized Template
This script configures a highly optimized Proxmox VM for modern Windows (UEFI, TPM 2.0, VirtIO SCSI, and QEMU Guest Agent). Ensure your Windows ISO is already uploaded to your Proxmox storage before generating the script.
Customize Your Script
Deployment Script
Post-Installation: Sysprep & Conversion
Unlike Linux, you must start the VM and manually install Windows. When selecting a drive to install to, you will need to click "Load Driver" and navigate to the attached VirtIO CD-ROM (usually E:\amd64\w11 or w2k22) to see your SCSI hard drive.
Once Windows is installed and you are logged into the desktop, open an Administrator Command Prompt and run this command to strip the machine ID, clear drivers, and prepare it for cloning:
C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown
Wait for the VM to shut down completely. Once powered off, return to the Proxmox Host Shell and execute: qm template 12001
Copied!
Script is ready to paste into your terminal.