vsphere - cloud-init 用户数据传递到的 Linux 文件位置是什么?

标签 vsphere esxi cloud-init canonical-name

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/

相关文章:

python - 用于获取信息的 Vsphere API 脚本

linux - 如何使用 ESXi 5.1 运行/测试 VMware Perl SDK?

java - 如何通过 vSphere 客户端 API 获取 VMWare 中的适配器类型列表

python - 如何在没有 vCenter 的情况下从 OVF/VMDK 在独立 ESXi 主机上部署虚拟机?

linux - 将 IP 地址传递给 cloud-init 元数据

node.js - nodejs + vmware vsphere sdk SOAP 连接

bash - 如何使用 bash 脚本生成内存不足

cloud - 如何禁用云初始化网络?

amazon-web-services - 如何在 Terraform 上使用 cloud-init 初始化实例

VMware ESXi6.5u1 客户端支持