创建与cloud init兼容的映像种子
cloud-init-seed的Python项目详细描述
cloud init seed是创建种子图像的命令行工具 可与cloud-init一起使用。这在使用时很有用 云图像(包含cloud init)和libvirt(包含 没有通常与cloud init一起使用的元数据服务器。
注意
图像中的cloud init必须启用nocloud数据源。
要求和安装
- mkisofs或genisomage(zypper in mkisofsfor opensuse或apt install genisomagefor debian)
- 使用虚拟环境时,只需通过pippip3 install cloud init seed安装即可
用法
创建种子图像:
cloud-init-seed create
现在seed.img文件可以作为cdrom驱动器附加到libvirt实例。