On 11/27/25 23:57, infoomatic wrote:
Hi,
I could not get it to work on an already installed windows VM - I am not
sure this is a FreeBSD/swtpm issue.
On a fresh install I have had no issue.
my config:
bhyve_options="-l tpm,swtpm,/tmp/.bhyve.tpm.win11.sock"
prestart="tpm.sh"
and with tpm.sh:
#!/bin/sh
SOCKET="/tmp/.bhyve.tpm.win11.sock"
if [ ! -S "$SOCKET" ]; then
nohup swtpm socket --tpmstate backend-uri=file:///evo/vms/win11/
tpm.state --server type=unixio,path="$SOCKET" --tpm2 --flags not-need-
init &
fi
It works!
Thanks a lot!
My W10 VM now says TPM is OK.
I guess I can now upgrade it to W11.
I've had no time to check why your setup works and the standard swtpm's
rc script doesn't, but I'll try and report.
bye
av.