REST API PE Clone customization | Nutanix Community
Skip to main content

Hi everyone,

I’m trying to clone a vm with a cloud-init customization but i don’t know how to put the cloud-init in the userdata string.

Thanks for you help

Hey @sysvialink let me search and get back to you with some relevant information.:relaxed:


Hey @sysvialink , can you check this KB 6539 once and see if this helps to resolve your issue?


 Hey @sysvialink,

 

Have you figured this out?

 

The spec for cloud_init should be like this.

 

"guest_customization": {    
  "cloud_init": {
  "user_data":"<BASE64_ENCODED_CLOUD-INIT_SCRIPT_STRING>"
  },
"is_overridable": false
}

 

For the string, it can be shell script/JSON file but it must be base64 encoded.



Take a look at solution 2 of -
https://portal.nutanix.com/page/documents/kbs/details?targetId=kA00e000000CshJCAS


Hey @sysvialink did any of the above help you resolve the issue. 

 

Let us know here if you need any help.:smile: