Overview
Setting up a guest for Windows versions 10 or earlier can be done directly from the original installation media and is a relatively straightforward process. Aside from minimum resource requirements, running Windows as guest requires wiring virtual machine memory (flag -w) and booting with an UEFI bootrom.
Install evaluation first:
bhyve \
-c 2
-s 0,hostbridge \
-s 3,nvme,/dev/zvol/tank/vms/vm5/win2019datacentre-zvol \
-s 4,ahci-cd,/tank/images/virtio-win.iso \
-s 10,virtio-net,tap5 \
-s 0:5:0,virtio-rnd \
-s 31,lpc \
-s 29,fbuf,tcp=0.0.0.0:5905,w=800,h=600,wait \
-s 30,xhci,tablet \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/tank/vms/vm5/uefi-firmware/BHYVE_UEFI_VARS.fd \
-m 8G -H -w \
server2019datac
At least 3 reboots may be needed - dont forget:
bhyvectl --destroy --vm=server2019datac