Template replication

  • Thread starter Thread starter eg1l
  • Start date Start date
E

eg1l

Guest
Hi.

I have created a template on a node that at the time was the only node.
Now I added a second node to the cluster, but the templates only remain on the first node.
The two nodes share a LVM storage over iSCSI. I have tried to move the template disk to a shared NFS storage, but the template remains on the first node.
What can I do to share the template between hosts?
 
I assume you talk about a KVM template. And yes, if you store it on NFS, you can access it from all nodes where you have NFS access.

post your VMID.conf of the template.
 
Hi, yes it is a KVM template. Here is the config:

Code:
balloon: 512
bootdisk: ide0
cores: 1
ide0: nfs_storage:106/vm-106-disk-2.raw,size=20G
ide2: none,media=cdrom
memory: 1024
name: wheezy-20G
net0: e1000=EA:F1:22:7E:98:F6,bridge=vmbr0
ostype: l26
sockets: 1
template: 1
unused0: vm_storage:vm-106-disk-1
 
That disk was on the shared LVM storage, but removing it from the config did not help.
 
you just need to go to the "Folder View" and you will see all templates. As its on NFS, you can deploy it to any server in your cluster.
 
As a template is just a special VM, its always on one node only.
 
Aha, makes sense. It was confusing not to see it on all nodes as a template.
Seems to be working good :)