general/other How do I install FreeBSD in GNOME Boxes properly?

Hi.

I'm running Debian 11. I have GNOME Boxes installed as a Flatpak. I've tried various guides on installing FreeBSD as a VM (in other VM Managers) but I can never get it to work properly in GNOME Boxes - low resolution & other miscellaneous issues.

I have a AMD Ryzen 7 3800X CPU & a Radeon RX550/550 Series GPU.

Can someone provide a guide?

Thanks.
 
1. pkg install gnome3-lite xorg-minimal drm-kmod
2.Adding dbus_enable="YES", gdm_enable="YES" & kld_list="amdgpu" to /etc/rc.conf
3.Load the amdgpu module and start gdm manually on a root account or reboot.
4.Done

Please note that there is a bug with AMD GPU's that you need to use DRI 2 instead of the default (DRI 3)

Hint: You can not use the Vulkan API if you use DRI 2 or older.


To set to use DRI 2 create an /usr/local/etc/X11/xorg.conf.d/amdgpu.conf

Code:
Section "Device"

Identifier "Card0"

Driver "modesetting"

Option "DRI" "2"

EndSection
 
… I can never get it to work properly in GNOME Boxes - low resolution & other miscellaneous issues. …

Can you be more specific?

Which version of FreeBSD, exactly?

freebsd-version -kru ; uname -aKU

Packages from latest, or quarterly?

pkg -vv | grep -e url -e enabled

Is resolution an issue only when you use a desktop environment in the VM?

And so on.

Thanks.
 
I guess, the problem is the missing qxl driver, see Thread freebsd-12-2-missing-xorg-qxl-video-driver.80462

Boxes is a frontend to qemu+kvm and relies on qxl for the graphics. The qxl driver, however, has vanished from the FreeBSD ports. Here you find a workaround that works on FreeBSD 12.2: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255973
In 2021, I tried this with 13.0-Release as a guest in Boxes and it did work, too.

As for now, getting Gnome up and running seems to be quite another issue.
 
Hi guys.

I tried
Code:
startx
and got this:

Screenshot_2022-04-10_17-07-39.png
 
1. pkg install gnome3-lite xorg-minimal drm-kmod
2.Adding dbus_enable="YES", gdm_enable="YES" & kld_list="amdgpu" to /etc/rc.conf
3.Load the amdgpu module and start gdm manually on a root account or reboot.
4.Done

Please note that there is a bug with AMD GPU's that you need to use DRI 2 instead of the default (DRI 3)

Hint: You can not use the Vulkan API if you use DRI 2 or older.


To set to use DRI 2 create an /usr/local/etc/X11/xorg.conf.d/amdgpu.conf

Code:
Section "Device"

Identifier "Card0"

Driver "modesetting"

Option "DRI" "2"

EndSection
Hi Alenxander.

I went with:
Code:
pkg install xorg mate slim nano
(I love the MATE)

How do I load the amdgpu module?
 
Can you be more specific?

Which version of FreeBSD, exactly?

freebsd-version -kru ; uname -aKU

Packages from latest, or quarterly?

pkg -vv | grep -e url -e enabled

Is resolution an issue only when you use a desktop environment in the VM?

And so on.

Thanks.
FreeBSD 13
Quarterly
The resolution is also small in the cli.
 
1. pkg install gnome3-lite xorg-minimal drm-kmod
2.Adding dbus_enable="YES", gdm_enable="YES" & kld_list="amdgpu" to /etc/rc.conf
3.Load the amdgpu module and start gdm manually on a root account or reboot.
4.Done

Please note that there is a bug with AMD GPU's that you need to use DRI 2 instead of the default (DRI 3)

Hint: You can not use the Vulkan API if you use DRI 2 or older.


To set to use DRI 2 create an /usr/local/etc/X11/xorg.conf.d/amdgpu.conf

Code:
Section "Device"

Identifier "Card0"

Driver "modesetting"

Option "DRI" "2"

EndSection
What's the advantage of installing
Code:
xorg-minimal
over
Code:
xorg
?
 
What's the advantage of installing
Code:
xorg-minimal
over
Code:
xorg
?

x11/xorg-minimal
only installs the necessary things to run an Xorg session.

x11/xorg installs the full X family (apps like xrandr, a window manager [twm], xcursor themes and fonts etc..)

So if you are going to install an DE like GNOME, KDE or an standalone WM anyway xorg-minimal should be enough because the xorg metaport installs a lot of stuff that nobody needs at the same time.

For instance x11/gnome installs the full GNOME stack ( all gnome-* ) applications while x11/gnome-lite only installs a minimal set to keep a clean overview.
 
… if you are going to install an DE like GNOME, KDE or an standalone WM anyway xorg-minimal should be enough …

It's true that xorg-minimal is mentioned (screenshot below) in the KDE Community Wiki, however that part of the page is oudated (sorry); it's under a rewrite heading that appears to be dated 2019.

My experience with x11/xorg-minimal is that it can be troublesome, at least with Plasma. IMHO it's simpler and quicker to install x11/xorg, than to figure out what's missing (or wrong) after taking a minimalist approach.

1649616453787.png
 
Back
Top