Hacker News new | ask | show | jobs
by INTPenis 36 days ago
So you deploy a new VM from a template, shut it down, take a backup and then restore that backup to your target node. Is all this done with IaC? Ansible? Even the backup part?

I haven't touched backups with Ansible yet.

1 comments

Typically I don't touch templates once I do their initial setup, just shut them down and take a backup (can be done using ansible through the PVE CLI)

The backup restore and the VM startup is done through ansible > PVE CLI.

I also have a testing VM that has a "CLEAN" snapshot that I restore to multiple times a day, using ansible > PVE CLI. Once the VM snapshot is restored I turn it back on as well using the PVE CLI

Oh I see, your restore of template backup is actually how you deploy a new VM. Interesting!