proxmox-nixos
proxmox-nixos copied to clipboard
Add swtpm_setup command
Hello, amazing work done here!
I noticed I can't initialize VMs with Windows, due to missing swtpm_setup tool:
TASK ERROR: start failed: command 'swtpm_setup --tpmstate file:///dev/zvol/one_tera/vm-101-disk-1 --createek --create-ek-cert --create-platform-cert --lock-nvram --config /etc/swtpm_setup.conf --runas 0 --not-overwrite --tpm2 --ecc' failed: open3: exec of swtpm_setup --tpmstate file:///dev/zvol/one_tera/vm-101-disk-1 --createek --create-ek-cert --create-platform-cert --lock-nvram --config /etc/swtpm_setup.conf --runas 0 --not-overwrite --tpm2 --ecc failed: No such file or directory at /nix/store/1138wihmibq5bndqa10cman77jgwqq65-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/PVE/Tools.pm line 494.
I imagine it has to be added to one of the build environments?
I have a working proof of concept here https://github.com/SaumonNet/proxmox-nixos/compare/main...eljojo:proxmox-nixos:swtpm
I see https://github.com/SaumonNet/proxmox-nixos/pull/111 addresses this
Hi eljojo, your solution do not work but this works: github:5aaee9/proxmox-nixos/fix-swtpm
@cheirekov thanks for confirming, I will switch to that 👍
#111 has added tpm support, please reopen if you are still experiencing issues.