-
szilard
Hi. I am trying to get 9front iso booting in Bhyve on OmniOS. I have successfully did it 6 months ago, but now it fails to boot.
-
szilard
The console shows the iso starts, the 9front bootloader emits some info and then it attempts to start the kernel, but then the zone suddenly stops.
-
andyf_
szilard - is there anything in the zone logs? (`zadm log <zone>` is the easiest way if you have zadm installed)
-
szilard
-
andyf_
That will do it, the assertion. We need to understand why it tripped and whether bhyve should handle whatever's going on better.
-
szilard
I have attempted to remove every optional stuff from the config, but zadm adds most of them back automatically. So I am unable to check which module / config entry triggers the bug.
-
szilard
It would be easier to look at the bhyve sources to see what's going on.
-
szilard
or dtrace, maybe
-
Woodstock
shouldn't this have left a core file?
-
szilard
I am looking at the pci_emul.c here: * Register (or unregister) the MMIO or I/O region associated with the BAR
-
szilard
* register 'idx' of an emulated pci device.
-
Woodstock
if you have a core, the stack will tell you which device failed
-
szilard
-
szilard
Woodstock: where should I look for the core file?
-
szilard
/var/cores?
-
szilard
I have many /var/cores/core.bhyve.13782
-
Woodstock
well, it's probably the newest one?
-
szilard
yep
-
szilard
deleted all, and bhyve created a new one, so it is definetely new
-
szilard
uploading right now
-
szilard
core.bhyve.20110 :
0x0.st/PHsX.20110
-
szilard
it is 10Mb
-
Woodstock
it's the framebuffer device
-
Woodstock
trying to register bar 1, which I presume is the actual framebuffer memory
-
szilard
afaik there is a bhyve config option to disable the fb. Or is this the efi fb? I don't really know too much about bhyve inner working.
-
szilard
If I disable vnc it doesn't crash, but it gets stuck
-
szilard
without vnc it hangs here:
pastebin.com/raw/6ASdChgc
-
szilard
This is the consol output with BHYVE_DEBUG firmware
-
szilard
my scrollback buffer is too short to capture everything, sorry
-
szilard
in zadm log i see only this 2 lines:
-
szilard
root@omnios:/var/cores# zadm log 9front
-
szilard
wrmsr to register 0x401(0) on vcpu 0
-
szilard
wrmsr to register 0x401(0) on vcpu 1
-
szilard
I am trying it with a different OS iso to see if this is a 9front specific bug or not.
-
szilard
openbsd 78.iso boots just fine with enabled vnc.
-
andyf
Yes, 9front is obviously doing something we don't expect and we should see what we can do about improving things.
-
Woodstock
i don't recall the details, but working on vga bios stuff and gpu passthru a while ago i saw similar issues with bar remapping
-
szilard
-
andyf
-
andyf
Just checking to see if it's possible to disable the bootrom variables with our framework
-
andyf
Yes, szilard try `zadm set 9front uefivars=off`
-
szilard
andyf: this works. thanks!
-
szilard
I have successfully got it booted via vnc
-
szilard
-
andyf
Great :)
-
andyf
We should probably build bhyve with that extra detailed error message always enabled