cancel
Showing results for 
Search instead for 
Did you mean: 
SubuRama
Flight Engineer
Flight Engineer
  • 415 Views

Troubleshotting cloud-init

Section 8.7 of the course describes cloud-init and cloudinit.readthedocs.io has information on cloud-init (of course, not just for RHEL installation).

When I was trying to work with scenarios, even though I have :

   a. created a VM with the cloud-init rpm installed

   b. created a sealed template from this VM

   c. created a 2nd VM with Run Once parameters set to use cloudinit/sysprep with some custom scripts

I see that cloud-init has *not* run on the 2nd VM. It does has the cloud-init rpm since the template has it.

How do I troubleshoot why cloud-init didn't run?

Subu

0 Kudos
1 Reply
Emanuel_Haine
Flight Engineer
Flight Engineer
  • 409 Views

It is possible to follow the log output from cloud-init during VM initialization, however, since it is too fast, you can check the journal messages.

As I experienced during the lab sessions, I noticed when there are any errors related to cloud-init, it doesn't execute anything. For example, let's suppose you need to add a user and configure some custom scripts. If you have a syntax error in the custom script, the user will also not be added.

0 Kudos
Join the discussion
You must log in to join this conversation.