From nobody Tue Jan 23 03:55:14 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TJtXV5TBZz576Bt for ; Tue, 23 Jan 2024 03:55:22 +0000 (UTC) (envelope-from henrik@gulbra.net) Received: from srv.gulbra.net (ec2-174-129-193-206.compute-1.amazonaws.com [174.129.193.206]) by mx1.freebsd.org (Postfix) with ESMTP id 4TJtXV3ZR0z4Gj7 for ; Tue, 23 Jan 2024 03:55:22 +0000 (UTC) (envelope-from henrik@gulbra.net) Authentication-Results: mx1.freebsd.org; none Received: from [172.16.182.97] (localhost [127.0.0.1]) by srv.gulbra.net (Postfix) with ESMTP id B37AF2D3 for ; Tue, 23 Jan 2024 03:55:16 +0000 (UTC) Received: from [192.168.1.4] (83-233-248-149.cust.bredband2.com [83.233.248.149]) by srv.gulbra.net (Postfix) with ESMTPSA id D95742C2; Tue, 23 Jan 2024 03:55:15 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------yJjRCWv0LH7lILt8twec6fJl" Message-ID: <2f476600-0792-48a7-b4b2-c4082772a6c6@gulbra.net> Date: Tue, 23 Jan 2024 04:55:14 +0100 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bhyve without UEFI questions Content-Language: sv-SE, en-US To: Chuck Tuffli Cc: John Baldwin , freebsd-virtualization@freebsd.org References: From: Henrik Gulbrandsen In-Reply-To: X-Rspamd-Queue-Id: 4TJtXV3ZR0z4Gj7 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14618, ipnet:174.129.0.0/16, country:US] 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
 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--