You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to provision a VM with HomeAssistantOS in Proxmox using this plugin.
HAOS only provides a qcow2 file for their releases which is compatible with Proxmox.
After that, provisioning a VM with a disk that uses this image, you want to specify the file_format of the disk to "raw" (as it wouldn't work on local-lvm otherwise), even tho it is a qcow2 file under the hood. This works when done manually on the proxmox node.
When using this plugin however, I get the following error:
Error: error waiting for VM creation: task "UPID:deimos-1:00030AC5:00851987:65D26368:qmcreate:100:root@pam:" failed to complete with exit code: unable to create VM 100 - unsupported format 'qcow2' at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
I think, regardless of what I provide as a file_format, it will overwrite the format with whatever proxmox detected on the filesystem.
To Reproduce
resource"proxmox_virtual_environment_vm""hassio_vm" {
name="hassio"node_name="deimos-1"bios="ovmf"machine="q35"efi_disk {
type="4m"
}
cpu {
cores=2sockets=1type="host"
}
memory {
dedicated=4096
}
disk {
datastore_id="local-lvm"discard="on"file_format="raw"file_id=proxmox_virtual_environment_file.haos_image.idinterface="virtio0"iothread=truesize=32
}
operating_system {
type="l26"
}
}
resource"proxmox_virtual_environment_file""haos_image" {
content_type="iso"datastore_id="local"node_name="deimos-1"source_file {
# HAOS does not provide a proxmox compatible img file, only qcow2, so we have to rename the extensionpath="files/haos_ova-11.5.img"
}
}
Expected behavior
When I provide a file_format I don't want it to be overridden by the info gathered from the image file in storage.
Additional context
Add any other context about the problem here.
Single or clustered Proxmox: clustered
Provider version (ideally it should be the latest version): latest version
Terraform version: latest version
OS (where you run Terraform from): MacOS
Debug logs (TF_LOG=DEBUG terraform apply):
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to provision a VM with HomeAssistantOS in Proxmox using this plugin.
HAOS only provides a qcow2 file for their releases which is compatible with Proxmox.
After that, provisioning a VM with a disk that uses this image, you want to specify the file_format of the disk to "raw" (as it wouldn't work on local-lvm otherwise), even tho it is a qcow2 file under the hood. This works when done manually on the proxmox node.
When using this plugin however, I get the following error:
I had a very quick look inside the code for this plugin and I think it might have todo with this block of code:
https://github.com/bpg/terraform-provider-proxmox/blob/main/proxmoxtf/resource/vm.go#L4218
I think, regardless of what I provide as a file_format, it will overwrite the format with whatever proxmox detected on the filesystem.
To Reproduce
Expected behavior
When I provide a file_format I don't want it to be overridden by the info gathered from the image file in storage.
Additional context
Add any other context about the problem here.
TF_LOG=DEBUG terraform apply
):The text was updated successfully, but these errors were encountered: