Can Bhyve run a DOS VM

I need a DOS shell from time to time for firmware flashing tools.
Is it possible to create a FreeDOS VM on Bhyve?
 
I think both options bhyve or dosbox would not work.
DOS and DOS-programs need BIOS functions to run. So even if you get DOS booted in bhyve with grub - it would not run.
Dosbox emulates every pice of hardware with raw CPU power. For firmware flashing tools you need access to the real hardware, but dosbox does not support passthrough.
 
There's support for CSM UEFI boot. Never tried it but you might be able to CSM boot (Free)DOS. But getting it to boot is one thing. The old MS-DOS used BIOS calls for everything and those likely don't work any more on UEFI. I assume the same holds true for FreeDOS.


Code:
root@hosaka:~ # pkg which /usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd
/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd was installed by package uefi-edk2-bhyve-csm-0.2,1
 
Back
Top