How to backup and restore Proxmox Users ?

yena

Renowned Member
Nov 18, 2011
376
4
83
I migrate from a Proxmox 6 cluster to Proxmox 8 cluster.
How can migrate all vm users ?
I have tried coping the /etc/pve/user.cfg
i see all users but passwords doasn't works ..

Thanks!
 
Users that were created in the PVE realm or PAM? PAM realm users are backed by the local linux users via the PAM system. PVE users will most likely have a second file for the password hashes. Check with ls -l for any files starting with a dot, or/and in the /etc/pve/priv directory.
 
Created in the PVE realm..
i can't see files starting with a dot..

/etc/pve

-rw-r----- 1 root www-data 451 Aug 28 13:02 authkey.pub
-rw-r----- 1 root www-data 451 Aug 28 13:02 authkey.pub.old
-r--r----- 1 root www-data 8323 Jan 1 1970 .clusterlog
-rw-r----- 1 root www-data 1318 Aug 28 16:39 corosync.conf
-rw-r----- 1 root www-data 60 Feb 16 2021 datacenter.cfg
-rw-r----- 1 root www-data 2 Jan 1 1970 .debug
drwxr-xr-x 2 root www-data 0 Aug 19 2019 firewall
drwxr-xr-x 2 root www-data 0 May 28 2020 ha
lrwxr-xr-x 1 root www-data 0 Jan 1 1970 local -> nodes/VsProx1B
lrwxr-xr-x 1 root www-data 0 Jan 1 1970 lxc -> nodes/VsProx1B/lxc
-r--r----- 1 root www-data 630 Jan 1 1970 .members
drwxr-xr-x 2 root www-data 0 May 27 2020 nodes
lrwxr-xr-x 1 root www-data 0 Jan 1 1970 openvz -> nodes/VsProx1B/openvz
drwx------ 2 root www-data 0 May 27 2020 priv
-rw-r----- 1 root www-data 2074 May 27 2020 pve-root-ca.pem
-rw-r----- 1 root www-data 1679 May 27 2020 pve-www.key
lrwxr-xr-x 1 root www-data 0 Jan 1 1970 qemu-server -> nodes/VsProx1B/qemu-server
-rw-r----- 1 root www-data 0 May 30 17:02 replication.cfg
-r--r----- 1 root www-data 86631 Jan 1 1970 .rrd
drwxr-xr-x 2 root www-data 0 May 28 2020 sdn
-rw-r----- 1 root www-data 1553 Jan 18 2024 storage.cfg
-rw-r----- 1 root www-data 90735 Aug 28 19:03 user.cfg
-r--r----- 1 root www-data 1251 Jan 1 1970 .version
drwxr-xr-x 2 root www-data 0 May 27 2020 virtual-guest
-r--r----- 1 root www-data 42885 Jan 1 1970 .vmlist
-rw-r----- 1 root www-data 120 May 30 17:02 vzdump.cron
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!