Kernel Modules won't load after moving VM from NFS (QCOW2) to LVM-Thin (RAW)

Alkor

Member
Sep 18, 2019
3
0
6
62
I have built several Debian Buster VMs, to include the nfs-common package. They worked fine when then were on my NAS (NFS share), ie. could mount NFS shares from another system. When I move the VMs disk to my local LVM-Thin datastore (local to the Proxmox 6 hypervisor), I can no longer mount NFS shares.

After looking into the problem found that the NFS module won't load in the kernel any more. Trying to load the module manually gives the following error:

113.porthos:~ # modprobe nfs
modprobe: ERROR: could not insert 'nfs': Key was rejected by service

Does anyone have any ideas how to fix this?

Thanks in advance.
 
i cannot imagine what the underlying vm storage could possibly have to do with kernel modules (aside from corrupt storage)
 
Agreed, this is very strange. I just created a VM on the LVM-Thin datastore (NFS worked fine there) then moved the disk to the NFS store. No problems, the nfs kernel module would still load. Then I moved the same image back to the LMV-Thin datastore, and sure enough, can't load the nfs kernel module anymore. This was very easy to duplicate.

Also to note, the image format on NFS is qcow2, but on the LVM-Thin it is raw.
 
Last edited:
Just in case someone else runs into this problem, I was able to fix it by booting from an older kernel the doing the following:

apt purge linux-image-4.19.0-6-adm64
apt install linux-image-4.19.0-6-amd64

Then rebooting. This resolved the problem.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!