Solved FreeBSD on VirtualBox: Cannot run in framebuffer mode.

Hello my friends,

Im new to this forums but i'm using FreeBSD for about 3 mouths on my secondary desktop. Now I want to run a DE on a Virtual Machine but i have some problems. Im running FreeBSD 12.1 on a VirtualBox machine. And i have some issues starting Xorg.

When running startx as my user or root i get the following error:

Code:
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDs    for all framebuffer devices

My /etc/rc.conf has the follow modules enabled:
Code:
hald_enable="YES"
vboxguest_enable="YES"
vboxservice_enable="YES"
vboxservice_flags="--disable-timesync"

Ive installed xorg and virtualbox-ose-additions through pkg. One detail that may be important is that i'm running the VM in EFI mode.

Xorg -configure returns:
Code:
List of video drivers:
    scfb
    vboxvideo
    modesetting
    vesa
scfb trace: probe start
No devices to configure. Configuration failed.
(EE) Server terminated with error (2). Closing log file.

I've also manually added the follow settings to /usr/local/etc/X11/xorg.conf following FreeBSD as a Guest on Virtualbox:
Code:
Section "Device"
    Identifier "Card0"
    Driver "vboxvideo"
    VendorName "InnoTek Systemberatung GmbH"
    BoardName "VirtualBox Graphics Adapter"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "vboxmouse"
EndSection

But then i get No screens found error. If anyone can help me i would appreciate.
 
Check what is the graphics controller in the settings of your VM. It should be VBoxVGA or VBoxSVGA. Xorg doesn't work with VMSVGA.

Remove all the .conf files you added.
 
Also don't forget to enable DBus, it's needed. HAL isn't required.

sysrc dbus_enable="YES"
 
Thank you all for the replies. Sorry for the long time to respond, work was busy and i had no time to fix my FreeBSD VM.

Check what is the graphics controller in the settings of your VM. It should be VBoxVGA or VBoxSVGA. Xorg doesn't work with VMSVGA.

Remove all the .conf files you added.

That was the problem, it was set to VMSVGA, i did change to VboxSVGA but since "Enable 3D Acceleration" VirtualBox didn't allow me to change and i didn't double checked that the setting was actually changed, so i was running VMSVGA thinking that i was running VboxSVGA.

Also don't forget to enable DBus, it's needed. HAL isn't required.

sysrc dbus_enable="YES"

It was my bad, i had enabled dbus but forgot to copy the line from /etc/rc.conf in this topic.


This is only true if x11-drivers/xf86-video-vmware is not installed, otherwise X.org works very well with VMSVGA selected as the graphics controller in VirtualBox.

I did installed x11-drivers/xf86-video-vmware and now its running with VMSVGA. My mistake was that i was thinking it was running with VboxSVGA and it was running with VMSVGA so i didn't bother to find a vmware graphics adapter.

Thanks you all folks for the help, now i'm able to run with both VboxSVGA and VMSVGA flawless. I'll be using VboxSVGA since it does support auto-resize.
 
Back
Top