dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

Support TPM devices #888

Closed klausenbusk closed 2 years ago

klausenbusk commented 2 years ago

Checklist

Description of Issue/Question

libvirt supports TPM devices, either passthrough or a software TPM. It would be useful if the provider could add a TPM device to the domain.

We have a custom Linux image requiring Secure Boot and a TPM device. The TPM device is used for unlocking a encrypted partition with systemd's crypttab. Windows 11 is also requiring a TPM device, so a TPM device will be a hard requirement for booting Windows guests in the future.