Closed maksimsamt closed 1 month ago
@Tinyblargon , Maybe it makes sense to make the same scheme as for disks? For example:
...
resource "proxmox_vm_qemu" "cloud_vm_from_packer_template" {
...
serials = {
serial0 = {
id = 0
type = "socket"
}
serial1 = {
id = 1
type = "socket"
}
}
...
}
...
https://github.com/Telmate/terraform-provider-proxmox/pull/1079
works as expected!
System details:
Creating new resources works as expected, serial device is correctly created. Initial config (serial block snippet):
Decide to remove serial device, by removing serial block from config.
In
terraform apply
output all looks fine, serial block should be removed and result shows asApply complete! Resources: 0 added, 1 changed, 0 destroyed.
:After VM shutdown & start serial device still exists:
When I try to run
terraform apply
again, it says that everything is fine and there are no changes:This serial device can only be removed through the Proxmox GUI.
Similar situation is with network device removing https://github.com/Telmate/terraform-provider-proxmox/issues/1027