tofu(proxmox): download base image as import content-type for disk import_from
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
a2392a4a43
commit
fca8d8f800
2 files changed
+10
-7
No files matched your search
+6
-3
@@ -35,10 +35,13 @@ locals {
|
||||
}
|
||||
|
||||
# --- base OS cloud image (downloaded once to `local`, imported per node) -----
|
||||
# content_type "iso" stores it on the ISO datastore; the .img file name lets
|
||||
# Proxmox accept the qcow2 (it still reads it as qcow2 on disk import).
|
||||
# content_type "import" (PVE 8.2+): the image must be on `import`-content storage to
|
||||
# be usable as a VM disk `import_from` (uncompressed qcow2 only — ours qualifies).
|
||||
# OPERATOR ACTION: enable the "Import" content type on var.image_datastore (Datacenter
|
||||
# -> Storage -> local -> Content -> check "Import"), else the disk import fails with
|
||||
# "wrong type 'iso' - needs to be 'images' or 'import'".
|
||||
resource "proxmox_virtual_environment_download_file" "debian_cloud_image" {
|
||||
content_type = "iso"
|
||||
content_type = "import"
|
||||
datastore_id = var.image_datastore
|
||||
node_name = var.proxmox_node
|
||||
url = var.image_source
|
||||
|
||||
Reference in new issue
Block a user