-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TPM support #111
base: main
Are you sure you want to change the base?
Add TPM support #111
Conversation
Thank you ! Can you explain what the rationale was for producing |
Proxmox hard-code path in there code https://github.com/proxmox/qemu-server/blob/master/PVE/QemuServer.pm#L3248 And the config file is from |
I found I still had some issues with |
Seems like maybe qmeventsd needs it too? I get an error about |
Hey I was trying to setup a windows VM, opened main...eljojo:proxmox-nixos:swtpm and only afterwards I saw this existed, your solution here is better. In my case I think I got things to work by providing an empty swtmp config, you could try it:
edit: no, it still breaks :(
running the command on the console to initialize TPM allows it to work. |
The solution of [5aaee9] working. Do you have plans to add it soon ? I tested 1. Can create Windows 11 VM 2. After Reboot the VM not auto start: TASK ERROR: start failed: command 'swtpm_setup --tpmstate file:///var/lib/vz/images/101/vm-101-disk-2.raw --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:///var/lib/vz/images/101/vm-101-disk-2.raw --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/2rd3xb35xap7pb3d64vwhsxsn87wa09d-perl-5.38.2-env/lib/perl5/site_perl/5.38.2/PVE/Tools.pm line 494. But it can be started manually. |
pvedaemon
callswtpm_setup
to setup TPM support for vm.This patch add swtpm support and Windows 11 vm is require TPM.