Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KVMF not loading #2039

Open
Tony763 opened this issue Jan 1, 2025 · 2 comments
Open

KVMF not loading #2039

Tony763 opened this issue Jan 1, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Tony763
Copy link

Tony763 commented Jan 1, 2025

Describe the bug

Enabling KVMFR trough ujust setup-virtualization ends with error

What did you expect to happen?

KVMFR module loaded.

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://10.0.1.1:5005/bazzite/bazzite-gnome-asus-nvidia-open:latest
                   Digest: sha256:e23a5d67d44f8b091dca13ed4ebe19865c31557043c4b143cf6aa61755f5f369
                  Version: 41.20241216 (2024-12-16T05:01:59Z)
          LayeredPackages: edk2-ovmf libvirt qemu virt-manager
                Initramfs: regenerate

  ostree-image-signed:docker://10.0.1.1:5005/bazzite/bazzite-gnome-asus-nvidia-open:latest
                   Digest: sha256:e23a5d67d44f8b091dca13ed4ebe19865c31557043c4b143cf6aa61755f5f369
                  Version: 41.20241216 (2024-12-16T05:01:59Z)
          LayeredPackages: edk2-ovmf libvirt qemu virt-manager
                Initramfs: regenerate

Hardware

ROG Strix G834JY_G834JY

Extra information or context

$ ujust setup-virtualization
Virtualization Setup
NOTE: Enabling Virtualization will layer virt-manager and qemu
      this will slow down system updates by a lot.
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
[sudo] heslo pro askala: 
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
This is the type enforcement we wrote for SELinux and you can find it in /home/askala/.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 };
#======== end of kvmfr.te ========
Loading kvmfr module so you do not have to reboot to use it the first time
chown: cannot access'/dev/kvmfr0': Directory or file does not exist

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 in /etc/modprobe.d/kvmfr.conf
Please read official documentation for kvmfr for how to use it

Press OK to start the process of regenerating your initramfs, this will take a long time
and there is no good way to track progress for it, if anything is wrong it will error out.
NOTE: You can start using kvmfr right now without rebooting, but you will need to regenerate initramfs for it to auto load next boot.
error: initramfs regeneration state is already enabled
error: Recipe `setup-virtualization` failed with exit code 1

Manually loading kvmfr with modprobe won't load it either.
No related error in dmesg.

@dosubot dosubot bot added the bug Something isn't working label Jan 1, 2025
@KyleGospo
Copy link
Member

@HikariKnight

@HikariKnight
Copy link
Member

@Tony763 make sure iommu/intel VT-d/Amd-V/virtualization related options are enabled in bios

also we have changed how we configure the kvmfr just the other day, i would recommend updating, re-running the ujust and then do rpm-ostree initramfs --disable and see if it will load then

also need to see your
sudo dmesg | grep kvmfr
rpm-ostree kargs
and if you have not updated yet then i need to see cat /etc/modprobe.d/kvmfr.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants