Proxmox Systemd Mounts#
What Was Established#
- SMB/CIFS shares can be integrated into Proxmox via CLI or the Web GUI.
- GUI integration is recommended for Proxmox-native features (backups, ISOs, templates) and automatic retention management.
- System-level mounts (e.g., at
/media/synology) are distinct from Proxmox Storage and are used for general file operations accessible by the host OS. - Proxmox automatically mounts SMB shares under
/mnt/pve/<storage_id>when configured via the GUI.
Key Decisions#
- Maintain both a Proxmox Storage entry (for VM disks/backups) and a system-level mount (for general file access).
- Extract credentials from
/etc/pve/storage.cfgto avoid hardcoding passwords in multiple places. - Use
pvesm statusto verify existing storage mounts and avoid conflicts.
Current Configuration#
- Synology NAS (LonelyMountain):
192.168.1.137 - Proxmox Storage: Configured via Datacenter > Storage (SMB/CIFS) for VM-related content.
- System Mount: Targeted at
/media/synologyfor general file operations.
System-Level Mount Methods#
1. Extract Credentials & Create System Mount#
- Check existing Proxmox storage:
pvesm status - Extract server/share info from
/etc/pve/storage.cfg - Create credentials file:
nano /root/.smbcredentials # Add: username=your_username, password=your_password chmod 600 /root/.smbcredentials - Add to
/etc/fstab://192.168.1.137/share_name /media/synology cifs credentials=/root/.smbcredentials,uid=0,gid=0,file_mode=0660,dir_mode=0770,iocharset=utf8 0 0 - Test:
mount -a
2. Systemd Mount Unit (Recommended for robustness)#
Create /etc/systemd/system/media-synology.mount: