Lately i decided to migrate my VM ESX Servers over to FreeBSD VM bhyve
Installing
pkg install vm-bhyve bhyve-firmware
Configuration
Storage
zfs create zroot/bhyve
zfs set recordsize=64K zroot/bhyve
zfs create zroot/bhyve/.templates
Add the following lines to /etc/rc.conf:
# needed for virtualization support
vm_enable=”YES”
vm_dir=”zfs:zroot/bhyve”
Now, add the following line to the end of /boot/loader.conf:
# needed for virtualization support
vmm_load=”YES”
Networking
vm init
vm switch create public
vm switch add public ix1
Convert VM Disks to raw
qemu-img convert -f vmdk
/volumes/datastore01/source/source.vmdk -O raw /zroot/bhyve/destination/disk0.img -p
Some Management Systems needs to be migrated.
Links
https://github.com/churchers/vm-bhyve
https://klarasystems.com/articles/from-0-to-bhyve-on-freebsd-13-1/

