diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index bdaac770..d9382f3b 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -590,6 +590,13 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error { } log.Print("[DEBUG] cloning VM") err = config.CloneVm(sourceVmr, vmr, client) + + if err != nil { + pmParallelEnd(pconf) + return err + } + + err = config.UpdateConfig(vmr, client) if err != nil { // Set the id because when update config fail the vm is still created d.SetId(resourceId(targetNode, "qemu", vmr.VmId()))