//nbkelley /homelab

Proxmox Systemd Mounts

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.cfg to avoid hardcoding passwords in multiple places.
  • Use pvesm status to 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/synology for general file operations.

System-Level Mount Methods#

1. Extract Credentials & Create System Mount#

  1. Check existing Proxmox storage: pvesm status
  2. Extract server/share info from /etc/pve/storage.cfg
  3. Create credentials file:
    nano /root/.smbcredentials
    # Add: username=your_username, password=your_password
    chmod 600 /root/.smbcredentials
  4. 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
  5. Test: mount -a

Create /etc/systemd/system/media-synology.mount: