qemu FreeBSD 14 on QEMU on MBP M2

Hello all,
I have been trying to get xorg display server to work on my freebsd 14, running on qemu (UTM.app), and with virtio_ramfb display attached to it. No matter what xorg configuration I apply, `xinit` either can not find the display or fails on "AddScreen" (using the scfb driver).

I am not a very advanced user. Any help and walkthroughs here would be greatly appreciated.
 
I have. That the first command I tried after installing xorg. Based on the man pages it seems like it is a wapper over xinit so after running into problems I tried to manually configure and test running xinit. Are you running xorg successfully in QEMU on an ARM MackBook?
 
After running startx, can you post your xorg.log here?

(You can find it in ~/.local/share/xorg/Xorg.n.log)

If it can't find the display or screen, perhaps there is some hint in there as to why they aren't attaching correctly.

Additionally, as a workaround, you can likely sidestep this issue using either of the following:
  • tigervnc's Xvnc server - Stream graphics via a VNC server
  • X11/ssh and XQuartz - Forward X11 instructions via SSH into a native Xserver running on the host
 
This is what the logs look like after running startx
 

Attachments

  • Screenshot 2024-09-23 at 8.55.21 AM.png
    Screenshot 2024-09-23 at 8.55.21 AM.png
    441.4 KB · Views: 71
  • Screenshot 2024-09-23 at 8.55.25 AM.png
    Screenshot 2024-09-23 at 8.55.25 AM.png
    434.3 KB · Views: 58
I am using qemu from MacPorts rather than UTM, but I also had trouble with the framebuffer. Instead, I used x11-drivers/xorgxrdp in my aarch64 FreeBSD vm, then forwarded the vm's port 3389 to my host, and connected with MacPorts' net/FreeRDP, as Microsoft's Remote Desktop app did not seem to allow arbitrary ports. I was able to get the x11/mate metapackage installed and working, and www/firefox/ is working. I have not really pushed the graphics too hard (video, games, etc). Using RDP instead of a framebuffer might not work for your use case, depending on expectations.
 
Back
Top