Mash0Star
Mash0Star
UBUniversal Blue
Created by Mash0Star on 3/13/2025 in #🛟bazzite-help
ujust setup-virtualization kvmfr doesn't work because of missing files in ~/.config/selinux_te/
mash0star@bazzite:~$ ujust setup-virtualization kvmfr This module along with Looking Glass is very experimental and not recommended for production use! The ublue team packages the kvmfr module only because it has to be supplied with the system image while using an atomic desktop. If you do plan to use Looking Glass, please follow the guide here on how to compile it for your system. To use the kvmfr module after enabling it, just add and edit the xml for libvirt from the documentation in the first link. Since we package the kvmfr module please open kvmfr related issues you have on Bazzite in the Bazzite Discord or the Bazzite Github issue tracker. ~ @HikariKnight Setting up kvmfr module so it loads next boot Re-creating dummy kvmfr modprobe file kargs: line 4: warning: here-document at line 1 delimited by end-of-file (wanted `KVMFR_MODPROBE') No changes. Re-creating kvmfr udev rules Adding udev rule for /dev/kvmfr0 Adding /dev/kvmfr0 to qemu cgroup_device_acl Adding SELinux context record for /dev/kvmfr0 File context for /dev/kvmfr0 already defined, modifying instead Adding SELinux access rules for /dev/kvmfr0 Re-creating kvmfr selinux type enforcement rules This is the type enforcement we wrote for SELinux and you can find it in /home/mash0star/.config/selinux_te/kvmfr.te #======= start of kvmfr.te ======= module kvmfr 1.0; require { type device_t; type svirt_t; class chr_file { open read write map }; } #============= svirt_t ============== allow svirt_t device_t:chr_file { open read write map }; #============= virtqemud_t ============== allow virtqemud_t device_t:chr_file { read write }; #======== end of kvmfr.te ======== /home/mash0star/.config/selinux_te/kvmfr.te:13:ERROR 'unknown type virtqemud_t' at token ';' on line 13: allow virtqemud_t device_t:chr_file { read write }; #============= virtqemud_t ============== checkmodule: error(s) encountered while parsing configuration semodule_package: Could not open file /home/mash0star/.config/selinux_te/mod/kvmfr.mod: No such file or directory libsemanage.map_compressed_file: Unable to open /home/mash0star/.config/selinux_te/pp/kvmfr.pp (No such file or directory). libsemanage.semanage_direct_install_file: Unable to read file /home/mash0star/.config/selinux_te/pp/kvmfr.pp (No such file or directory). semodule: Failed on /home/mash0star/.config/selinux_te/pp/kvmfr.pp! Loading kvmfr module so you do not have to reboot to use it the first time Kvmfr0 static size is set to 128mb by default this will work with up to 4K SDR resolutiion, as most dummy plugs go up to 4K some games will try use the adapters max resolution on first boot and cause issues if the value is too low. Most ghost display adapters max out at 4k, hence the default value of 128mb. If you need to change it to a different value you can do that by running "rpm-ostree kargs --replace=kvmfr.static_size_mb=128=newvalue" You can check the current kernel arguments with "rpm-ostree kargs" Please read official documentation for kvmfr for how to use it NOTE: You can start using kvmfr right now without rebooting if you already rebooted after enabling VFIO.
15 replies