Open Cm4nXD opened 1 month ago
I have never used Fedora based distributions, but the QEMU wiki says that these are the dependencies necessary to build it (obviously keep an installation of the QEMU package, so you don't miss any runtime dependencies):
dnf install git glib2-devel libfdt-devel pixman-devel zlib-devel bzip2 ninja-build python3
It also seems like your distro is atomic meaning that most of the (/) directory is read-only to users or could be replaced by an update, so installing qemu to /usr/local/bin (default of make install
) might not work. I would try compiling it using just make
in your home folder and changing the ownership (0:0) and permissions (755) for security reasons. Then I would change the emulator in your Libvirt domain XML to the build dir:
<domain>
<!-- other code -->
<devices>
<emulator>/home/user/path/to/qemu/build/qemu-system-x86_64</emulator>
</devices>
</domain>
So to anyone else who stumbles upon this, I found it easier to spin up a specific distrobox container based on the same version of fedora (non ublue atomic etc) that i used to compile it.
and then I had issues with the default libvirt group having permission to acess my users home directory, and rather then open up the permissions of my directory I simply threw it in a new directory made for this purpose in /home/
that allowed libvirt to execute the binary after i set ownership 0:0 and permissions 755
How would I go about using this patch with something like fedora bazzite?