Cloud-init not working when using Packstack

asked 2018-10-19 07:29:06 -0500

os_user gravatar image

Hi guys,

I was deploying a Cirros VM using Packstack with cloud-init config included. According to this https://ask.openstack.org/en/question/58749/cirros-image-have-cloud-init-in-it/ (question), Cirros have also cloud-init installed. I am running Packstack on top of Centos 7 in VMWare player. On my environment I have cloud-init installed as well. However, when I have deployed one VM using the Cirros image in Packstack, cloud-init config introduced was not working. I was looking into the /var/log, but I couldn't find any cloud-init log.

I have tried to insert the cloud config part as follows inside the Dashboard when launching the VM:

#cloud-config
runcmd:
   - echo "This is a test" > /home/cirros/test.txt

Any idea what I can try more? The target is to push some configuration when launching the VM.

Many thanks

edit retag flag offensive close merge delete