cloud-init-seed is a command line tool to create seed images which can be used together with cloud-init. This is eg. useful when using Cloud images (which contain cloud-init) together with libvirt (which does not have a metadata server which is usually used together with cloud-init).
Note
cloud-init in the image must have the nocloud datasource enabled.
- mkisofs or genisoimage (zypper in mkisofs for openSUSE or apt install genisoimage for Debian)
- when using virtual envs, just install via pip pip3 install cloud-init-seed
Create a seed image:
cloud-init-seed create
Now the seed.img file can be attached to a libvirt instance as a CDROM drive.