Ty tom for the answer, but i just managed to get a diferent solution that works for me, i think ...
I write down my solution:
TO USE PERSISTENT NFS SHARE ON VE.
1.- install nfs-common on both host and guest
2.- modify CT to accept NFS. ex.
Code:
vzctl set 101 --features "nfs:on" --save
3.- restart CT.
4.- create a script that invoques the mount and umount, like this:
store.sh
Code:
#! /bin/sh
### BEGIN INIT INFO
### END INIT INFO
. /lib/init/vars.sh
. /lib/lsb/init-functions
case "$1" in
start)
mount -t nfs 10.4.3.87:/home/shares /home/nfs
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
/etc/init.d/nfs-common restart
umount /home/nfs
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
and save it in /etc/init.d/
modify to make it executable
5 .- and at last, fill the runlevels to load/unload the script, something like this :
Code:
update-rc.d store.sh defaults 95 95
Thank you all guys to make me to meet this solution, if you see something wrong, please told me.