cloudpods icon indicating copy to clipboard operation
cloudpods copied to clipboard

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

Open 66545shiwo opened this issue 1 year ago • 4 comments

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

Uploading 1726190348792.jpg…

66545shiwo avatar Sep 13 '24 01:09 66545shiwo

1726190348792

66545shiwo avatar Sep 13 '24 01:09 66545shiwo

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

ioito avatar Sep 13 '24 11:09 ioito

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

66545shiwo avatar Sep 14 '24 01:09 66545shiwo

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

ioito avatar Sep 14 '24 02:09 ioito

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。

github-actions[bot] avatar Oct 22 '24 02:10 github-actions[bot]