[Solved] KVMFR module doesnt load correctly on boot

kvmfr module doesnt appear to be loaded correctly on boot contents of /etc/dracut.conf.d/kvmfr.conf
install_items+=" /etc/modprobe.d/kvmfr.conf "
install_items+=" /etc/modprobe.d/kvmfr.conf "
contents of /etc/modprobe.d/kvmfr.conf
options kvmfr static_size_mb=64
options kvmfr static_size_mb=64
ive been able to verify that the kvmfr module is loaded on boot, as lsmod reports
Module Size Used by
kvmfr 24576 6
Module Size Used by
kvmfr 24576 6
however /dev/kvmfr0 is not present on boot, when unloading the module and doing sudo modprobe kvmfr static_size_mb=64 its loaded and usable with looking glass.
34 Replies
riley
rileyOPā€¢7mo ago
@HikariKnight
HikariKnight
HikariKnightā€¢7mo ago
can you reboot and give me sudo dmesg | grep kvmfr should show
[ 5.342899] kvmfr: creating 1 static devices
[ 5.360076] kvmfr: kvmfr_module_init: module loaded
[ 5.342899] kvmfr: creating 1 static devices
[ 5.360076] kvmfr: kvmfr_module_init: module loaded
there is also a complaint about SELinux but the type enforcement we have fixes that as it loads later and systemd is trying to revert our settings for kvmfr
riley
rileyOPā€¢7mo ago
[ 2.254877] kvmfr: creating 0 static devices
[ 2.254904] kvmfr: kvmfr_module_init: module loaded
[ 2.254877] kvmfr: creating 0 static devices
[ 2.254904] kvmfr: kvmfr_module_init: module loaded
HikariKnight
HikariKnightā€¢7mo ago
hmm so the module should be loaded šŸ¤” ls -la /dev | grep kvm
riley
rileyOPā€¢7mo ago
interesting to note yours says creating 1 static devices mine says 0
HikariKnight
HikariKnightā€¢7mo ago
oh wait yeah hmm does your /etc/dracut.conf.d/kvmfr.conf start with that empty space or is that you accidentally adding it in the message?
riley
rileyOPā€¢7mo ago
thats how it starts apparently
HikariKnight
HikariKnightā€¢7mo ago
try remove the empty space at the beginning then do rpm-ostree initramfs --enable and wait for that to finish
riley
rileyOPā€¢7mo ago
enable what it gives me a no command specified
HikariKnight
HikariKnightā€¢7mo ago
sorry there
riley
rileyOPā€¢7mo ago
ah right its already enabled, do i just reboot
HikariKnight
HikariKnightā€¢7mo ago
because your dracut conf file is
install_items+=" /etc/modprobe.d/kvmfr.conf "
install_items+=" /etc/modprobe.d/kvmfr.conf "
but should be
install_items+=" /etc/modprobe.d/kvmfr.conf "
install_items+=" /etc/modprobe.d/kvmfr.conf "
if what you told me is correct
riley
rileyOPā€¢7mo ago
yes, ive removed the empty space now
HikariKnight
HikariKnightā€¢7mo ago
ok try reboot and check dmesg again
riley
rileyOPā€¢7mo ago
[ 2.140729] kvmfr: creating 0 static devices
[ 2.140763] kvmfr: kvmfr_module_init: module loaded
[ 2.140729] kvmfr: creating 0 static devices
[ 2.140763] kvmfr: kvmfr_module_init: module loaded
still says 0 still no /dev/kvmfr0 present
HikariKnight
HikariKnightā€¢7mo ago
that is so weird
riley
rileyOPā€¢7mo ago
ive basically followed what the ujust command did, but ran manually since the ujust commands seem to not run correctly
HikariKnight
HikariKnightā€¢7mo ago
hmm runs fine for me what error do you get with the ujust?
riley
rileyOPā€¢7mo ago
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
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
it errors after asking to regenerate initramfs but im not sure if its supposed to do anything after that
HikariKnight
HikariKnightā€¢7mo ago
oh thats fine, that just the rpm-ostree sending exit 1 because initramfs is already enabled and ujust reads that as an error with the script even if it is not try reboot without changing the modprobe conf see if it generates it then
riley
rileyOPā€¢7mo ago
will do
HikariKnight
HikariKnightā€¢7mo ago
essentially leave it at 128
riley
rileyOPā€¢7mo ago
Okay, doing that now
HikariKnight
HikariKnightā€¢7mo ago
that should just work since i just used it myself
riley
rileyOPā€¢7mo ago
I'll be damned it did
HikariKnight
HikariKnightā€¢7mo ago
most likely an invisible character then from when you ran it manually
riley
rileyOPā€¢7mo ago
I must've messed something up myself then Likely
HikariKnight
HikariKnightā€¢7mo ago
you can try change the size to 64 if you want, only reason we put it to 128 is because 4k will work with it and looking-glass wont crash if you use a dummy plug that supports it if a game goes like "oh you use 1080p but your display supports 4k, you want it in 4k right?!"
riley
rileyOPā€¢7mo ago
yeah i dont use a dummy plug, i just have the gpu plugged into the back of my monitor
HikariKnight
HikariKnightā€¢7mo ago
yeah so it will be a non issue for you i recommend changing the static size to whats best for your resolution then šŸ™‚
riley
rileyOPā€¢7mo ago
i'll mark this as fixed now solved whatever you call it
HikariKnight
HikariKnightā€¢7mo ago
i marked it
riley
rileyOPā€¢7mo ago
ah im a stoop
HikariKnight
HikariKnightā€¢7mo ago
answeroverflow is great, it lets us index #bazzite-help to search engines
Want results from more Discord servers?
Add your server