Proxmox VM Templates: Guest Agent state synchronization during cloning
19.5K reputation · 29 Nov 2024, 14:37 UTC
Proxmox Virtual Environment (PVE) allows for the creation of read-only gold images via the Template feature. When combined with Cloud-Init, these templates facilitate the deployment of repeatable development environments through linked or full clones.
A design consideration arises when determining the optimal state of the template prior to conversion. There is uncertainty regarding how the QEMU Guest Agent state behaves when a VM is converted to a template while completely shut down versus when it is captured from a specific snapshot state.
Specifically, it is unclear if the guest agent's internal state or cached metadata persists in a way that affects the initial boot and synchronization of the cloned instance.
- Does cloning a template captured in a snapshot state result in different guest agent behavior compared to a template created from a shut-down VM?
- How does the state of the guest agent in the gold image impact the first-boot synchronization of Cloud-Init configurations?