I have a debian 9 host, linux version4.19-ovh-xxxx-std-ipv6-64.

I wanted to enable zram on this host, but I got an error:

modinfo: ERROR: Module zram not found.
Feb 8 08:42:23 ks1 zram[27122]: modprobe: FATAL: Module zram not found in directory /lib/modules/4.19-ovh-xxxx-std-ipv6-64

There is no kernel module in the system.
I checked the directory/lib/modules/4.19-ovh-xxxx-std-ipv6-64/kernel, but it's completely empty. Although on my other hosts there are a bunch of modules.

I borrowed a module from another hostzram.ko. Dropped it along the way/lib/modules/4.19-ovh-xxxx-std-ipv6-64/kernel/drivers/block/zram/zram.ko. Added module namezramv/etc/modules. But the module did not work, I got an error:

Feb 8 09:30:03 ks1 zram[3841]: modprobe: ERROR: could not insert 'zram': Exec format error
Feb 8 09:30:03 ks1 kernel: zram: disagrees about version of symbol module_layout

How do I install the modulezram?

Judging by repology.org/project/zram-tools/versions -you need to apatsya.

don Rumata2022-02-13 12:54:12