https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287326
--- Comment #3 from Roman Bogorodskiy <no...@freebsd.org> --- (In reply to Corvin Köhne from comment #2) > If I get it correctly, a FreeBSD guest works fine while an Ubuntu guest fails > to boot? I would try the following: Yes, that's correct. > 1. Enable boot logs of the Ubuntu guest and check them. Any specifics on what could I enable? In the meantime, I've been experimenting with that for a bit, and I think I get new details. What I do: 1. sudo swtpm socket --tpmstate backend-uri=file:////var/run/swtpm/tpm.state --tpm2 --server type=unixio,path=/var/run/swtpm/tpm --log file=/tmp/swtmp.log --flags not-need-init --daemon 2. sudo bhyve -c 2 -m 4096 -A -I -u -H -P -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 1:0,lpc -s 3:0,ahci,hd:/data/img/ubuntu.img -s 5:0,fbuf,tcp=127.0.0.1:5905 -l com1,stdio -l tpm,swtpm,/var/run/swtpm/tpm ubuntu I get: --- BdsDxe: loading Boot0001 "UEFI BHYVE SATA DISK BHYVE-3609-D803-384E" from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x0,0xFFFF,0x0) BdsDxe: starting Boot0001 "UEFI BHYVE SATA DISK BHYVE-3609-D803-384E" from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x0,0xFFFF,0x0) Reset System --- Exit code is 0. 3. I run exactly the same command for the second time: sudo bhyve -c 2 -m 4096 -A -I -u -H -P -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 1:0,lpc -s 3:0,ahci,hd:/data/img/ubuntu.img -s 5:0,fbuf,tcp=127.0.0.1:5905 -l com1,stdio -l tpm,swtpm,/var/run/swtpm/tpm ubuntu System boots fine. TPM device is visible inside of the VM. > 2. Use a hardware TPM if possible to make sure it's not swtpm related. Unfortunately, I don't have hardware TPM. -- You are receiving this mail because: You are the assignee for the bug.