Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 04:55:14 +0100
From:      Henrik Gulbrandsen <henrik@gulbra.net>
To:        Chuck Tuffli <chuck@freebsd.org>
Cc:        John Baldwin <jhb@freebsd.org>, freebsd-virtualization@freebsd.org
Subject:   Re: bhyve without UEFI questions
Message-ID:  <2f476600-0792-48a7-b4b2-c4082772a6c6@gulbra.net>
In-Reply-To: <CAKAYmM%2Bh3JRLbGz3X_uYroWxvscaSJ-3TFVAbRKe957%2B1JuyuA@mail.gmail.com>
References:  <CAKAYmM%2Bh3JRLbGz3X_uYroWxvscaSJ-3TFVAbRKe957%2B1JuyuA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------yJjRCWv0LH7lILt8twec6fJl
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

  On 2024-01-22 23:57, Chuck Tuffli wrote:
> I'm getting conflicting information and thought I'd ask here about
> guest disk images without UEFI.
>
> 1. If bhyve can boot the image with uefi-csm, should I be able to get
> a graphical console? I tried:
>     -s 6:0,fbuf,tcp=0.0.0.0:5900,vga=io
> VNC connects, but the screen is blank. I saw some mentions of vga=on,
> but that generates an error message.

As far as I know, VGA emulation in bhyve still does not work as intended.

I did some work to fix this back in 2019, but the patches were never merged:

https://www.gulbra.net/freebsd-bhyve/

> 2. Instead of using uefi-csm, can bhyve boot SeaBIOS? I've tried -l
> bootrom,/tmp/seabios/out/bios.bin but I'm not sure that is working.

The problem is that you will need an emulated video card with its own 
Video BIOS, unless you pass through a real video device. My patches will 
give you that, but the code is non-trivial and has not been touched in 
almost five years. It would take some work to bring it up to date with 
the current baseline. I have been lingering on this list in the hope 
that someone with commit privileges would take an interest in BIOS 
booting and VGA graphics, but I guess most people only need UEFI nowadays.

/Henrik

--------------yJjRCWv0LH7lILt8twec6fJl
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix"> On 2024-01-22 23:57, Chuck Tuffli
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKAYmM+h3JRLbGz3X_uYroWxvscaSJ-3TFVAbRKe957+1JuyuA@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">I'm getting conflicting information and thought I'd ask here about
guest disk images without UEFI.

1. If bhyve can boot the image with uefi-csm, should I be able to get
a graphical console? I tried:
   -s 6:0,fbuf,tcp=0.0.0.0:5900,vga=io
VNC connects, but the screen is blank. I saw some mentions of vga=on,
but that generates an error message.</pre>
    </blockquote>
    <br>
    As far as I know, VGA emulation in bhyve still does not work as
    intended.<br>
    <br>
    I did some work to fix this back in 2019, but the patches were never
    merged:<br>
    <br>
        <a href="https://www.gulbra.net/freebsd-bhyve/"
      class="moz-txt-link-freetext">https://www.gulbra.net/freebsd-bhyve/</a><br>;
    <br>
    <span style="white-space: pre-wrap">
</span>
    <blockquote type="cite"
cite="mid:CAKAYmM+h3JRLbGz3X_uYroWxvscaSJ-3TFVAbRKe957+1JuyuA@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">2. Instead of using uefi-csm, can bhyve boot SeaBIOS? I've tried -l
bootrom,/tmp/seabios/out/bios.bin but I'm not sure that is working.
</pre>
    </blockquote>
    <br>
    The problem is that you will need an emulated video card with its
    own Video BIOS, unless you pass through a real video device. My
    patches will give you that, but the code is non-trivial and has not
    been touched in almost five years. It would take some work to bring
    it up to date with the current baseline. I have been lingering on
    this list in the hope that someone with commit privileges would take
    an interest in BIOS booting and VGA graphics, but I guess most
    people only need UEFI nowadays.<br>
    <br>
    /Henrik<br>
    <br>
  </body>
</html>

--------------yJjRCWv0LH7lILt8twec6fJl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f476600-0792-48a7-b4b2-c4082772a6c6>