Bug 256216 - ArcaOS (OS2) 5.0.6 unable to boot under bhyve
Summary: ArcaOS (OS2) 5.0.6 unable to boot under bhyve
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: 13.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-28 08:56 UTC by rdunkle
Modified: 2021-05-30 02:51 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rdunkle 2021-05-28 08:56:09 UTC
I am testing a new version of ArcaOS (OS2) version 5.0.6.09.  Arca now has the ability to boot and run using UEFI without CSM.  

Bhyve starts ok:
fbuf frame buffer base: 0x943800000 [sz 16777216]

The vnc connection is ok at this point.
The Arca install program is able to get into the preboot device picker menus.  Then user selects a VGA resolution and boots the OS2 kernel.  I see the kernel startup and show the OS2 kernel version:
Internal revision 14.202_SMP

At that point bhyve aborts and the vnc connection is broken.  I see this error:

Assertion failed: (0), function vga_port_in_handler, file /usr/src/usr.sbin/bhyve/vga.c, line 862.
Abort

Bhyve start up:
/usr/sbin/bhyve -c 2 -s 0,hostbridge -s 3,ahci-cd,./arcaos-5.0.6.09-en.iso -s 4,ahci-hd,./arca.img  -s 11,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait -s 20,xhci,tablet -s 31,lpc -l bootrom,./BHYVE_UEFI.fd -m 4G -H -w arca
Comment 1 Peter Grehan freebsd_committer freebsd_triage 2021-05-28 09:30:45 UTC
Try adding "vga=off" to the fbuf config portion i.e.
 
  -s 11,fbuf,tcp=0.0.0.0:5900,w=800,h=600,vga=off,wait

This completely removes all trace of VGA registers - OS2 may be probing for these even with an EFI boot.

Is it possible to download the ArcaOS ISO ? The website seems to be down atm.
Comment 2 rdunkle 2021-05-28 11:43:48 UTC
I added the vga=off to the command line.
I am now able to boot into the install menu!

I will notify the people at Arca Noae about downloading the iso.
Comment 3 rdunkle 2021-05-29 11:09:42 UTC
At this point I am past the initial dvd boot.
Once the Arca install menu appears on the screen the mouse quits working in vnc.

The menus are accessible with keyboard combinations.
Choose Install / Maintain | Boot with menu for own values|
PgDn | the defaults are OK | PgDn |
Make sure First controller is "AHCI SATA (OS2AHCI) |
tab down | Second controller None (use arrow key to select) |
the rest of the defaults are OK | F10 |
Enter to save changes and continue to boot
Select a suitable screen resolution | Enter
ArcaOS Installer
Alt S (System Management)
Alt D  (Disk)
-- at this point the system does not see any disks --
if you get stuck where alt letter combination do not work -- 
send Cntrl Esc to menu,sometimes you can get back to the menu and sometimes Bhyve closes the connection

Bhyve does not see any disks.					
 
To move forward, I need to initialize the disk.  The disk at this time is only set up with the--  
truncate -s 12G arca.img
Any type of Arca disk menu command will usually abend Bhyve with a seg fault.

I decided to use a Win10  to initialize the disk image.  
I used a Win 10 guest and diskpart to create a gpt disk.  
Bhyve still does not see any disk.

So two problems no access to disks and no mouse in vnc.
Comment 4 Peter Grehan freebsd_committer freebsd_triage 2021-05-30 02:51:23 UTC
I have an ISO now (thanks for getting that set up). Can get to the installer screen but the mouse isn't working, neither ps2 nor xhci/tablet, and unable to get to the Next button with a keystroke. However, the keyboard is working ok since tab is accepted.

I'll see if I can work out what's happening with the mouse.