Skip to contentSkip to conversation

NFS Kernel server inside a container

DISCUSSION Martin Fick 2 participants 2 messages May 18, 2010 – May 29, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Michael Tokarev
Quoted 1 line · Martin Fick

FATAL: Could not load

/lib/modules/2.6.32-trunk-vserver-686/modules.dep: No such file or directory

Obviously you have to have necessary modules in the container in order to _load_ them. But it is simpler to pre-load all required modules from the host system instead.

Right, I actually ran the kernel server on the host too, just to make sure the modules were loaded.

Quoted 11 lines

Actually it does not work even after solving module issue. I asked about this very issue at the end of last year (I think), but no one answered. It looks like knfsd threads are working in "global" (i.e host) namespace, not in the container namespace, or the said namespace isn't being set up correctly in the kernel. In any way, nfs service needs to be "containerized" properly before being useful inside a container, which is not done currently, it seems.

Is anyone working on this? It certainly would be a very useful feature. :) If it is only a matter of setting up the container appropriately, any ideas how to do that? Thanks,

-Martin

A message that is not in the archive (sent off-list or not yet received): 187493.1732.qm-4AwnY8zbAf+vuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org

#2 lore raw
Quoted 26 lines · Martin Fick
Quoted 9 lines · Michael Tokarev
Quoted 1 line · Martin Fick

FATAL: Could not load

/lib/modules/2.6.32-trunk-vserver-686/modules.dep: No such file or directory

Obviously you have to have necessary modules in the container in order to _load_ them. But it is simpler to pre-load all required modules from the host system instead.

Right, I actually ran the kernel server on the host too, just to make sure the modules were loaded.

Quoted 11 lines

Actually it does not work even after solving module issue. I asked about this very issue at the end of last year (I think), but no one answered. It looks like knfsd threads are working in "global" (i.e host) namespace, not in the container namespace, or the said namespace isn't being set up correctly in the kernel. In any way, nfs service needs to be "containerized" properly before being useful inside a container, which is not done currently, it seems.

Quoted 5 lines

Is anyone working on this? It certainly would be a very useful feature. :) If it is only a matter of setting up the container appropriately, any ideas how to do that? Thanks,

I remember doing some work a while ago and to ensure it fails properly. Getting knfsd updated to work in a network namespace should be possible, but there are a lot of interactions, and isn't immediately clear how the struct net would be passed to the functions that need it.

In short it looked doable, but I don't have any immediate plans to make it happen but I would like to see it happen.

Eric