Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris2k20/proxmox-cloud-init
Proxmox KVM: Custom Cloud-Init File (User-Data: configure your Ubuntu before it starts)
https://github.com/chris2k20/proxmox-cloud-init
cloud cloud-init custom-cloud proxmox
Last synced: 7 days ago
JSON representation
Proxmox KVM: Custom Cloud-Init File (User-Data: configure your Ubuntu before it starts)
- Host: GitHub
- URL: https://github.com/chris2k20/proxmox-cloud-init
- Owner: chris2k20
- License: mit
- Created: 2021-04-27T20:22:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T15:52:08.000Z (about 2 years ago)
- Last Synced: 2024-11-06T01:39:42.736Z (11 days ago)
- Topics: cloud, cloud-init, custom-cloud, proxmox
- Homepage:
- Size: 5.86 KB
- Stars: 78
- Watchers: 3
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Proxmox: Use Custom Cloud-Init File (User-Data)
How to use a custom Cloud-Init YAML-File with Proxmox:
*Assumption: In your proxmox environment is a VM with ID 9001 and cloud-init installed (run [Ubuntu Cloud Image Template on Proxmox](https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2) & create VM from template & come back:)*
1. Create a folder in the default proxmox path on the host: `mkdir /var/lib/vz/cloud-init/ ; cd /var/lib/vz/cloud-init/`
2. Download the example [cloud-init.yml](./cloud-init.yml) file and save it to 9001-cloud-init.yml: `wget https://raw.githubusercontent.com/chris2k20/proxmox-cloud-init/main/cloud-init.yml -O 9001-cloud-init.yml`
3. Customize it: `nano 9001-cloud-init.yml` (See [official cloud-init Documentation](https://cloudinit.readthedocs.io/en/latest/topics/examples.html))
4. Update the VM settings to use your default cloud-init: `qm set 9001 --cicustom "user=local:cloud-init/9001-cloud-init.yml"`
5. Start VM: `qm start 9001`I used Ubuntu 20.04 Cloud Image to test it out (see my little gist on: [How to install a Ubuntu Cloud Image Template on Proxmox](https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2)).
Feel free to comment or send a pull request. Thank you :hugs: