Skip to content

Instantly share code, notes, and snippets.

@benjaminmateev
Created February 16, 2011 22:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminmateev/830348 to your computer and use it in GitHub Desktop.
Save benjaminmateev/830348 to your computer and use it in GitHub Desktop.
# vim /etc/sysctl.conf
sunrpc.ve_allow_rpc = 1
fs.nfs.ve_allow_nfs = 1
kernel.ve_allow_kthreads = 1
# sysctl -p
# vzctl stop 101
# vzctl set 101 --features "nfs:on" --save
# vzctl start 101
# vzctl enter 101
# mkdir /storage
# mount -t nfs 192.168.0.1:/storage /storage
@pykler
Copy link

pykler commented May 6, 2014

Are these sysctl settings still needed in current openvz kernels? also the sysctl is supposed to be run inside the container correct (not the host node)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment