Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2022 06:04:15 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-virtualization@freebsd.org
Subject:   problems with debian 11 guest on bhyve always staying at the grub screen
Message-ID:  <YgSq3wOvbd2Awble@cloud9.zyxst.net>

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

--QejFuKkMQsgt/kro
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I'm using grub2-bhyve. Not sure if it's still needed in recent linux, but
it's the only way I know of on console of booting the image. Debian has=20
been installed into the image. The problem is it always boots into the=20
grub menu and stays there instead of automatically loading.

There's a device.map containing this line:
(hd0) ./debian.img

I invoke grub-bhyve like so:
sudo grub-bhyve -m ./device.map -r hd0,msdos1 -M 16384M debian

the grub menu appears and stays up if I don't intervene.
This has to be entered:

grub> linux (hd0,msdos1)/vmlinuz-5.10.0-11-amd64 root=3D/dev/mapper/v011--v=
g-root
grub> initrd (hd0,msdos1)/initrd.img-5.10.0-11-amd64

then grub loads and the following commands launch the vm:

sudo bhyve -A -H -P -s 0:0,hostbridge \
-s 1:0,lpc \
-s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,./debian.img \
-l com1,stdio \
-c 4 -m 16384M \
debian

Because the grub menu stays up and waits for a response, I can't just scrip=
t it like=20
i do for ubuntu like so:

[ in a different directory ]

sudo bhyvectl --vm=3Dubuntu2004 --destroy
sudo grub-bhyve -m ./device.map -r hd0,gpt2 -M 16384M ubuntu2004
sudo bhyve -A -H -P -s 0:0,hostbridge \
-s 1:0,lpc \
-s 2:0,virtio-net,tap3 \
-s 3:0,virtio-blk,/dev/zvol/data/ubuntu2004-1 \
-l com1,stdio \
-c 8 -m 16384M \
ubuntu2004=20

Why is this?

thanks,
--=20
J.

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

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmIEqtUACgkQs8o7QhFz
NAXc5g//Y05zCyO79Fot7tj7ShIWunjz0/eOmF0L03R0pGfC2ItNsBZb84BbyInj
0vk2E/DtL9pd02mPAKQDiG56Cj6VJWO6pK6OCjlde76BIS39t0jB/qWMSi82dpF2
V4CYoJzsJn8ceIS3hYwphhFYZ8EmDCBRD59nQgDuRDvR6spWj6HHAHJzi4Mf61GZ
4XnNIulrUgi+mfbEYYrclzpUq1PZpJKUiS/L0b5X5rFs2YV5Xp5jy+wYoWpWA/L+
zoYL9EkxWQRz97DkzTaS0CPHqYrbLEf79XSIz/2emYnBhWr0E9szNwovjgbZyRea
kozTttpvdjJIFVPOlFm3hWFXDm7tPRYnOjinkbKaIKWAPSOp2jS2353aFlPgZXDF
RNV8vJw8v+rzn+ds2LOATDI/5c90Fjlq00ExuNy6syHY1f7f5+T6DqBzWhmM0MW9
wvgrUgv+9uBEh79PWp+9xMLOv8Rn2Qa2wBcMywxIYswES73Ab046Twi1wbTz46wW
4CJWMspiVFpVIXTd/tNfZgIT4tRPLnHQhYjeUtQ9IjgIQu9ToYidjI2Xx7Zh7+Vc
uMyk4SB/UX3FVH05M3IlT1dfbBuVxT6X7RvuGmIthw9i0MQvG6IPO/WFfznj9mK7
TzK1pH3WGLWuDFGDFmkXI/iYBn54JQMSGCg3MEpvgNdTtibP0iI=
=3abc
-----END PGP SIGNATURE-----

--QejFuKkMQsgt/kro--



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