Create a Fedora CoreOS VM from an xz compressed cloud image #1212
-
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: 2 comments 2 replies
-
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.
-
Howdy! Sorry to revive a dead thread but I wanted to chime in with my experience getting this working, namely that Proxmox's ZST decompression is capable of decompressing XZ archives. I have not found documentation on this anywhere, but have gotten this working successfully for the exact use case described here. Here is a complete, minimal working example (with bonus logic to pull the latest CoreOS image):
|
Beta Was this translation helpful? Give feedback.
Howdy! Sorry to revive a dead thread but I wanted to chime in with my experience getting this working, namely that Proxmox's ZST decompression is capable of decompressing XZ archives. I have not found documentation on this anywhere, but have gotten this working successfully for the exact use case described here. Here is a complete, minimal working example (with bonus logic to pull the latest CoreOS image):