Editing NFS server inside container
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
There are two ways to setup NFS server on common [[HN]]: | There are two ways to setup NFS server on common [[HN]]: | ||
use a user-space NFS server daemon or use an in-kernel implementation | use a user-space NFS server daemon or use an in-kernel implementation | ||
− | of NFS server. | + | of NFS server. Some peculiarities appear if you intend to run NFS server |
+ | in [[container]]. | ||
{{Note|for information about NFS client inside container, see [[NFS]].}} | {{Note|for information about NFS client inside container, see [[NFS]].}} | ||
== Kernel NFS server == | == Kernel NFS server == | ||
− | + | Binary RPMs that are provided by OpenVZ community contain kernels compiled | |
− | + | without NFS server support. Thus you have to | |
− | + | [[Kernel build|recompile the kernel]] with <code>CONFIG_NFSD=m</code>. After booting in this kernel you'll be able | |
− | + | to use NFS server on [[HN]]. | |
− | + | In-kernel NFS server runs kernel threads to service requests of clients. | |
− | + | But for security reasons kernel threads are prohibited in [[container]]s! So you won't | |
− | + | be able to run NFS server inside [[container]] without patching the kernel. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== User-space NFS server == | == User-space NFS server == | ||
Line 105: | Line 44: | ||
The current stable debian version 5.0 (lenny) provides two packages for user space nfs support: <code>nfs-user-server</code> and <code>unfs3</code>. Here i describe my experiences with them --[[User:Strimo|Strimo]] 17:47, 16 February 2009 (UTC) | The current stable debian version 5.0 (lenny) provides two packages for user space nfs support: <code>nfs-user-server</code> and <code>unfs3</code>. Here i describe my experiences with them --[[User:Strimo|Strimo]] 17:47, 16 February 2009 (UTC) | ||
− | |||
− | |||
==== nfs-user-server ==== | ==== nfs-user-server ==== | ||
− | |||
− | |||
<pre> | <pre> | ||
− | aptitude install | + | aptitude install unfs3 |
</pre> | </pre> | ||
Line 135: | Line 70: | ||
Works fine until now. Note that both unfs3 and nfs-user-server do not support file locking! | Works fine until now. Note that both unfs3 and nfs-user-server do not support file locking! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== External links == | == External links == |