fix(ansible): remove guest agent virtio channel check
This commit is contained in:
1 parent
53f4d27601
commit
d019088f6a
2 files changed
+1
-6
No files matched your search
@@ -16,4 +16,4 @@ In a Semaphore Variable Group, set fixed `proxmox_api_host` (hostname, not URL),
|
||||
|
||||
Only `vlan66` maps to `lab.vezpi.com` in the playbook; unknown VLANs fail before API provisioning. `vm_hostname` must be a single short DNS label (no dots). DHCP/DNS must publish `<hostname>.lab.vezpi.com` for the chosen VNet; a derived name is not proof of a current record. Stale/reused DNS can point at another host: verify record ownership and the new guest's SSH host key out of band before running. Never trust an unverified `ssh-keyscan` result or disable host-key checking.
|
||||
|
||||
Use a template with bootable `scsi0`, a `scsi1` cloud-init drive, Python 3, `cloud-init`, `timeout`, SSH and a reachable guest network; the template need not have the agent enabled. Select an SSH Key Store **user credential on the task inventory** whose private key matches one authorized public key for `vm_user`; the same Ansible invocation's inventory credential must be available to the dynamically added guest (verify this in the installed Semaphore version). The localhost API token is separate. Pre-enroll a verified guest host key in the runner's trusted `known_hosts` using a Captain-approved mechanism; no private key path or trust bypass is configured here. The clone enables its virtio guest-agent channel before first start. DNS, SSH port, Ansible connection and cloud-init wait/status are bounded stages; the connection check retries transient transport failures within its timeout. Completed cloud-init status accepts rc 0 or degraded rc 2 and warns on rc 2; other codes, incomplete status and timeouts fail. After accepted cloud-init completion, the guest sets its timezone to `Europe/Paris` (CET/CEST); RTC and NTP are untouched. The guest needs `timedatectl`, timezone data (`tzdata`), apt access and authorized noninteractive sudo/become for `vm_user`. It installs `qemu-guest-agent` with apt, checks for the virtio port and starts the package's device-activated service (no manual enablement of its static unit). Any failure leaves the new VM intact for inspection; no sudo configuration or reboot is added. Playbook success does not verify Proxmox agent communication: on the new VM's actual node, Captain checks `qm agent <NEW_VMID> ping` (successful exit with no error; an empty response is valid).
|
||||
Use a template with bootable `scsi0`, a `scsi1` cloud-init drive, Python 3, `cloud-init`, `timeout`, SSH and a reachable guest network; the template need not have the agent enabled. Select an SSH Key Store **user credential on the task inventory** whose private key matches one authorized public key for `vm_user`; the same Ansible invocation's inventory credential must be available to the dynamically added guest (verify this in the installed Semaphore version). The localhost API token is separate. Pre-enroll a verified guest host key in the runner's trusted `known_hosts` using a Captain-approved mechanism; no private key path or trust bypass is configured here. The clone enables its virtio guest-agent channel before first start. DNS, SSH port, Ansible connection and cloud-init wait/status are bounded stages; the connection check retries transient transport failures within its timeout. Completed cloud-init status accepts rc 0 or degraded rc 2 and warns on rc 2; other codes, incomplete status and timeouts fail. After accepted cloud-init completion, the guest sets its timezone to `Europe/Paris` (CET/CEST); RTC and NTP are untouched. The guest needs `timedatectl`, timezone data (`tzdata`), apt access and authorized noninteractive sudo/become for `vm_user`. It installs `qemu-guest-agent` with apt and starts the package's device-activated service (no manual enablement of its static unit). Any failure leaves the new VM intact for inspection; no sudo configuration or reboot is added. Playbook success does not verify Proxmox agent communication: on the new VM's actual node, Captain checks `qm agent <NEW_VMID> ping` (successful exit with no error; an empty response is valid).
|
||||
@@ -177,11 +177,6 @@
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Require QEMU guest agent virtio channel in guest
|
||||
ansible.builtin.command:
|
||||
argv: [test, -e, /dev/virtio-ports/org.qemu.guest_agent.0]
|
||||
changed_when: false
|
||||
|
||||
- name: Start QEMU guest agent
|
||||
ansible.builtin.service:
|
||||
name: qemu-guest-agent
|
||||
|
||||
Reference in new issue
Block a user