freebsd 14 on bhyve

Hi all,
Been using cbsd to configure a new freebsd 14 machine. It all seems to work but it does keep nagging me about the xorg config file and not being able to write to the framebuffer. Most important is the config file:
Screens are being declared but this is what I see in the logs. Is there anyone able to tell me what I am doing wrong? I do have an nvidia card but I did not give it a passthrough on the pci bus.
Code:
[  1301.853] (--) PCI:*(0@0:8:0) fb5d:40fb:0000:0000 rev 0, Mem @ 0xc100b000/128, 0xc0000000/16777216, BIOS @ 0x????????/65536
[  1301.853] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1301.853] (II) LoadModule: "glx"
[  1301.853] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  1301.853] (II) Module glx: vendor="X.Org Foundation"
[  1301.853]    compiled for 1.21.1.8, module version = 1.0.0
[  1301.853]    ABI class: X.Org Server Extension, version 10.0
[  1301.853] (II) LoadModule: "modesetting"
[  1301.853] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[  1301.853] (II) Module modesetting: vendor="X.Org Foundation"
[  1301.853]    compiled for 1.21.1.8, module version = 1.21.1
[  1301.853]    Module class: X.Org Video Driver
[  1301.853]    ABI class: X.Org Video Driver, version 25.2
[  1301.853] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1301.853] (--) Using syscons driver with X support (version 2.0)
[  1301.853] (--) using VT number 9

[  1301.853] (EE) open /dev/dri/card0: No such file or directory
[  1301.853] (WW) Falling back to old probe method for modesetting
[  1301.853] (EE) open /dev/dri/card0: No such file or directory
[  1301.863] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1301.863] (EE) Screen 0 deleted because of no matching config section.
[  1301.863] (II) UnloadModule: "modesetting"
[  1301.863] (EE) Device(s) detected, but none match those in the config file.
[  1301.863] (EE) 
Fatal server error:
[  1301.863] (EE) no screens found(EE) 
[  1301.863] (EE) 
Please consult the The X.Org Foundation support 
         at [URL]http://wiki.x.org[/URL]
 for help. 
[  1301.863] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1301.863] (EE) 
[  1301.863] (EE) Server terminated with error (1). Closing log file.
~
 
It all seems to work but it does keep nagging me about the xorg config file and not being able to write to the framebuffer.
Don't use cbsd but virtual machines usually only have a serial console attached. What framebuffer is it supposed to use? Serial connections are character based.

You need to enable the VNC output and EUFI boot FreeBSD in the virtual machine. That will give you access to the scfb(4) framebuffer driver you can use in X. Or figure out a way to passthrough a graphics card (this does mean the host itself can't use it anymore) and use that as output.
 
I am trying to see if I want to switch to freebsd 14 once it is stable. Currently I am on GhostBSD since BSD in general was a long time ago for me.
 
And since I am not the only user I want to test things before I make a switch. The others are low profile users b.t.w. but they depend on me for having a stable interface.
 
Hi all,
Been using cbsd to configure a new freebsd 14 machine. It all seems to work but it does keep nagging me about the xorg config file and not being able to write to the framebuffer. Most important is the config file:
Screens are being declared but this is what I see in the logs. Is there anyone able to tell me what I am doing wrong? I do have an nvidia card but I did not give it a passthrough on the pci bus.
Code:
[  1301.853] (--) PCI:*(0@0:8:0) fb5d:40fb:0000:0000 rev 0, Mem @ 0xc100b000/128, 0xc0000000/16777216, BIOS @ 0x????????/65536
[  1301.853] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1301.853] (II) LoadModule: "glx"
[  1301.853] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  1301.853] (II) Module glx: vendor="X.Org Foundation"
[  1301.853]    compiled for 1.21.1.8, module version = 1.0.0
[  1301.853]    ABI class: X.Org Server Extension, version 10.0
[  1301.853] (II) LoadModule: "modesetting"
[  1301.853] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[  1301.853] (II) Module modesetting: vendor="X.Org Foundation"
[  1301.853]    compiled for 1.21.1.8, module version = 1.21.1
[  1301.853]    Module class: X.Org Video Driver
[  1301.853]    ABI class: X.Org Video Driver, version 25.2
[  1301.853] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1301.853] (--) Using syscons driver with X support (version 2.0)
[  1301.853] (--) using VT number 9

[  1301.853] (EE) open /dev/dri/card0: No such file or directory
[  1301.853] (WW) Falling back to old probe method for modesetting
[  1301.853] (EE) open /dev/dri/card0: No such file or directory
[  1301.863] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1301.863] (EE) Screen 0 deleted because of no matching config section.
[  1301.863] (II) UnloadModule: "modesetting"
[  1301.863] (EE) Device(s) detected, but none match those in the config file.
[  1301.863] (EE)
Fatal server error:
[  1301.863] (EE) no screens found(EE)
[  1301.863] (EE)
Please consult the The X.Org Foundation support
         at [URL]http://wiki.x.org[/URL]
 for help.
[  1301.863] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1301.863] (EE)
[  1301.863] (EE) Server terminated with error (1). Closing log file.
~
You need for xf86-video-scfb ( pkg install -y xf86-video-scfb ) +
Code:
Driver      "scfb"
in xorg.conf, not "modesetting".

Bhyve VNC is very slow. You need to configure any remote desktop protocol ( XPRA, Spice/VNC Server, X11 forwarding, X2GO, XRDP ) instead.
For example, several cloud profiles (Kali Linux, Parrot, Ubuntu Desktop (vdi), GhostBSD) in CBSD used XRDP: you can have access to guest via RDP instantly. Since you are familiar with the GhostBSD, try to see how it works (please use valid ci_ip4_addr and ci_gw4):

Code:
cbsd bcreate jname=ghost vm_os_type=freebsd vm_os_profile=cloud-GhostBSD-ufs-x64-22 imgsize=20g vm_ram=4g vm_cpus=2 ci_ip4_addr=10.0.1.88 ci_gw4=10.0.1.1 runasap=1

After that you can immediately use the GhostBSD desktop via RDP:

xfreerdp +clipboard +fonts /rfx /size:1200x960 /u:ghost /p:ghost /v:10.0.1.88


it's much better than Bhyve VNC + framebuffer! But worse than GPU Passthru + [XPRA/SPICE/VNC/X11/X2GO/XRDP, or UEFI GOP] ;)
 
Ok,that works, thanks. I know xfreerdp works yes, but as stated, this is only to test. Already had networking in place so that was no problem :-)
 
A small update, had to disable xhci in the config. Mouse is a bit more sluggish then on other vm's but it is doable, thanks for helping out, I can test it now.
 
Back
Top