Hey guys,
I have a few VM's and CT's which share common SMB/CIFS shares.
I have these mapped through a fstab file on the individual VM/CT's but this is a pain if a remote device goes offline for a bit the shares are never re-mounted and manual intervention is required.
So I have a few questions on a better way to handle this.
1. Continue to use fstab but on the proxmox host and create a mountpoint on my VM/CT's to pass this mount through to the guest.
2. Use "pvesm add cifs" methos to add the storage in the proxmox storage browser as from what I have read, this will handle remounting if required.
So which method is the best more efficient way to go here?
I have a few VM's and CT's which share common SMB/CIFS shares.
I have these mapped through a fstab file on the individual VM/CT's but this is a pain if a remote device goes offline for a bit the shares are never re-mounted and manual intervention is required.
So I have a few questions on a better way to handle this.
1. Continue to use fstab but on the proxmox host and create a mountpoint on my VM/CT's to pass this mount through to the guest.
- This is the mount method I have been using on the individual guests:
Code:
//192.168.XX.XX/media /mnt/media cifs noperm,iocharset=utf8,rw,credentials=/root/.storage_credentials,uid=root,gid=root,file_mode=0660,dir_mode=0770 0 0
2. Use "pvesm add cifs" methos to add the storage in the proxmox storage browser as from what I have read, this will handle remounting if required.
- Can the credentials be obscured by specifying a credentials file like you can do in fstab?
- An article that goes over this is here: https://www.thushanfernando.com/notes/proxmox-cifs-setup/