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