Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 2015 20:47:49 +0300
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        Trent Thompson <trentnthompson@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve -l bootrom problem
Message-ID:  <20151102174748.GC18899@kloomba.lvv.mirantis.net>
In-Reply-To: <CAE7bWBqnvdMaF%2BO4zuubY2NnFaPAZO0%2BA1YHiyFysaFh6ve=PA@mail.gmail.com>
References:  <20151102171356.GB18899@kloomba.lvv.mirantis.net> <CAE7bWBqnvdMaF%2BO4zuubY2NnFaPAZO0%2BA1YHiyFysaFh6ve=PA@mail.gmail.com>

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

--eHhjakXzOLJAF9wJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Trent Thompson wrote:

> According to the bhyve/Windows wiki: https://wiki.freebsd.org/bhyve/Windo=
ws
> The lpc slot needs to be in slot 31, and the block devices bust be in 3, =
4,
> 5, and 6.
> I have had luck* booting into the Debian install environment using this
> method, as long as you pass "console=3DttyS0" to grub at boot time. I bel=
ieve
> you must do the same as well on FreeBSD, with adding the ability to use a
> console in /boot/loader.conf
>=20
> *I have installed Debian VMs utilizing UEFI, however I have not had succe=
ss
> after destroying the VM.
> They fail to boot and drop you to that fancy EFI shell.

Hm... changing pci slot numbers doesn't seem to change anything:

sudo /usr/sbin/bhyve -l bootrom,/home/novel/uefi/BHYVE_UEFI_20151002.fd
-c 2 -m 512 -A -I -u -H -P  -s 0:0,hostbridge -s
3:0,ahci-hd,/home/novel/bhyve_freebsd.img.bak  -s 31,lpc -l
com1,/dev/nmdm0A testvm=20

and I get:

Boot Failed. EFI Hard Drive

However, when I do:

sudo bhyveload -m 512 -d /home/novel/bhyve_freebsd.img.bak testvm

and then:

sudo /usr/sbin/bhyve -c 2 -m 512 -A -I -u -H -P  -s 0:0,hostbridge -s
3:0,ahci-hd,/home/novel/bhyve_freebsd.img.bak  -s 31,lpc -l
com1,/dev/nmdm0A testvm

I can see a console:

(It fails to mount root though because my image is configured to virtio,
but I guess it's not relevant to this situation).

>=20
> On Mon, Nov 2, 2015 at 10:13 AM, Roman Bogorodskiy <novel@freebsd.org>
> wrote:
>=20
> > Hi,
> >
> > I'm facing a strange problem with -l bootrom.
> >
> > I try to boot a VM this way:
> >
> > sudo /usr/sbin/bhyve -l bootrom,/home/novel/uefi/BHYVE_UEFI_20151002.fd
> > -c 2 -m 214 -A -I -u -H -P -s 0:0,hostbridge -s
> > 2:0,virtio-net,tap0,mac=3D52:54:00:56:9a:77 -s
> > 3:0,ahci-hd,/home/novel/FreeBSD-11.0-CURRENT-amd64.raw  -s 1,lpc -l
> > com1,/dev/nmdm0A testvm
> >
> > BHYVE_UEFI_20151002.fd is downloaded from [1].
> > FreeBSD-11.0-CURRENT-amd64.raw is downloaded from [2].
> >
> > VMs fail to boot with 'Boot Failed. EFI Hard Drive' and brings into UEFI
> > shell.
> >
> > Changing ahci-hd to virtio-blk changes error message to:
> >
> > 'Boot Failed. EFI Misc Device'.
> >
> > Dropping 'hostbridge' and 'virtio-net' doesn't seem to change anything.
> >
> > Also, before trying FreeBSD-11.0-CURRENT-amd64.raw I tried my old images
> > I used with bhyveload and they fail in the same way, though they're
> > still booting using bhyveload.
> >
> > I'm running -CURRENT updated last weekend on Intel i5-2310.
> >
> > What could be wrong with this?
> >
> > 1: http://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_20151002.fd
> > 2:
> >
> > http://ftp.freebsd.org/pub/FreeBSD/snapshots/VM-IMAGES/11.0-CURRENT/amd=
64/Latest/FreeBSD-11.0-CURRENT-amd64.raw.xz
> >
> > Roman Bogorodskiy
> >

Roman Bogorodskiy

--eHhjakXzOLJAF9wJ
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJWN6HEAAoJEMltX/4IwiJqlIwH/3uR3WVmXmUDuU6pbIk8dDMG
vVS7UVcYTwdSyw3NzD6s22iBCUNOdTu/SyFsr5mpzR3gQ72/kSIuFReG7KVDW50K
DUCKZ4DCRbV1DblHb9KbBQe2SN1x8QJTMOzNmgxzYvpFUOJgNcWm7wZMR1Lb+e27
f9PApkTH56sw459HepP5C713d/HdQerrByhyUG1QokRmSuidNFwMLjlcKKkXjbkF
TqT28osStJmJbGm+T3EOqVCBqOM/NSTz8IO4fIh6fI+71JUQFOJze68Ch/+QH5FN
eovUJ5pK9WpapHP0kn+ay11jCqdKK1xxp30AQ/vM8rbQ1xhN57Ka7Yu7j4L0cwg=
=b2Lh
-----END PGP SIGNATURE-----

--eHhjakXzOLJAF9wJ--



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