Straypenguins-Tips-Inventory

Cloud-init Ready: Linux VM Deployment Kit on vSphere

Automated, repeatable deployment of cloud-init-enabled Linux VMs on vSphere, using PowerShell/PowerCLI and custom seed ISO generation.


🧭 Features


πŸš€ Quick Start

1. Preparation

On the Windows Admin Host or Any PC

On the Template VM (RHEL9)

On the Windows Admin Host


2. Prepare Parameter and Template Files


3. Run the Deployment Script


4. Confirm and Finalize


πŸ—‚οΈ Directory Structure

/
β”œβ”€β”€ cloudinit-linux-vm-deploy.ps1
β”œβ”€β”€ params/
β”‚   β”œβ”€β”€ vm-settings_example.yaml
β”‚   └── <your copy of above>
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ <your copies of *_template.yaml>
β”‚   └── original/
β”‚       β”œβ”€β”€ user-data_template.yaml
β”‚       β”œβ”€β”€ meta-data_template.yaml
β”‚       └── network-config_template.yaml
β”œβ”€β”€ scripts/
β”‚   └── init-vm-cloudinit.sh
β”œβ”€β”€ infra/
β”‚   β”œβ”€β”€ cloud.cfg
β”‚   β”œβ”€β”€ 99-template-maint.cfg
β”‚   β”œβ”€β”€ enable-cloudinit-service.sh
β”‚   β”œβ”€β”€ prevent-cloud-init.sh
β”‚   β”œβ”€β”€ req-pkg-cloudinit.txt
β”‚   └── req-pkg-cloudinit-full.txt
└── spool/
    └── <VMNAME>/

πŸ“ Notes & Recommendations


πŸ› οΈ Troubleshooting


πŸ‘‰ References


License

This project is licensed under the MIT License - see the LICENSE file for details.