Is there some standard procedure to retrofit cloud-init on an existing VM?

vonhabsi

New Member
Oct 28, 2024
2
0
1
I have a VM with a lot of custom configurations I want to turn into a template with cloud-init configuration.

Is that possible or permissible?

If it is are there some start up time settings or scripts I have to disable initially to allow the cloud-init do its thing, like some crontab or systemd configurations?
 
Hi @vonhabsi , welcome to the forum.

CloudInit technology is not specific to PVE. Many resources are available online that can guide you in adapting your VM to use CloudInit, although it's not certain you need it.
I recommend making a full clone of your existing VM and experimenting on it. Even better, record all the steps needed for your customization and research Packer. It will allow you to build a new VM with all the packages you need.

If you want to continue with the CloudInit path - search online for "golden image" combined with your particular Linux flavor. I am certain you will find a few articles with useful information.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: vonhabsi
Hi,
as far as I understand it, cloud-init is just a software package which runs once at next boot.
Like suggested: make a backup of your vm. Install the cloud-init package, add a cloud-init drive. Provide the yaml-files for cloud-init configuration and run the vm.
Process is described in detail in Proxmox VE documentation: https://pve.proxmox.com/wiki/Cloud-Init_Support
 
  • Like
Reactions: bbgeek17
  • Like
Reactions: vonhabsi

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!