[SOLVED] Problem creating storage via cli (pvesm add cifs) since pve 6.1-8

indi

Renowned Member
Jun 9, 2016
13
1
68
St.Petersburg
I tried to configure Proxmox to mount the CIFS share for ISO images and backups.
For example, the repository is: bckp, the server: 192.168.1.100, user: backuper

I use the cli:
Code:
/usr/sbin/pvesm add cifs bckp --path /mnt/pve/bckp --server 192.168.1.100 --share bckp --maxfiles 365 --content iso,vztmpl,backup --username backuper
Before that I create /etc/pve/priv/bckp.cred with 0600 permission and root:www-data owner. File consist password=xxxxxxxxx.

Up to pve version 6.1-7 everything is successful, but starting with version 6.1-8, the storage is not mounted with error:
create storage failed: error during cfs-locked 'file-storage_cfg' operation: tree connect failed: NT_STATUS_ACCESS_DENIED

Through the WebUI, everything is still fine. I tried to organize cifs shared on linux servers (samba) and on mswindows. Unfortunately, now there is an opportunity only manually through the WebUI.
Latest servers already have version 6.2-4, but the problem is still unresolved.
 
Last edited:
hi,

try putting the credential file instead here: /etc/pve/priv/storage/bckp.pw with the contents as you described (password=xxxxxxxx)
 
Thanks!
Problem is solved!
I need to create two files:
/etc/pve/priv/bckp.cred
/etc/pve/priv/storage/bckp.pw
and after pvesm add cifs worked.
 
  • Like
Reactions: oguz