I did some searches but didn't quite see what I'm looking for.
Right now I use the terraform proxmox provider to provision Fedora CoreOS nodes (among other things.) This all works decently well save the fact that clone is quite slow (when doing multiple at once). This basically (I think) is due to the fact I take the CoreOS qemu img, make a new disk that uses it as a backing disk, then create the template. The template then does a full clone to a VM where the ignition runs and does all the actual install and config. I am cloning to a zvol. So it takes the backing disk (10GB IIRC) and then lays it down to a zvol.
My question- how does cloning work when cloning to a new zvol? Is there someway with what I'm doing to clone a zvol quickly? I'm imagining having a raw file of some sort (or writing the raw file to a zvol), attaching the zvol to a template, then proxmox does some kind of zfs clone to a new zvol which should be near instant? Is this a thing at all or is my qemu clone to zvol the best I can do?
Right now I use the terraform proxmox provider to provision Fedora CoreOS nodes (among other things.) This all works decently well save the fact that clone is quite slow (when doing multiple at once). This basically (I think) is due to the fact I take the CoreOS qemu img, make a new disk that uses it as a backing disk, then create the template. The template then does a full clone to a VM where the ignition runs and does all the actual install and config. I am cloning to a zvol. So it takes the backing disk (10GB IIRC) and then lays it down to a zvol.
My question- how does cloning work when cloning to a new zvol? Is there someway with what I'm doing to clone a zvol quickly? I'm imagining having a raw file of some sort (or writing the raw file to a zvol), attaching the zvol to a template, then proxmox does some kind of zfs clone to a new zvol which should be near instant? Is this a thing at all or is my qemu clone to zvol the best I can do?
Last edited: