0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00

chore(docs): add description of HA settings management to VM documentation (#2003)

Signed-off-by: Dan McCormack <cowgod@users.noreply.github.com>
This commit is contained in:
Dan McCormack 2025-06-22 21:11:21 -04:00 committed by GitHub
parent 52a2af524c
commit 0582e3d7f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -668,6 +668,26 @@ All changes made to `amd_sev` will trigger reboots. Removing or adding the `amd_
`allow_smt` is by default set to `true` even if `snp` is not the selected type. Proxmox will ignore this value when `snp` is not in use. Likewise `no_key_sharing` is `false` by default but ignored by Proxmox when `snp` is in use.
## High Availability
When managing a virtual machine in a multi-node cluster, the VM's HA settings can
be managed using the `proxmox_virtual_environment_haresource` resource.
```hcl
resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
name = "terraform-provider-proxmox-ubuntu-vm"
vm_id = 4321
# ...
}
resource "proxmox_virtual_environment_haresource" "ubuntu_vm" {
resource_id = "vm:${proxmox_virtual_environment_vm.ubuntu_vm.vm_id}"
group = "node1"
state = "started"
comment = "Managed by Terraform"
}
```
## Important Notes
### `local-lvm` Datastore