Here are my Packer Templates for Ludus with TPM support.
The following systems are supported:
- Windows Server 2025 - Evaluation
- Windows 11 24H2 - Evaluation
As of today, Ludus does not support the creation machines with TPM. This is due to the outdated packer-plugin-proxmox.
For TPM support the plugin version 1.2+ is required.
The reason why the maintainer of Ludus cannot upgrade to version 1.2.2 is because the cpu_type is not being passed to proxmox resulting in all hosts taking the default value regardless of cpu_type setting. See this issue.
Therefore, you need to manually build the binary until the fix has been applied and a new version published.
To make it work and build a compatible version of the packer plugin proxmox follow the steps below.
- Clone the official GitHub repo:
git clone https://github.com/hashicorp/packer-plugin-proxmox - Install GO as seen here.
- Go to the file
packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go. - Add after line 133 this line as seen here.
Type: (*proxmox.CpuType)(&c.CPUType), - Build the plugin via
go build - Upon successful compilation, a
packer-plugin-proxmoxplugin file can be found in the root directory. - Upload it to
/opt/ludus/resources/packer/plugins/github.com/hashicorp/proxmox/with the namepacker-plugin-proxmox_v1.2.3_x5.0_linux_amd64. - Add the hash of the binary to allow the plugin to load.
cat /opt/ludus/resources/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.3_x5.0_linux_amd64 | sha256sum \ > /opt/ludus/resources/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.3_x5.0_linux_amd64_SHA256SUM - Now you can just run
ludus templates buildwithout any issues.
GPLv3
This role was created by Patrick-DE, for Ludus.