Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 11:17:40 +0000
From:      Matt Churchyard <matt.churchyard@userve.net>
To:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Illumos boot
Message-ID:  <b2b07b65ee984ac5b902996b9bc9bdf4@SERVER.ad.usd-group.com>

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

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 t=
o get it to boot up correctly.

Here's an example of the command I'm generating at the moment (This is runn=
ing on an Intel Core-i3):

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

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 -

slot 3 - cd
slot 4 - hdd
slot 5 - virtio-net

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

slot 3 - cd
slot 4 - hdd
slot 7 - virtio-net

panic[cpu1]/thread=3Dffffff0004002c40: BAD TRAP: type=3Dd (#gp General prot=
ection) rp=3Dffffff0004002740 addr=3D0

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.

Interestingly, my code normally puts the CD after the HDD, which Windows se=
ems happy with as long as the slots are consecutive.
In SmartOS this gives me a different error:

slot 3 - hdd
slot 4 - cd
slot 5 - virtio-net

PlatformBdsBootFail
Boot Failed. Harddisk 1
!!!! Find PE image /home/grehan/proj/stock_edk2/Build/BhyveX64/DEBUG_GCC48/=
X64/UefiCpuPkg/CpuDxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=3D000000007F8DC000=
, EntryPoint=3D000000007F8DC2AF) !!!!

Regards,
Matt Churchyard




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2b07b65ee984ac5b902996b9bc9bdf4>