Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2016 03:58:34 +0300
From:      Alex Deiter <alex.deiter@gmail.com>
To:        grehan@freebsd.org
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: [Bug 214432] bhyve VM exiting: reason VMX / exit_reason 2
Message-ID:  <77A6BB15-2D3A-4DEF-AE29-2F1C66BD3D51@gmail.com>
In-Reply-To: <797f78046e400db482df45e13073b229@ptree32.com.au>
References:  <530F83B0-DC83-423C-9B3F-EB930FC27F3C@gmail.com> <797f78046e400db482df45e13073b229@ptree32.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Peter,

Thank you very much for your detailed explanation!

--
Alex Deiter
alex.deiter@gmail.com



> On 12 Nov 2016, at 03:28, grehan@freebsd.org wrote:
>=20
> Hi Alex,
>=20
>> 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=3Dtrue,console=3Dttyb
>> module /platform/i86pc/amd64/boot_archive
>> /platform/i86pc/amd64/boot_archive type=3Drootfs name=3Dramdisk
>> boot
>=20
> 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).
>=20
> Instructions for booting SmartOS are at:
>    =
https://lists.freebsd.org/pipermail/freebsd-virtualization/2015-October/00=
3833.html
>=20
> though, I'd add another line to that
>=20
>   -s 0,hostbridge \
>=20
> .. which allows recent SmartOS versions to use MSI interrupts for =
virtio devices.
>=20
> later,
>=20
> Peter.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77A6BB15-2D3A-4DEF-AE29-2F1C66BD3D51>