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

CachyOS kernel not executing kernell-install configs in /etc/kernell/install.d #25

Open
Anifyuli opened this issue Jan 23, 2025 · 9 comments

Comments

@Anifyuli
Copy link

Hello anyone.
I want to report my problems with CachyOS kernel in my system from 1st time using it. I have auto install kernel module update for VMWare Workstation for install kernel module after installing new CachyOS kernel version like this :

anifyuli@ThinkPad-X280:~$ cat /etc/kernel/install.d/00-vmwaremod.install 
#!/usr/bin/bash

export LANG=C

COMMAND="$1"
KERNEL_VERSION="$2"
BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"

ret=0

case "$COMMAND" in
    add)
       VMWARE_VERSION=$(cat /etc/vmware/config | grep player.product.version | sed '/.*\"\(.*\)\".*/ s//\1/g')

       [ -z VMWARE_VERSION ] && exit 0

       [[ -x /usr/bin/vmware-modconfig ]] && /usr/bin/vmware-modconfig --console --install-all &>> /tmp/vmwaremod-install.log
       grub2-mkconfig -o /boot/grub2/grub.cfg

       ((ret+=$?))
       ;;
    remove)
        exit 0
        ;;
    *)
        usage
        ret=1;;
esac

exit $ret

I checked my installed modules with lsmod, but VMWare kernel module still not appear.

t
anifyuli@ThinkPad-X280:~$ lsmod | grep vm
vmw_vsock_vmci_transport    45056  0
vsock                  65536  1 vmw_vsock_vmci_transport
vmw_vmci              122880  1 vmw_vsock_vmci_transport
iwlmvm                827392  0
mac80211             1708032  1 iwlmvm
kvm_intel             446464  0
kvm                  1478656  1 kvm_intel
videobuf2_vmalloc      20480  1 uvcvideo
iwlwifi               630784  1 iwlmvm
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_common       98304  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
cfg80211             1429504  3 iwlmvm,iwlwifi,mac80211
ptp                    45056  2 iwlmvm,e1000e
rfkill                 40960  11 iwlmvm,bluetooth,thinkpad_acpi,cfg80211

This script can run perfectly on Fedora stock kernel. How to fix it? Or can it fixed in soon updates? Thanks for dedication with this projects. Honorable mention to @1Naim, @andersrh, @TrixieUA as repo maintainers

@1Naim
Copy link
Member

1Naim commented Jan 23, 2025

Hi Anif, are there any indications that the kernel modules aren't being built elsewhere? such as from logs or so. Have you tried sudo modprobe -a vmw_vmci vmmon?

If the above doesn't work, please provide the package you are using for VMware so I can troubleshoot the issue, thanks.

@joy4eg
Copy link

joy4eg commented Jan 23, 2025

Fedora 41, I have the install script as well, and it works fine for me.

@Anifyuli
Copy link
Author

Anifyuli commented Jan 24, 2025

sudo modprobe -a vmw_vmci vmmon

It not builded because it not found on module kernel dir. You can see here @1Naim

Image

I haven't idea how to checking it logs, because in Fedora stock kernel it can works properly and error on journalctl not found.

If the above doesn't work, please provide the package you are using for VMware so I can troubleshoot the issue, thanks.

I using official .bundle installer from VMWare websites. If you want grab it, you need to register Broadcomm credentials and download it.

@Anifyuli
Copy link
Author

install script

@joy4eg, I use GRUB2 on Fedora. How to figuring it out?

@1Naim
Copy link
Member

1Naim commented Jan 24, 2025

sudo modprobe -a vmw_vmci vmmon

It not builded because it not found on module kernel dir. You can see here @1Naim

Image

I haven't idea how to checking it logs, because in Fedora stock kernel it can works properly and error on journalctl not found.

If the above doesn't work, please provide the package you are using for VMware so I can troubleshoot the issue, thanks.

I using official .bundle installer from VMWare websites. If you want grab it, you need to register Broadcomm credentials and download it.

Does /tmp/vmwaremod-install.log exist? If it does that can be a good starting point.

@Anifyuli
Copy link
Author

/tmp/vmwaremod-install.log

Sorry, is not found. This afternoon I get kernel updates for stock kernel, but I still can't get vmmon and vmnet kernel module in here too. That file not found too.

Image

Actually, I follow this tutorial to automate kernel module build on next kernel updates, especially for VMWare module kernel with some modification (because I follow other guide). So any idea how proper automate module kernel builds after kernel updates? It can be systemd service but it makes booting more longer on latest kernel for 1st time and not efficient et all.

@1Naim
Copy link
Member

1Naim commented Jan 24, 2025

So I see that you're using the binary from VMware directly to build the module. Please try installing the LTS kernel and see if it builds the modules for you. If it does, then VMware needs updating/patching to work in 6.13 kernel.

@Anifyuli
Copy link
Author

I'll try LTS kernel. But how to remove it? I am worrying about the deletion dependencies of the CachyOS kernel. Conclusion is no way to setup automatic VMware kernel module build without waiting for repatch from upstream?

@1Naim
Copy link
Member

1Naim commented Jan 25, 2025

I'll try LTS kernel. But how to remove it?

Install:

sudo dnf install kernel-cachyos-lts kernel-cachyos-lts-devel

Remove:

sudo dnf remove kernel-cachyos-lts{,-core,-modules,-devel}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants