cloud init CentOS 6

Problem related to CentOS 6 templates is similarly to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1327337

disk size is already increase but partition is not. After reboot, partition has show correct space.

cloud-utils package is 0.27-10

upload_2018-10-30_20-59-45.png

This bug is already fixed from version cloud-utils-0.27-16.fc24. However, we can not update from CentOS 6

upload_2018-10-30_21-0-41.png
 
hi, thanks for the information. I follow the steps to update cloud-init RPM package to epel-release's 18.3, every things are working well expect change root password. After checking cloud-init.log, I found CentOS6 always locked root password(by inserting "!!" into the /etc/shadow) when first boot, and I have to run command "passwd -u root" to unlock it manually, and then change root password is working. I have tried many ways but not success to disable this first boot locking action. any one know how to disable it ? Thanks.
 
Hey guys,

This link for cloud-init 18 el6 x86_64 is reporting 404 : https://copr-be.cloud.fedoraproject.org/results/@cloud-init/cloud-init-dev/epel-6-x86_64/00785549-cloud-init/

Does anybody know a valid link or another way to get cloud-init new versions to work on CentOS 6?

Thank you,

EDIT
Since only CentOS 7 is there. I tried to create a workaround, not optimal but it worked for me to run cloud-init-18.5-3 on CentOS 6.
https://gist.github.com/RamyAllam/abbe13522c3b67d194618b84db894cbd

Hopefully, this can help anyone who's experiencing the same issue.
 
Last edited:
EDIT
Since only CentOS 7 is there. I tried to create a workaround, not optimal but it worked for me to run cloud-init-18.5-3 on CentOS 6.
https://gist.github.com/RamyAllam/abbe13522c3b67d194618b84db894cbd

Hopefully, this can help anyone who's experiencing the same issue.

This worked perfectly to get the latest version of cloud-init running, but unfortunately didn't solve my underlying issue.
For the life of me I cannot work out why the newly deployed server sets is hostname to either the last octet of the IP or the PTR record but never the hostname that is specified in user-data.

Started another thread for that issue here: https://forum.proxmox.com/threads/kvm-templates-cloud-init-not-applying-hostname.60626/

Did anyone here end up getting a fully functional Centos 6 cloud-init image?
What I've got so far is available for download here (486MB).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!