Share templates across cluster nodes

tycoonbob

Member
Aug 25, 2014
67
0
6
I'm still fairly new to Proxmox. I set up a 2 node cluster with a NFS share being used for VM storage, and as an ISO store. I am not using local storage for any VMs, iso's, etc.

So the first thing I built in my cluster is 4 templates (CentOS 6.5, CentOS 7, Windows 8.1, and Server 2012R2). I built 4 VM's, made customizations, syspreped (if applicable), powered down, and right click > Convert to Template. Now I can easily clone these and create new VM's, but it seems that these "templates" are showing up under hv02 (my nodes are hv02, and hv03), so I fear that if hv01 fails, I won't be able to see, or deploy my templates. The disk of these templates are indeed stored on this nfs share, so what gives? Is this not the correct way to make kvm templates? If hv02 goes down, will hv03 still seem them and be able to clone them?

DS3RMJO.png

Thanks!
 


if hv02 go down , you need to move template config file manually to a working node

on hv03:
#mv /etc/pve/nodes/hv02/qemu-server /<templateid>.conf /etc/pve/qemu-server/


I see. So in the case of templates, why is it set to store these files on local storage instead of on shared storage? I'm having trouble understanding why this is designed this way.
 
You can create a template on first node and put hdd disk in a ZDF storage, then replication the VM across all nodes. in this case you need to create a ZDF storage for all nodes, so hdd of VM is accessed by all nodes except template configuration.
Now, create a copy for *.conf files in all nodes by incremented number. like:
Code:
cp /etc/pve/nodes/NODE1/qemu-server/150.conf /etc/pve/nodes/NODE2/qemu-server/151.conf
 
Last edited:
I see. So in the case of templates, why is it set to store these files on local storage instead of on shared storage? I'm having trouble understanding why this is designed this way.

Maybe your shared storage does not have "container template" as one of the things that can be stored on it (local storage does by default I think). Look in Datacenter>Storage>Your NFS Volume>Edit. Under the content pulldown you can select what can be stored there.