qemu Fatal server error: (EE) xf86OpenConsole: No console driver found. Supported drivers: pccons (with X support), syscons, pcvt. Check your kernel's cons

Hello to everyone.

I have installed freebsd for arm64 on my jetson nano,mainly because I want to install ferdi (https://getferdi.com : All your messaging services in one place). A tool like Franz or rambox,so that in one only shot we can use a lot of social networks,in one only comfortable and nice interface. This will be a very life saver,because on Freebsd and in general for arm64 there is nothing like that. But Ferdi needs Xorg and a desktop manager like xfce. I have installed them on my qemu/kvm emulated freebsd 13 for arm64 on the jetson nano. But when I write "startx" get the error on the title. This is how I have emulated it :

Code:
/opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \
-bios edk2-aarch64-code.fd --nographic \
-drive if=none,file=FreeBSD-13.qcow2,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-device virtio-net-device,netdev=mynet \
-netdev tap,id=mynet,ifname=tap0,script=no,downscript=no,vhost=on \
-device virtio-gpu-pci,virgl=on,xres=1024,yres=768 \
-display sdl,gl=on \
-no-reboot

and this is the error that I get when I run "startx" :

Code:
Fatal server error:
(EE) xf86OpenConsole: No console driver found
    Supported drivers: pccons (with X support), syscons, pcvt
    Check your kernel's console driver configuration and /dev entries(EE)

Instead,if I remove the parameter "--nographic" qemu tells "guest disabled display" and I don't see anything anymore.

can someone put my shoes in the right road to fix this error ? thanks.
 

Attachments

  • Screenshot_2021-07-17_15-17-08.png
    Screenshot_2021-07-17_15-17-08.png
    400.4 KB · Views: 536
I am facing the same problem while trying to run FreeBSD aarch64 in Apple M2 using qemu.

Did you manage to get it working?

This is how I launch the virtual instance:

Code:
# INSTALL USING YOUR OWN VIRTUAL DISK CREATED WITH qemu-img
#qemu-system-aarch64 -m 2048 -cpu host -M virt,accel=hvf \
#        -bios edk2-aarch64-code.fd -serial telnet::4444,server -nographic \
#        -drive if=virtio,file=freebsd-arm64.qcow2,id=hd0 \
#        -drive if=virtio,file=FreeBSD-14.2-STABLE-arm64-aarch64-20250109-96ef85cc51ba-270050-disc1.iso,id=hd1 \
#        -device virtio-net,netdev=net0 -netdev user,id=net0

# RUN IT
qemu-system-aarch64 -m 2048 -cpu host -M virt,accel=hvf \
        -bios edk2-aarch64-code.fd -serial telnet::4444,server -nographic \
        -drive if=virtio,file=freebsd-arm64.qcow2,id=hd0 \
        -device virtio-net,netdev=net0 -netdev user,id=net0

I then install xorg and try to launch X without success:

Code:
# startx
xauth:  file /root/.serverauth.2673 does not exist
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
Current Operating System: FreeBSD kosmos1 14.2-STABLE FreeBSD 14.2-STABLE stable/14-n270050-96ef85cc51ba GENERIC arm64
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 16 21:08:10 2025
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) xf86OpenConsole: No console driver found
        Supported drivers: pccons (with X support), syscons, pcvt
        Check your kernel's console driver configuration and /dev entries(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
 
I already found those messages. There are more issues -easy to fix- if you try to run X as non-root. For the time being I am trying as root.

Shall I understand that you did not manage to get it running due to the no console driver found issue?
 
From the answers of both post I do not think it is solved.
I am now trying to see if this is related to /dev/ttyv? device files missing.

Code:
# kldstat
Id Refs Address                Size Name
 1    1 0xffff000000000000  13367b0 kernel
# kldload vt
kldload: can't load vt: No such file or directory
# ls -l /dev/tty*
crw-------  1 root tty   0x2e Jan 16 21:36 /dev/ttyu0
crw-------  1 root wheel 0x2f Jan 16 21:27 /dev/ttyu0.init
crw-------  1 root wheel 0x30 Jan 16 21:27 /dev/ttyu0.lock
#
 
Back
Top