It's a VM, I'm trying to install a gui in freebsd for the first time. I used this (https://docs.freebsd.org/en/books/handbook/wayland/) guide, and did everything until actually starting sway. I got this error below
You can not run a wayland compositor (sway) in a VM without PCI passthrough a host graphics card and loading a drm-kmod video driver in the FreeBSD VM. If the VM host has two GPUs, one can be reserved for the VM guest. Not all hypervisor provide the passthrough possibility, though. Check out the corresponding documentation of the virtualizer.It's a VM
All of the compositors described here should work with graphics/drm-kmod open source drivers; however, the NVIDIA® graphics cards may have issues when using the proprietary drivers. Begin by installing the following packages:
% pciconf -vl | grep -B3 display
vgapci0@pci0:0:2:0: class=0x030000 rev=0x00 hdr=0x00 vendor=0x80ee device=0xbeef subvendor=0x15ad subdevice=0x0405
vendor = 'InnoTek Systemberatung GmbH'
device = 'VirtualBox Graphics Adapter'
class = display