unable to mount with cifs or nfs inside a openvz guest os.

teleadmin

Renowned Member
May 31, 2008
12
0
66
The question is inside the title but i must say that solution must be to compil kernel for add nfs and cifs but i as i get trouble each time i try compil proxmox kernel ....
so help ... lol
 
The question is inside the title but i must say that solution must be to compil kernel for add nfs and cifs but i as i get trouble each time i try compil proxmox kernel ....
so help ... lol

why do you need to compile a new Kernel?

did you follow this?:
http://wiki.openvz.org/NFS
 
NFS has worked for me in the past, though I'm not using it with the newest version of PVE. It did have a problem where you couldn't shutdown a container after you mounted an nfs share, but I believe that has been solved (according to openvz mailing list).
 
i must make some maintenance works , but tonight i will test the nfs wiki (thanks for the link) and i will report you the result.
question is always valid for cifs.

Why i want compil ? . openvz guest doesnt support the kernel module of the host and i think that if we compil samba cifs in hard inside the kernel (not as module) , the guest openvz guest will get this ability since he share the same kernel with the host.
But since i see on the wiki that there is a kind of solution directly inside the vzctl utils ... it's sugest me that maybe some other consideration about the openvz filesystem can invalid the "easy" kernel customisation i was planning.
any comment ?

best regards,

romain
 
sometimes it is also good to use bind mounts:

http://wiki.openvz.org/Bind_mounts

you can make such mounts persistent by creating a config file called:

/ect/vz/conf/${CTID}.mount

Code:
#!/bin/bash
/bin/mount -n --bind /a/directory /var/lib/vz/root/${VEID}/mnt
exit $?