diff --git a/proxmox.tf b/proxmox.tf index 3974c07..39793b6 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -21,7 +21,7 @@ resource "proxmox_virtual_environment_download_file" "latest_ubunto_cloud_img" { datastore_id = "local" node_name = "fenix" url = "https://mirror.i3d.net/pub/fedora/linux/releases/42/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-42-1.1.x86_64.qcow2" - file_name = "FedoraCloudBaseGeneric42.img" + file_name = "FedoraCloudBaseGeneric42.qcow2" } resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { @@ -59,8 +59,9 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { disk { datastore_id = "local-lvm" - import_from = proxmox_virtual_environment_download_file.latest_ubunto_cloud_img.id + file_id = proxmox_virtual_environment_download_file.latest_ubunto_cloud_img.id interface = "scsi1" + file_format = "qcow2" } # Configuração da interface de rede