To protect your virtual environment, Druva interacts directly with the Proxmox Virtual Environment (PVE) APIs. This connection gives Druva the necessary access to backup and recover virtual machines.
Supported Authentication Methods
Druva provides backup and restore capabilities using PAM realm users. Configuration supports two levels of access:
Administrator Privilege: Uses a high-level administrative account.
Custom Role: Uses a least-privilege account tailored with the minimum permissions required for backup and restore operations.
To perform backup and restore operations, the configured user must meet these baseline criteria:
Authentication Realm: PAM (Pluggable Authentication Modules)
Required User: PAM Authenticated User or user in the PAM realm (root user / custom user)
Required Role: Administrator / custom role
For more information on how to create a custom role, see Define the custom backup and restore role.
Access Scope: Datacenter level (propagated to all nodes and storage)
Choosing your authentication method
Before configuring Druva, decide whether you want to connect using the default Root account or a Custom non-root user.
Using the root account
You can use the default root user with the built-in Administrator role, or you can create a custom user with Administrator role.
The Administrator role in Proxmox includes complete access to all resources and operations required for backup and restore. The following are the specific areas of the access:
The following are the specific areas of access:
Virtual Machine Management to
create/delete snapshots
create/delete VMs
modify VM configurations (CPU/RAM/Network) for recovery
manage power states (Start/Stop) during restores
Storage and Disk Access to
read/write VM disks
allocate storage volumes for restores
access backup metadata
Datacenter and Cluster Management to
access cluster-wide configurations
view resource inventory,
monitor node status to find VMs regardless of which physical server they are on
Using the custom account
You can create a custom account or can create a custom role having the following permissions.
Define the custom backup and restore role
Next, we create a specific role within Proxmox VE containing the exact granular permissions required for backup operations.
Log into the Proxmox VE Web UI.
Navigate to Datacenter > Permissions > Roles.
Click Create.
In the dialog box, configure:
Name: druva_backup_restore
Privileges: Select the relevant privileges required for data operations (for example, Datastore.Allocate, Datastore.AllocateSpace, Datastore.Audit, VM.Audit etc.)
Click Create.
You must add these roles to perform backup and restore.
Datastore.AllocateDatastore.AllocateSpaceSDN.AllocateSDN.AuditSDN.UseSys.AccessNetworkSys.AuditSys.ModifySys.PowerMgmtSys.SyslogVM.AllocateVM.AuditVM.Config.CPUVM.Config.DiskVM.Config.HWTypeVM.Config.MemoryVM.Config.NetworkVM.Config.OptionsVM.ConsoleVM.GuestAgent.AuditVM.GuestAgent.FileReadVM.GuestAgent.FileSystemMgmtVM.GuestAgent.FileWriteVM.GuestAgent.UnrestrictedVM.PowerMgmtVM.SnapshotVM.Snapshot.Rollback
Create a custom user
Now, register the newly created Linux OS user inside the Proxmox user management interface.
Navigate to Datacenter > Permissions > Users.
Click Add.
Fill out the Add: User modal with the following details:
User name: proxmox_user
Realm: Linux PAM standard authentication (pam)
Expire: <expiry_date>
Enabled: Checked
First Name / Last Name: Optional (e.g., DruvaProxmox Proxmox)
E-Mail: Optional (for example, druva_user@druva.org)
Click Add.
Assign permissions to the user
The final step maps the user to the custom role at the root level so it propagates across the cluster resources.
Navigate to Datacenter > Permissions.
Click the Add dropdown button and select User Permission.
In the Add: User Permission modal, configure:
Path: / (This gives permissions across the entire datacenter root)
User: proxmox_user@pam
Role: druva_backup_restore
Propagate: Checked (Ensures sub-nodes, VMs, and storages inherit this permission)
Click Add.
Add a custom user to the Proxmox node
To create and configure a non-root Linux PAM user (proxmox_user) on the Proxmox host:
Open the Proxmox Node Shell or SSH into your Proxmox host as root.
Run the adduser command to create the user account:
adduser proxmox_userSet a strong password when prompted, confirm it, and fill out (or skip) the user details.
Add the user to the sudo administrative group:
usermod -aG sudo proxmox_userConfigure passwordless sudo access specifically for this user, ensuring that backup automation scripts or agents can run commands without providing a password prompt:
proxmox_user ALL=(ALL) NOPASSWD:ALL
Verification
Under Datacenter > Permissions, you should see an entry showing path / mapping proxmox_user@pam to the druva_backup_restore role with propagation set to
true.The user can only perform backup workflows after
setproxmoxcredcommand execution with the user.






