yunionio / cloudpods

A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
https://www.cloudpods.org
Apache License 2.0
2.59k stars 532 forks source link

[求助/Help] 已建虚拟机如何修改cloud-init配置 #21223

Closed 66545shiwo closed 2 weeks ago

66545shiwo commented 1 month ago

已建好的虚拟机没有找到可以修改自定义数据地方,也就是cloud-init的配置,请问下支持吗?

![Uploading 1726190348792.jpg…]()

66545shiwo commented 1 month ago

1726190348792

ioito commented 1 month ago

climc server-set-user-data 可以设置,但目前也就支持第一次启动才有效

66545shiwo commented 1 month ago

@ioito 假如我修改的是bootcmd命令,重启会生效吧

ioito commented 1 month ago

cloudpods提供了访问user-data的能力, curl http://169.254.169.254/latest/user-data 可以看到user-data的信息 更改后user-data,重启后访问也会更新 至于重启生效,需要你研究cloud-init怎么每次重启都初始化 fix: https://github.com/yunionio/cloudpods/pull/21238/files

github-actions[bot] commented 2 weeks ago

If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.

您超过 37 天未反馈信息,我们将关闭该 issue,如有需求您可以重新打开或者提交新的 issue。