Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
66545shiwo opened this issue Sep 13, 2024 · 5 comments
Closed

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

66545shiwo opened this issue Sep 13, 2024 · 5 comments
Labels

Comments

@66545shiwo
Copy link

66545shiwo commented Sep 13, 2024

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

Uploading 1726190348792.jpg…

@66545shiwo 66545shiwo added the question Further information is requested label Sep 13, 2024
@66545shiwo
Copy link
Author

1726190348792

@ioito
Copy link
Collaborator

ioito commented Sep 13, 2024

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

@66545shiwo
Copy link
Author

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

@ioito
Copy link
Collaborator

ioito commented Sep 14, 2024

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

Copy link

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。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants