asdeed / proxmox_gk

Third-party Proxmox bash utility to automate deployment of LXC and QEMU/KVM guests, individually or in batches, via Cloud-init.
https://asded.fr
GNU General Public License v3.0
48 stars 1 forks source link

Storage type alternative #1

Open muddayuck-rat opened 1 month ago

muddayuck-rat commented 1 month ago

When creating a KVM the image is automatically a .raw, I want it to be a .qcow2 that way my VMs are snapshot ready. How can this be implemented or defined in the .yaml config? Or does there need to be an additional value in the src configs?

Thanks!

P.S. amazing work on this project btw

asdeed commented 1 month ago

Hi, this is indeed the default format of qemu-import. I think I can implement the choice of destination format in the guest_qm_importimg function. Because currently, it's not possible to specify in the guest configuration. Nevertheless, it's possible to perform snapshots even if the disk image is in .raw, depending on your storage type, https://pve.proxmox.com/wiki/Storage. In any case, thank you for your feedback and your interest in the project. I'll be working on this implementation shortly.