cloud-init 用户数据传递到的 Linux 文件位置是什么? cloud init 如何使用它,它是否作为 proc 命令行的内核参数传递? 至少能解释2级吗?
cloudinit 如何在裸 eSXI 上工作?
最佳答案
根据 AltCloud data source 的文档,其中包括 vSphere:
For VMWare’s vSphere the userdata is injected into the VM as an ISO via the cdrom. This can be done using the vSphere dashboard by connecting an ISO image to the CD/DVD drive.
因此,cloud-init
将从附加的 ISO 镜像(从名为 user-data.txt
的文件)中检索您的用户数据。
当 cloud-init 运行时,它通常会使用从云提供商检索到的任何信息填充 /var/lib/cloud-init/instance
,因此您应该在以下位置找到用户数据的副本该目录。
关于vsphere - cloud-init 用户数据传递到的 Linux 文件位置是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59505762/