Storage: CIFS

From Proxmox VE
Jump to: navigation, search

Storage pool type: cifs

The CIFS backend extends the directory backend, so that no manual setup of a CIFS mount is needed. Such a storage can be added directly through the Proxmox VE API or the WebUI, with all our backend advantages, like server heartbeat check or comfortable selection of exported shares.


The backend supports all common storage properties, except the shared flag, which is always set. Additionally, the following CIFS special properties are available:


Server IP or DNS name. Required.

Tip To avoid DNS lookup delays, it is usually preferable to use an IP address instead of a DNS name - unless you have a very reliable DNS server, or list the server in the local /etc/hosts file.

CIFS share to use (get available ones with pvesm cifsscan or the WebUI). Required.


The username for the CIFS storage. Optional, defaults to ‘guest’.


The user password. Optional. It will be saved in a file only readable by root (/etc/pve/priv/<STORAGE_ID>.cred).


Sets the user domain (workgroup) for this storage. Optional.


SMB protocol Version. Optional, default is 3. SMB1 is not supported due to security issues.


The local mount point. Optional, defaults to /mnt/pve/<STORAGE_ID>/.

Configuration Example (/etc/pve/storage.cfg)
cifs: backup
        path /mnt/pve/backup
        share VMData
        content backup
        username anna
        smbversion 3

Storage Features

CIFS does not support snapshots on a storage level. But you may use qcow2 backing files if you still want to have snapshots and cloning features available.

Table 1. Storage features for backend cifs
Content types Image formats Shared Snapshots Clones

images rootdir vztmpl iso backup snippets

raw qcow2 vmdk





You can get a list of exported CIFS shares with:

# pvesm cifsscan <server> [--username <username>] [--password]

Then you could add this share as a storage to the whole Proxmox VE cluster with:

# pvesm add cifs <storagename> --server <server> --share <share> [--username <username>] [--password]

See Also