From f1cc22987fcf5071e834458bae9eae30c027fc1f Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 24 Nov 2026 08:40:48 +0000 Subject: [PATCH] feat(proxmox): set CPU baseline for new VM clones --- ansible/proxmox/README.md | 2 ++ ansible/proxmox/provision_vm.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/ansible/proxmox/README.md b/ansible/proxmox/README.md index 3d4e282..7fe630c 100644 --- a/ansible/proxmox/README.md +++ b/ansible/proxmox/README.md @@ -42,4 +42,6 @@ Only `vlan66` maps to a DNS suffix (`lab.vezpi.com`); other VLANs fail before cl 2. It waits for DNS, port 22, an Ansible connection and cloud-init. Cloud-init exit code `0` is accepted; degraded exit code `2` is accepted with a warning. Other codes, incomplete status and timeouts fail. 3. On the guest it sets the display timezone to `Europe/Paris` (CET/CEST), installs `qemu-guest-agent` and starts its device-activated service. It does not change RTC/NTP, manually enable the static unit, configure sudo or reboot. +New clones use the `x86-64-v2-AES` CPU model before first boot; every destination host must support it. Existing VMs and templates are unchanged. + A failure leaves the new VM intact for inspection. Playbook success does **not** prove agent communication: on the VM's actual Proxmox node, run `qm agent ping`. A successful exit with no error is sufficient, even if the response is empty. diff --git a/ansible/proxmox/provision_vm.yml b/ansible/proxmox/provision_vm.yml index 6f30a46..babe9a9 100644 --- a/ansible/proxmox/provision_vm.yml +++ b/ansible/proxmox/provision_vm.yml @@ -87,6 +87,7 @@ update: true update_unsafe: true # Needed to replace net0 on this newly cloned VM. cores: "{{ vm_cpu }}" + cpu: x86-64-v2-AES memory: "{{ vm_ram_gib | int * 1024 }}" net: net0: "virtio,bridge={{ vm_vlan }}"