[Bug 214432] bhyve VM exiting: reason VMX / exit_reason 2
grehan at freebsd.org
grehan at freebsd.org
Sat Nov 12 00:28:20 UTC 2016
Hi Alex,
> I'm trying to start a SmartOS joyent_20161110T013148Z guest VM in
> bhyve on FreeBSD/amd64 12.0-CURRENT(r308465).
...
> # cat grub.cfg
> multiboot /platform/i86pc/kernel/amd64/unix
> /platform/i86pc/kernel/amd64/unix -B smartos=true,console=ttyb
> module /platform/i86pc/amd64/boot_archive
> /platform/i86pc/amd64/boot_archive type=rootfs name=ramdisk
> boot
The SmartOS kernel issues BIOS calls while running. You will need to
boot it with a UEFI/CSM image that provides a BIOS interface -
grub-bhyve only does image placement, so a BIOS call from a guest will
eventually result in a triple-fault (exit code 2, from the Intel SDM
Vol3 Appendix C. Yes, a bit cryptic, and should at least be a text
message).
Instructions for booting SmartOS are at:
https://lists.freebsd.org/pipermail/freebsd-virtualization/2015-October/003833.html
though, I'd add another line to that
-s 0,hostbridge \
.. which allows recent SmartOS versions to use MSI interrupts for
virtio devices.
later,
Peter.
More information about the freebsd-virtualization
mailing list