modules: virtualization: Qcow2 should be the default

Snapshots and so much more is only possible with qcow2. A long time ago
it had performance issues, but things seem okay now.
This commit is contained in:
James Shubin
2025-03-28 04:44:56 -04:00
parent c50a578426
commit f6a8404f9f

View File

@@ -68,8 +68,7 @@ class vm($name, $config) {
# TODO: fix secondary auto-indexing with tmp-prefix (let it mutate old machines)
$i = local.pool("libvirt-vm", $name) # the uid will always return the same int
# TODO: qcow2?
$format = $config->format || "raw" # used for file extension and parameter name
$format = $config->format || "qcow2" # used for file extension and parameter name
$index = $config->index || $i
$distro_uid = $config->distro_uid || "fedora41-x86_64"
$sshkey struct{ssh_type str; ssh_key str; ssh_comment str} = $config->sshkey # TODO: unification