[Bug 246168] Ubuntu 20.04 KVM / QEMU Failure with nested FreeBSD bhyve
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 7 08:43:19 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246168
--- Comment #8 from Peter Grehan <grehan at 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.
More information about the freebsd-virtualization
mailing list