Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 08:42:07 -0400
From:      Tycho Nightingale <tycho.nightingale@pluribusnetworks.com>
To:        Matt Churchyard <matt.churchyard@userve.net>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Illumos boot
Message-ID:  <17936712-FB88-4017-8C0D-BEC4926D698E@pluribusnetworks.com>
In-Reply-To: <b2b07b65ee984ac5b902996b9bc9bdf4@SERVER.ad.usd-group.com>
References:  <b2b07b65ee984ac5b902996b9bc9bdf4@SERVER.ad.usd-group.com>

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

Hi,

Please see inline.

On Oct 13, 2015, at 7:17 AM, Matt Churchyard via freebsd-virtualization =
<freebsd-virtualization@freebsd.org> wrote:

> In my quest to continue expanding guest support in my vm-bhyve utility =
(See https://github.com/churchers/vm-bhyve :) ), I've found the Windows =
support pretty solid once I got clear on the slot requirements. I'm now =
trying an OS that requires CSM (Illumos) but unfortunately I'm currently =
struggling to get it to boot up correctly.
>=20
> Here's an example of the command I'm generating at the moment (This is =
running on an Intel Core-i3):
>=20
> bhyve -c 2 -m 2G -s 0,hostbridge -s 31,lpc \
>      -s 3,ahci-cd,/data/vm/.iso/smartos-latest.iso \
>      -s 4:0,ahci-hd,/data/vm/smartos/disk0.img \
>      -s 5:0,virtio-net,tap0 \
>      -l com1,stdio -l com2,/dev/nmdm2A \
>      -H -l bootrom,/data/vm/.config/BHYVE_UEFI_CSM.fd \
>      smartos
>=20
> I have com1 set to stdio so I can easily watch the output as it runs.
> It tends to get as far as "Legacy INT19 Boot...", then fall over.
> Depending on whether I put the network interface directly in the slot =
after the HDD, I seem to get different errors -
>=20
> slot 3 - cd
> slot 4 - hdd
> slot 5 - virtio-net
>=20
> panic[cpu0]/thread=3Dffffff01457cdb40: BAD TRAP: type=3De (#pf Page =
fault) rp=3Dffffff0004a69a60 addr=3D40 occurred in module "genunix" due =
to a NULL pointer dereference
>=20
> slot 3 - cd
> slot 4 - hdd
> slot 7 - virtio-net
>=20
> panic[cpu1]/thread=3Dffffff0004002c40: BAD TRAP: type=3Dd (#gp General =
protection) rp=3Dffffff0004002740 addr=3D0
>=20
> On com2 I see the boot menu, then one and a half lines of dots. The =
second line of dots stops about 2/3 of the way across.

Have you tried booting illumos in verbose mode =97 edit the grub command =
line and provide =91-v=92.  That may give you a better backtrace than a =
program counter.

> Interestingly, my code normally puts the CD after the HDD, which =
Windows seems happy with as long as the slots are consecutive.
> In SmartOS this gives me a different error:
>=20
> slot 3 - hdd
> slot 4 - cd
> slot 5 - virtio-net
>=20
> PlatformBdsBootFail
> Boot Failed. Harddisk 1
> !!!! Find PE image =
/home/grehan/proj/stock_edk2/Build/BhyveX64/DEBUG_GCC48/X64/UefiCpuPkg/Cpu=
Dxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=3D000000007F8DC000, =
EntryPoint=3D000000007F8DC2AF) !!!!

This error is from the UEFI code.  It implies that the CSM boot failed =
or was never invoked.  If the HDD isn=92t bootable, yet the CD is, that =
is the most likely source as the CSM assumes the first block device it =
encounters is the desired boot source.

Tycho=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17936712-FB88-4017-8C0D-BEC4926D698E>