Cloning Proxmox, best practice

luphi

Renowned Member
Nov 9, 2015
82
5
73
Hey all,

possibly I have to deploy a few new Proxmox clusters. Too many to install them all manually ;-)
There are many tools out there, doing their job very well: dd, clonezilla...

Just wondering, which parts I have to change on each clone afterwards to make them individual.

The following files I have in mind:

/etc/ssh/ssh_host_*
/etc/pve/nodes/<hostname>
/etc/hostname
/etc/hosts
/etc/issue
/etc/network/interfaces

This is so far all clear to me.

But I found some keys/file in /etc/pve/priv/, which I have no clue how to handle them.

/etc/pve/priv/authkey.key
/etc/pve/priv/pve-root-ca.key
/etc/pve/priv/pve-root-ca.srl

Is there a way to recreate them?

Is there anything else, I need to take care of?

Or is there even a better way to deploy multiple servers?

Cheers,
Martin
 
possibly I have to deploy a few new Proxmox clusters. Too many to install them all manually ;-)
There are many tools out there, doing their job very well: dd, clonezilla...

Just wondering, which parts I have to change on each clone afterwards to make them individual.

The following files I have in mind:

/etc/ssh/ssh_host_*
/etc/pve/nodes/<hostname>
/etc/hostname
/etc/hosts
/etc/issue
/etc/network/interfaces

This is so far all clear to me.

But I found some keys/file in /etc/pve/priv/, which I have no clue how to handle them.

/etc/pve/priv/authkey.key
/etc/pve/priv/pve-root-ca.key
/etc/pve/priv/pve-root-ca.srl

Is there a way to recreate them?
run
Code:
pvecm updatecerts -f

see also https://pve.proxmox.com/wiki/HTTPS_..._5.0_and_5.1)#Revert_to_default_configuration


Is there anything else, I need to take care of?
If you use iscsi change also /etc/iscsi/initiatorname



Or is there even a better way to deploy multiple servers?


The result is not perfect since uuids (disks, lvm) will be identical in all clones. Maybe there are some other unique IDs.

However, in most cases they will not matter.
 

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!