Date: Fri, 28 Nov 2025 11:17:24 +0100 From: Marco Orsatti <marco.dmc12@gmail.com> To: virtualization@freebsd.org Subject: Re: bhyve + swtpm + W11 Message-ID: <5AFE2880-207D-4338-9791-CB0790ACB649@gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Many thanks! It also works in already installed windows 11. I made a small change to the script so that I can run it in a common location for multiple VMs: #!/bin/sh VMNAME="$1" SOCKET="/tmp/.bhyve.tpm.$VMNAME.sock" if [ ! -S "$SOCKET" ]; then nohup swtpm socket --tpmstate backend-uri=file:///vm/$VMNAME/tpm.state --server type=unixio,path="$SOCKET" --tpm2 --flags not-need-init & fi I think it works on Server 2022 and 2025 too, I'll do some testing There's another major problem with Windows 11 and Server 2022/25: excessive host CPU usage. Has anyone found a solution? Marco [-- Attachment #2 --] <html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Many thanks!<br><br>It also works in already installed windows 11.<br><br>I made a small change to the script so that I can run it in a common location for multiple VMs:<br><br>#!/bin/sh<br><br>VMNAME="$1"<br><br>SOCKET="/tmp/.bhyve.tpm.$VMNAME.sock"<br><br>if [ ! -S "$SOCKET" ]; then<br>nohup swtpm socket --tpmstate backend-uri=<a href="file:///vm/$VMNAME/tpm.state">file:///vm/$VMNAME/tpm.state</a> --server type=unixio,path="$SOCKET" --tpm2 --flags not-need-init &<br>fi<br><br>I think it works on Server 2022 and 2025 too, I'll do some testing<br><br><br>There's another major problem with Windows 11 and Server 2022/25: excessive host CPU usage. Has anyone found a solution?<br><br>Marco<br> <br> <br></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AFE2880-207D-4338-9791-CB0790ACB649>
