In freebsd 13.1 release p1, I have installed bhyve following instructions from this page. a minimal version of debian, the installation went well except that the bridge specified did not work. I could finish installation, reboot the vm, and also could set up a script as outlined in Step 8 of the instructions from the same page, all that worked fine.
When restarting I found these errors:
the above is the location of the script file, containing
I also downloaded a ubuntu and when I tried to install the ubuntu vm there are similar errors.
Kernel Security: I lowered kernel security to complete the bhyve / debian installation, but brought the security level back to 3, and after that kldstat shows vmm.ko. (The problem may not be due to kernel security, but probably related to network bridge, its name, and the tap0 creation.)
I don't understand the various errors, please help me fix these errors:
Thank you.
When restarting I found these errors:
# /home/user/debianvm
the above is the location of the script file, containing
#!/bin/sh
ifconfig tap0 create
ifconfig bridge1 addm tap0
if ! kldstat | grep -w vmm.ko
then
kldload -v vmm
fi
if ! kldstat | grep -w nmdm.ko
then
kldload -v nmdm
fi
bhyve -c 1 -m 1G -w -H \
-s 0,hostbridge \
-s 4,virtio-blk,/dev/zvol/zroot/debianvm \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tcp=0.0.0.0:5900,w=1024,h=768 \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
debianvm
vm starts and restarts without network, bridge0 / 1 tap0 and the links created do not work.
I also downloaded a ubuntu and when I tried to install the ubuntu vm there are similar errors.
Kernel Security: I lowered kernel security to complete the bhyve / debian installation, but brought the security level back to 3, and after that kldstat shows vmm.ko. (The problem may not be due to kernel security, but probably related to network bridge, its name, and the tap0 creation.)
I don't understand the various errors, please help me fix these errors:
Thank you.