Mount OneDrive as Cloud Storage on Proxmox
If you’re looking for a simple way to mount OneDrive on Proxmox, this step-by-step guide will help you set it up quickly. By connecting Proxmox VE with Microsoft OneDrive, you can expand your storage options and create a convenient cloud backup solution for your virtual machines. Using Rclone, you’ll learn how to authenticate your OneDrive account and mount it directly as a storage folder inside Proxmox. This setup allows you to store ISO files, snapshots, or backups in the cloud effortlessly. The process works perfectly for both home labs and production servers. In addition, integrating cloud storage helps improve data redundancy and accessibility. Follow this tutorial to make your Proxmox environment more flexible, scalable, and secure. Let’s start and see how to mount OneDrive Proxmox in just a few minutes.
Step 1: On proxmox, install rclone & FUSE
SSH into the Proxmox node (login as root) and run:
apt update
apt install -y rclone fuse
Enable allow_other in FUSE (if not already):
grep -q ‘^user_allow_other’ /etc/fuse.conf || echo ‘user_allow_other’ >> /etc/fuse.conf
Step 2: On Windows, create remote OneDrive using rclone config
On Windows, download rclone. In this video I am using version V71.0, you can use the latest version instead.
https://downloads.rclone.org/v1.71.0/
Extract and Open CMD with administrator permission, after run:
C:\Users\Administrator\Desktop\rclone-v1.71.0-windows-amd64\rclone.exe config
client_id> and client_secret> → press Enter (leave blank) unless you want to use a separate client
Microsoft Cloud Global → for most Microsoft 365 / OneDrive personal & business accounts (including the Business Basic plan you use).
tenant: Enter
Redirect to Microsoft authentication link. Login to Microsoft account to authenticate.
Step 3: Copy the conf file to Proxmox
On proxmox create folder
mkdir -p /root/.config/rclone
Find the path containing the rclone file created above
C:\Users\Administrator\Desktop\rclone-v1.71.0-windows-amd64\rclone.exe config file
Copy the file to the rclone folder of Proxmox
Permissions
chmod 600 /root/.config/rclone/rclone.conf
Step 4: Create a mount folder and mount it
Create mountpoint:
mkdir -p /mnt/onedrive-backup
chown root:root /mnt/onedrive-backup
chmod 755 /mnt/onedrive-backup
Test mount (run on foreground to check, Ctrl+C to exit):
rclone mount onedrive-pve:Backup /mnt/onedrive-backup –vfs-cache-mode full –daemon
• onedrive-pve: → remote name.
• Backup → folder name on OneDrive that you created.
• –vfs-cache-mode full → needed for stable mount.
• –daemon → run background mount (does not occupy terminal).
Step 5: Create a systemd service to automatically mount on reboot
#1: Create an executable file
nano /etc/systemd/system/rclone-onedrive.service
Paste the following content, adjust the remote name and mount folder as you like:
[Unit]
Description=Mount OneDrive Backup
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/rclone mount onedrive-pve:Backup /mnt/onedrive-backup –vfs-cache-mode full
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Explanation:
• [Unit]: Defines a service, run after the network is online.
• [Service]:
o ExecStart: rclone mount command.
o Restart=always: if the mount crashes, systemd will restart.
• [Install]: enable service when booting into multi-user mode (regular Proxmox).
________________________________________
#2: Enable and run service
# Reload systemd to get new service
systemctl daemon-reload
# Enable to auto-mount on boot
systemctl enable rclone-onedrive
# Test run now
systemctl start rclone-onedrive
_______________________________________
#3: Test mount
systemctl status rclone-onedrive
ls /mnt/onedrive-backup
_______________________________________
💡 Tips:
• –vfs-cache-mode full is required when mounting OneDrive for stable read/write.
• If you want to mount multiple remotes, create multiple similar service files.
• If you want to temporarily unmount:
fusermount -u /mnt/onedrive-backup
Step 6: Add storage to Proxmox GUI
Go to Datacenter → Storage → Add → Directory
• ID: onedrive (your name)
• Directory: /mnt/onedrive
• Content: select VZDump backup file (if only used to save backup). If you want to save ISO/backup/template, you can tick ISO image / Container template but pay attention to performance.
• Node: select the corresponding node
• Save.
Now when creating Backup Job (Datacenter → Backup), you can select Storage as onedrive.
Proceed to backup 1 VM to onedrive storage