Created 11-22-2018 09:27 AM
Hello,
I have a question about how to create custom Cloudbreak image on Azure:
Currently, the official Cloudbreak image address on Azure are using blob uri, for example:
"West US": "https://sequenceiqwestus2.blob.core.windows.net/images/cb-hdp-31-1804041515.vhd",
But when I created a custom image from a virtual machine on Azure, there's no blob uri for this image(searched on google it said this is a managed image). How can I generate a uri for this image?
I also checked cloudbreak-images project on github, it said that a custom base image on Azure is driven by input parameters:image_publisher
, image_offer
and image_sku,
but I have no idea how to map these info to the custom image I created on Azure.
Or is there any other way I can use a custom image as a Cloudbreak base image? Thanks.
Created 11-26-2018 11:47 PM
Created 11-27-2018 04:38 AM
Hi @Dominika Bialek, thanks for the reply. Yes I had tried this and created a custom image based on CentOS7, then I would like to add more tools and packages into this image, so I created a VM using this image, put all things I need in this VM, and then generalize it. The problem is that I can only create a managed image from this VM, there's no blob URI for it, but I want to use this managed image as my Cloudbreak base image. How could I do?
Created 12-03-2018 11:00 AM
You should extend the image burning states with your requirements. So you should checkout/fork the cloudbreak-images repo and add your custom stuff to it:
https://github.com/hortonworks/cloudbreak-images/blob/master/README.dev.md#custom-script
It's the simpliest way to build a custom image.
Created 11-29-2018 07:59 AM
@pdarvasi, I saw you are an expert on Cloudbreak, could you help on this question? Thank you so much.
Created 12-13-2018 02:06 PM
Sorry for the late answer.
Cloudbreak currently does not support burning images starting from a managed image out of the box.
You can quite easily do that by modifying the HW official packer.json a little following the docs.
Hope this helps!