简体   繁体   English

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

[英]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.

相关问题 kubeadm init 1.9挂接到vSphere Cloud provider - kubeadm init 1.9 hangs with vsphere cloud provider Rancher Cluster`cloud_provider` YAML:如何在YAML中使用Active Directory域凭据(即带反斜杠的用户名)? - Rancher Cluster `cloud_provider` YAML: How to use Active Directory Domain Credentials (i.e. user name with back slash) in YAML? 查找虚拟机位置的库存路径 - Inventorypath to find the vm location Kubernetes 的 vsphere 云提供商 - vsphere cloud provider for kubernetes Cloud Foundry bosh错误100:找不到网络 - Cloud Foundry bosh Error 100: Can't find network 为什么从vSphere迁移到Google Cloud后,使用CloudEndure导致上传速度限制缓慢到0.60MBPS? - Why after migration from vSphere to Google Cloud caused slow upload limit to 0.60MBPS using CloudEndure? vijava获取虚拟机中的用户名或帐户列表 - vijava get list of user names or accounts in virtual machine 使用Java在vSphere Client SDK中检测当前用户是否具有管理员权限 - Detect current user has admin rights or not in vSphere client SDK with Java vSphere 中的虚拟交换机保存在哪里? (通过 pyVmomi) - Where are virtual switches kept in vSphere? (through pyVmomi) 无法下载最新的VimService.dll文件 - Unable to download latest VimService.dll file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM