https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246168

--- Comment #8 from Peter Grehan <gre...@freebsd.org> ---
I was able to get this working fine, and the cause of the problem is clear
looking back at the posted logs.

<<START LAYER 2 GUEST START>>
# ls
FreeBSD-11.2-RELEASE-amd64-bootonly.iso FreeBSD-12.1-RELEASE-amd64-dvd1.iso    
bee-hd1-01.img
# /usr/sbin/bhyve -c 2 -m 2048 -H -A -s 0:0,hostbridge -s 1:0,lpc -s
2:0,e1000,tap0 -s 3:0,ahci-hd,bee-hd1-01.img -l com1,stdio -s
5:0,ahci-cd,./FreeBSD-12.1-RELEASE-amd64-dvd1.iso bee

 bhyve has to be started with either a UEFI ROM image, or using a separate
loader (bhyveload/grub-bhyve). This wasn't done in this case, which will result
in registers partly set to power-on state, which will result in a triple-fault
or some other error.

This can be seen in the register dump from KVM, where all the GP registers are
zero including the RIP.

The fix to run a FreeBSD guest is to use bhyveload before running bhyve. For
the example given, this would be

# /usr/sbin/bhyveload -m 2048 -d ./FreeBSD-12.1-RELEASE-amd64-dvd1.iso bee

...

and then run the bhyve command.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to