[pve-devel] RFC: qemu-server : add cloudinit support
Alexandre Derumier
aderumier at odiso.com
Wed Jun 10 17:10:08 CEST 2015
This is a first attempt to add support to cloudinit.
Cloud-init is a daemon available in almost all distros (linux,bsd && windows).
https://cloudinit.readthedocs.org/en/latest/
It's used by openstack|rackspace|amazon|... to push config to guest os
For debian, you can install with
#apt-get install cloud-init cloud-initramfs-growroot
I have an jessie image here for testing (login:root pass:test):
http://odisoweb1.odiso.net/debian-jessie-amd64-150610.raw
The config is send through an temp iso cdrom config.
to generate config, add in vmid.conf
cloudinit: 1
hostname: host.mydomain.com
searchdomain: mydomain.com
ipaddress: 192.168.0.1/24
gateway: 192.168.0.1
The vm will start with the config drive, setup his network, then shutdown (and config drive is removed from pending delete)
Currently I manage only network, but it's possible to setup ssh keys, password, launch puppet|chef|salt ....
Patches need to be polished, but I would like to have some comments about implementation.
Alexandre
More information about the pve-devel
mailing list