Wayland/Sway on VirtualBox: Found 0 GPUs, cannot create backend

Hello,

I am following the Wayland Setup under VirtualBox v7.0 with the VMSVGA graphics controller, and I'm running into the following when executing 'sway' from terminal. I've also tried setup under Hyper-V v1 and v2, and get the same result:

Code:
$ sway
seatd/server.c: new client connected
seatd/seat.c: added client 1 to seat 0
seatd/seat.c: opened client 1 on seat 0

[wlr] [backend/backend.c] Found 0 GPUs, cannot create backend
[wlr] [backend/backend.c] Failed to open any DRM device
[sway/server.c] Unable to create backend

Packages
FreeBSD 13.2-RELEASE
wayland-1.22.0
sway-1.8.1_1
seatd-0.8.0

user is part of the video group

.profile contains:
Code:
XDG_RUNTIME_DIR=/var/run/user/1001; export XDG_RUNETIME_DIR

I appreciate any help on this - thank you!
 
Same issue, couldn't figure out what is wrong!
 

Attachments

  • Screenshot from 2023-10-20 05-52-31.png
    Screenshot from 2023-10-20 05-52-31.png
    20 KB · Views: 281
You need a supported drm_kmod graphics card for Wayland to work. AFAIK there is no VirtualBox DRM support.

Alternatively, you can use e.g. sway on top of xorg, i.e. you can run X11 and then start sway which so it runs in an X window and uses xorg for graphics output.
 
sway on top of xorg, i.e. you can run X11 and then start sway which so it runs in an X window and uses xorg for graphics output.
Thank you for the reply. Yes, I did that successfully but having that on virtual machine would have been great to do any experiment without fear.
 
Back
Top