diff --git a/example/resource_virtual_environment_vm.tf b/example/resource_virtual_environment_vm.tf index d5d23d7e..991f5865 100644 --- a/example/resource_virtual_environment_vm.tf +++ b/example/resource_virtual_environment_vm.tf @@ -155,6 +155,12 @@ resource "proxmox_virtual_environment_vm" "example" { serial = "my-custom-serial" } + efi_disk { + datastore_id = local.datastore_id + file_format = "raw" + type = "4m" + } + initialization { datastore_id = local.datastore_id // if unspecified: diff --git a/proxmoxtf/resource/vm/vm.go b/proxmoxtf/resource/vm/vm.go index 2d12588f..37120129 100644 --- a/proxmoxtf/resource/vm/vm.go +++ b/proxmoxtf/resource/vm/vm.go @@ -2233,7 +2233,7 @@ func vmCreateClone(ctx context.Context, d *schema.ResourceData, m interface{}) d continue } - if &efiType != currentDiskInfo.Type { + if efiType != *currentDiskInfo.Type { return diag.Errorf( "resizing of efidisks is not supported.", )