[英]what is the linux file location where the cloud-init user-data is passed to?
what is the linux file location where the cloud-init user-data is passed to?将 cloud-init 用户数据传递到的 linux 文件位置是什么? And how does cloud init use that, is it passed as kernel parameter for proc commandline? cloud init 如何使用它,它是否作为 proc 命令行的内核参数传递? Can explain in atleast level 2?至少可以解释2级吗?
How cloudinit works on bare eSXI? cloudinit 如何在裸 eSXI 上工作?
According to the documentation for the AltCloud data source , which includes vSphere:根据AltCloud 数据源的文档,其中包括 vSphere:
For VMWare's vSphere the userdata is injected into the VM as an ISO via the cdrom.对于 VMWare 的 vSphere,用户数据通过 cdrom 作为 ISO 注入 VM。 This can be done using the vSphere dashboard by connecting an ISO image to the CD/DVD drive.这可以使用 vSphere 仪表板通过将 ISO 映像连接到 CD/DVD 驱动器来完成。
So cloud-init
will retrieve your user-data from an attached ISO image (from a file named user-data.txt
).因此cloud-init
将从附加的 ISO 映像(来自名为user-data.txt
的文件)中检索您的用户数据。
When cloud-init runs, it will typically populate /var/lib/cloud-init/instance
with any information retrieved from the cloud provider, so you should find a copy of the user data in that directory.当 cloud-init 运行时,它通常会使用从云提供商检索到的任何信息填充/var/lib/cloud-init/instance
,因此您应该在该目录中找到用户数据的副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.