We are testing a couple of proxmox servers in a 2-server test cluster environment. Ultimately, we would like to be able to use proxmox as the back-end system to sell virtual servers through a billing system such as hostbill, which currently has a pretty advanced proxmox module.
The servers are named prox1 and prox2 and are in a cluster with the exact same RAM/storage configuration.
corosync.conf -> pastebin.com/DWL8k0Mk
.members -> pastebin.com/URHFqa5r
storage.conf -> pastebin.com/pnHGRp6p
We created a template which is stored on NFS mounted as prox-templates storage on both prox1 and prox2. The local LVM VG is "vservers" and is identical on both prox1 and prox2. We can clone the template (full clone) with no issues to the vservers storage on prox1. However, if we try to clone it to target node (prox2) and target storage (vservers) the resulting clone is shown as created on prox2 but when we inspect the storage the disk image is created on prox1 so the new VM cannot be started. If we make "vservers" not shared, then it doesn't even show up as target storage when we try the clone so that is not an option.
As a workaround, once a customer purchases a virtual server, we could just have the new VM created on prox1 and then simply migrate it to prox2, which we actually tried and it works as expected. The problem with this workaround, however, is when the customer decides to rebuild the VM with a fresh copy of the OS, he will not be able to accomplish this because the template and his VM are not on the same server.
Is proxmox not suitable for hosting companies, at least not with the process I described above? I don't understand why a template on prox1 cannot be cloned to another server (prox2). Is there something we are missing here?
Having a template on every server (both prox1 and prox2) is not an option because the billing system module only communicates with the master server (prox1) and lists the templates present on that server.
Please help.
Thanks.
JD
The servers are named prox1 and prox2 and are in a cluster with the exact same RAM/storage configuration.
corosync.conf -> pastebin.com/DWL8k0Mk
.members -> pastebin.com/URHFqa5r
storage.conf -> pastebin.com/pnHGRp6p
We created a template which is stored on NFS mounted as prox-templates storage on both prox1 and prox2. The local LVM VG is "vservers" and is identical on both prox1 and prox2. We can clone the template (full clone) with no issues to the vservers storage on prox1. However, if we try to clone it to target node (prox2) and target storage (vservers) the resulting clone is shown as created on prox2 but when we inspect the storage the disk image is created on prox1 so the new VM cannot be started. If we make "vservers" not shared, then it doesn't even show up as target storage when we try the clone so that is not an option.
As a workaround, once a customer purchases a virtual server, we could just have the new VM created on prox1 and then simply migrate it to prox2, which we actually tried and it works as expected. The problem with this workaround, however, is when the customer decides to rebuild the VM with a fresh copy of the OS, he will not be able to accomplish this because the template and his VM are not on the same server.
Is proxmox not suitable for hosting companies, at least not with the process I described above? I don't understand why a template on prox1 cannot be cloned to another server (prox2). Is there something we are missing here?
Having a template on every server (both prox1 and prox2) is not an option because the billing system module only communicates with the master server (prox1) and lists the templates present on that server.
Please help.
Thanks.
JD
Last edited: