Eric Radman : a Journal

Bhyve Notes

Hardware Changes and Linux

If the underlying hardware chagnes, Linux virtual machines may not boot. To solve this, select Rescue from the grub menu and rebuild initramfs for the latest installed kernel version

dracut -f /boot/initramfs-$kv.img $kv

Windows Eval

The easiest way to try Windows to download a development image from Microsoft. To enable Windows networking we will need the Windows VirtIO Drivers. Then convert the image

pkg install qemu-devel
qemu-img convert -f vmdk -O raw WinDev2210Eval-disk1.vmdk win11vm.img
bhyve -c 2 -m 8G -w -H \
      -s 0,hostbridge \
      -s 3,ahci-hd,/vm/$name.img \
      -s 4,ahci-cd,/vm/virtio-win.iso \
      -s 10,virtio-net,tap7,mac=00:0c:29:dc:df:79 \
      -s 29,fbuf,tcp=$vncport,w=800,h=600 \
      -s 30,xhci,tablet \
      -s 31,lpc \
      -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \