I'm running FreeBSD 12.1-RELEASE-p1 and trying to host a CentOS VM (v8) with Bhyve.
When trying to do this with the MBR guide on the handbook bhyve page, I could not even get the VM working no matter what, I read that centos machines need UEFI booting with bhyve.
So I followed this guide UEFI bhyve to do so.
Now my problem is that I managed to get the VM shell when running it through a VNC. But my goal is to be able to access it using nmdm consoles(cf 21.7.7. Virtual Machine Consoles).
After installing the VM through VNC with the UEFI bhyve guide, I changed the booting code to this :
Then I booted the vm and tried to connect to it from a terminal using this command
Note : I managed to make this work(accessing with nmdm devices) for debian and ubuntu (while not using UEFI firmware pkg) but I can't seem to make it work for CentOS (using UEFI pkg because it didn't work otherwise).
When trying to do this with the MBR guide on the handbook bhyve page, I could not even get the VM working no matter what, I read that centos machines need UEFI booting with bhyve.
So I followed this guide UEFI bhyve to do so.
Now my problem is that I managed to get the VM shell when running it through a VNC. But my goal is to be able to access it using nmdm consoles(cf 21.7.7. Virtual Machine Consoles).
After installing the VM through VNC with the UEFI bhyve guide, I changed the booting code to this :
Code:
bhyve -c 2 -m 2G -w -H \
-s 0,hostbridge \
-s 4,ahci-hd,centos8.img \
-s 5,virtio-net,tap0 \
-s 31,lpc -l com1,/dev/nmdm0A \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm1
cu -l /dev/nmdm0B
but nothing is displayed.Note : I managed to make this work(accessing with nmdm devices) for debian and ubuntu (while not using UEFI firmware pkg) but I can't seem to make it work for CentOS (using UEFI pkg because it didn't work otherwise).