[Bug 214432] bhyve VM exiting: reason VMX / exit_reason 2
Alex Deiter
alex.deiter at gmail.com
Sat Nov 12 00:58:41 UTC 2016
Hello Peter,
Thank you very much for your detailed explanation!
--
Alex Deiter
alex.deiter at gmail.com
> On 12 Nov 2016, at 03:28, grehan at freebsd.org wrote:
>
> 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