When managing a proxmox_virtual_environment_vm resource, the aio attribute inside the disk block has a hardcoded default of "io_uring". This prevents users from omitting the aio setting entirely, which is required to match Proxmox's implicit Default (io_uring) state in the GUI (meaning the aio option is completely absent from the VM's .conf file).
Because the provider forces aio=io_uring in the API payload, it is impossible to cleanly import existing VMs created via the Proxmox Web GUI without introducing a configuration drift. Attempting to apply this drift forces an explicit write to the .conf file, which consequently triggers an unwanted VM reboot.
Affected Resource(s)
proxmox_virtual_environment_vm
Expected Behavior
- Users should be able to set
aio = null (or omit the attribute) to signify that Terraform should not send the aio parameter in the API payload at all.
- When importing an existing VM that has "Default (io_uring)" in the Proxmox GUI (no explicit
aio in .conf), terraform plan should show no changes.
Actual Behavior
Even if aio is omitted from the HCL configuration, the provider injects aio = "io_uring".
When importing an existing VM that uses the implicit Proxmox default, terraform plan detects a drift:
~ aio = null -> "io_uring"
When managing a
proxmox_virtual_environment_vmresource, theaioattribute inside thediskblock has a hardcoded default of"io_uring". This prevents users from omitting theaiosetting entirely, which is required to match Proxmox's implicitDefault (io_uring)state in the GUI (meaning theaiooption is completely absent from the VM's.conffile).Because the provider forces
aio=io_uringin the API payload, it is impossible to cleanly import existing VMs created via the Proxmox Web GUI without introducing a configuration drift. Attempting to apply this drift forces an explicit write to the.conffile, which consequently triggers an unwanted VM reboot.Affected Resource(s)
proxmox_virtual_environment_vmExpected Behavior
aio = null(or omit the attribute) to signify that Terraform should not send theaioparameter in the API payload at all.aioin.conf),terraform planshould show no changes.Actual Behavior
Even if
aiois omitted from the HCL configuration, the provider injectsaio = "io_uring".When importing an existing VM that uses the implicit Proxmox default,
terraform plandetects a drift: