Bug 214432 - bhyve VM exiting: reason VMX / exit_reason 2
Summary: bhyve VM exiting: reason VMX / exit_reason 2
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2016-11-12 00:03 UTC by alex.deiter
Modified: 2016-11-12 01:20 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description alex.deiter 2016-11-12 00:03:19 UTC
Host OS: FreeBSD 12.0-CURRENT r308465 amd64
Guest OS: SmartOS joyent_20161110T013148Z

installed packages: 
grub2-bhyve-0.40               Grub-emu loader for bhyve

Steps for reproducing:

1. Create device.map file:
# cat device.map 
(cd0) /test/smartos-latest.iso

2. Create grub.cfg:
# cat grub.cfg file:
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

3. Load VM kernel and rootfs ramdisk:
# grub-bhyve -m device.map -r cd0 -M 4096M test < grub.cfg

4. Try to start VM:
# bhyve -m 4096M -s 3,ahci-cd,/test/smartos-latest.iso -s 31,lpc -l com1,/dev/nmdm0A -l com2,/dev/nmdm1A test

vm exit[0]
        reason          VMX
        rip             0x0000000000000225
        inst_length     2
        status          0
        exit_reason     2
        qualification   0x0000000000000000
        inst_type               0
        inst_error              0
Abort (core dumped)
Comment 1 Peter Grehan freebsd_committer 2016-11-12 01:20:20 UTC
Closing this: SmartOS requires UEFI/CSM to boot.