I've got an issue with using Windows (7/10 or even Server version) as a client due to auto-restart of the system. I cannot even log in because system restarts infinitely, seen at console on 5900 port.
Generally, I'm able to boot from CD/DVD (iso file). I can install Windows.
But after installation, the system loads and I can see logon screen. After half a minute or minute system shuts down and that's all.
I was trying to run ready and working system from the another machine and it's the same.
I tried this solution (Windows option change)
In this case I can change logon type to Safe mode, but after restart and loading the system, the issue keeps the same.
I was trying on diffrent partitions with different hard drives.
I was changing number of CPU nad RAM (on bhyve).
I disconnected virtual network card network from bhyve command as well.
FreeBSD 12.0-RELEASE-p10 amd64
# bhyve -c 4 -m 8G -H \
-s 0,hostbridge \
-s 3,ahci-hd,/data/vm12.img,sectorsize=512 \
-s 10,virtio-net,tap1 \
-s 29,fbuf,tcp=0.0.0.0:5900,wait \
-s 30,xhci,tablet \
-s 31,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -w vm12
In my case I just disabled auto restart at Windows registry using this manual (point 3).
And command line to modify registry.
Conclusion. It's not bhyve issue.