Skip to content

Proxmox KVM: Custom Cloud-Init File (User-Data: configure your Ubuntu before it starts)

License

Notifications You must be signed in to change notification settings

chris2k20/proxmox-cloud-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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 & 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 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)
  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).

Feel free to comment or send a pull request. Thank you 🤗

About

Proxmox KVM: Custom Cloud-Init File (User-Data: configure your Ubuntu before it starts)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published