-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The second net1 network device cannot be removed from VM #1027
Comments
@maksimsamt This is an issue with a lot more things. Basically, the provider treats lots of things like lists, but proxmox has a dedicated slot for each adapter. So we can't convert between them neatly. This will get rewritten at some point. |
@Tinyblargon, |
@maksimsamt you are correct. |
Great! ...
resource "proxmox_vm_qemu" "cloud_vm_from_packer_template" {
...
networks = {
network0 = {
model = "virtio"
bridge = "vmbr0"
tag = 1110
firewall = false
}
network1 = {
model = "virtio"
bridge = "vmbr1"
tag = 1111
firewall = false
}
}
...
}
... |
Probably gonna do both approaches from the start. |
Reimplement qemu network interfaces
System details:
Creating new resources works as expected, two network devices are correctly created.
Initial config (network snippet):
Decide to remove the second net1 network device, so there is only one network block in the config:
In
terraform apply
output all looks fine, the second network block should be removed and result shows asApply complete! Resources: 0 added, 1 changed, 0 destroyed.
:But as a result, the second network device net1 still exists in the PVE virtual machine.
When I try to run
terraform apply
again, it tries to remove this network device again and again with no success.This network device can only be removed through the Proxmox GUI.
Most likely, the same behavior will happen with the third, fourth, etc. network devices.
The text was updated successfully, but these errors were encountered: