...

You already loaded the module on the host?

# modprobe cifs

(add it to /etc/modules if you want to load it at boot time).
 
So if I run
Code:
modprobe cifs
I get no output, just another prompt line.

I then added cifs to my /etc/modules file, so it looks like this:

Code:
# /etc/modules: kernel modules to load at boot time.
# 
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line.  Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
cifs

I restarted the ProxMox host, tried mounting the share using the mount command & also fstab.

Code:
 mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

The error returned is "mount: unknown filesystem type 'cifs'.

Any ideas?
Hi,
I assume the mount was tried on the pve-host?
What is the output of
Code:
lsmod | grep cifs

Udo
 
Last time I checked (a few months ago) it was still not possible to mount an SMB/CIFS share inside a CT. I doubt it has changed, but possible. I concluded that accessing shares from OVZ CTs are a no go. smbclient works though, probably because it's just another app using TCP connections.
 
All FUSE solutions and also NFS should work. Either those or a bind mount with a VEID.mount script is still working and available (this latter is the recommended by the OVZ devs). When I need to access something mounted temporarily or a remote FS with no high performance requirements I usually just use SSHFS.
 
You need to use bind mounts. Please see: http://wiki.openvz.org/Bind_mounts

EDIT: OK, it seems you did it just like that. Please make sure the .mount script is executable by root. Here's a working example from one of my setups:

Code:
#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}

mount -n --bind /mnt/some/share ${VE_ROOT}/mnt/share
 
Last edited: