-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running OpenBSD on xhyve does not work #179
Comments
Also running on Mac OS X Catalina 10.15 & MBP 2018, if that info is relevant. |
Were you able to get this working @mikroskeem ? |
No.
…---- On Tue, 12 Nov 2019 11:32:44 +0000 [email protected] wrote ----
Were you able to get this working @mikroskeem ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
At first I thought it was this upstream bhyve issue -- before that bugfix, it didn't properly emulate an instruction sequence generated by LLVM 8 (the compiler OpenBSD uses for 6.6), but I don't think that's actually the problem here, since I don't see a "Failed to emulate instruction" message. Perhaps once the MSR 0xc80 is implemented in xhyve so Without
I haven't been able to get VNC working properly with any xhyve guest -- what VNC clients are recommended? The built-in Screen Sharing fails to connect, although it does enough to kick off bootup (which waits for a VNC connection), and TigerVNC has major problems: the keyboard doesn't work properly, and the display is shown at 1x in the lower quarter of the VNC window (probably a HiDPI issue). Using the serial console (no |
So you got it that far, interesting. Can you provide an exact command line so I could try it out myself? |
This is my command line for installation (xhyve 1dd9a51):
Setting the serial console in the OpenBSD boot loader ( For normal booting, I replace both virtio-blk lines with virtio-net crashes immediately (#164) so I use e1000 instead. Interestingly the |
Networking does not seem to work for me at all. Any ideas why? |
No idea... does it work in other xhyve guests (e.g. Linux)? I just submitted #182 which fixes the rdmsr error and allows running without I also discovered that with a VNC framebuffer enabled, setting OpenBSD to a lower resolution via machine gop N avoids xhyve crashing after loading the installer kernel. OpenBSD's efifb defaults to setting the highest possible resolution, (1920x1200 for me); I set it to 1024x768 instead and that helped. Actually all lower resolutions up to 1280x720 worked, but 1280x1024 and above did not. The serial console works much better for me though. |
That issue does indeed affect xhyve, and it's in fact unrelated to the rdmsr issue. It didn't appear at first, because in the default state, OpenBSD only detects a single CPU (even when using bsd.mp), which apparently does not hit this code path. However, if I disable ACPI support in OpenBSD, it uses the mpbios tables and successfully finds all virtual CPUs. (I'm not yet sure whether this is a bug in xhyve or in OpenBSD.) OpenBSD 6.5 works properly with multiple CPUs and ACPI disabled, but 6.6 hits this bug:
The addresses are slightly different than in the bhyve bug but it's the same basic pattern:
(Found via |
FYI, I have imported the bhyve fix for this in PR #214. |
How to reproduce:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: