-
I'm currently using this provider (great work btw!) to set up a homelab k3s cluster. My nodes are running Fedora CoreOS and I'd like to bootstrap the VMs from the official qcow2 image. I followed the Create a VM from a Cloud Image but unfortunately Proxmox does not seem to like the fact that CoreOS images are only available with xz compression (https://fedoraproject.org/coreos/download?stream=stable&arch=x86_64#baremetal), so this fails: resource "proxmox_virtual_environment_download_file" "coreos_qcow2" {
content_type = "iso"
datastore_id = "local"
node_name = "pve"
url = "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/39.20240322.3.1/x86_64/fedora-coreos-39.20240322.3.1-qemu.x86_64.qcow2.xz"
}
I'm pretty sure this is a Proxmox limitation but maybe I am just missing something and someone has a better approach. My best idea so far is to create some local-exec magic that invokes coreos-downloader to create the uncompressed qcow2 locally, which is then used in a proxmox_virtual_environment_file, but that appears to be more a hack than a workaround. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @webD97 👋🏼 I don't think Proxmox can use xz-compressed qcow2 disk images for VMs. Your idea about the local-exec approach is probably the best we can do to automate this atm. |
Beta Was this translation helpful? Give feedback.
Hi @webD97 👋🏼
I don't think Proxmox can use xz-compressed qcow2 disk images for VMs. Your idea about the local-exec approach is probably the best we can do to automate this atm.