Date: Fri, 28 Nov 2025 09:07:11 +0100 From: Andrea Venturoli <ml@netfence.it> To: infoomatic <infoomatic@gmx.at>, virtualization@freebsd.org Subject: Re: bhyve + swtpm + W11 Message-ID: <f7ea3733-388e-4c76-b20c-d61c458e46cc@netfence.it> In-Reply-To: <dc5aefd6-985f-4408-971c-9347a4f86231@gmx.at> References: <031fe2e6-eae6-4d4a-8bce-cd7eadd0b5a6@netfence.it> <dc5aefd6-985f-4408-971c-9347a4f86231@gmx.at>
index | next in thread | previous in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f7ea3733-388e-4c76-b20c-d61c458e46cc>
