Building image to run VM on Azure using KIWI NG

47 views
Skip to first unread message

VinayGangadhar Hegde

unread,
Sep 8, 2023, 7:11:54 AM9/8/23
to kiwi

Hi,

We are working on building a custom SUSE image for deploying as VMs in Azure cloud.


In past, we have successfully used ec2imgutils to create AMIs for AWS. We see that there is support for GCE as well, but do not see any support for Azure.  (https://github.com/SUSE-Enceladus)

We referred KIWI NG documentation to generate .vhd image compatible with Azure cloud - https://osinside.github.io/kiwi/working_with_images/disk_setup_for_azure.html,

on the same page, they talk about using azurectl to upload .vhd to azure and create an image from it. That link doesn’t seem to be working.

we did look at https://github.com/SUSE-Enceladus/azure-img-utils which at a high level seems like the one for Azure, but there it talks about uploading qcow2 file to Azure.

We would appreciate your help in clarifying this issue.

Robert Schweikert

unread,
Sep 9, 2023, 6:52:35 AM9/9/23
to kiwi-...@googlegroups.com
Hi,

On 9/8/23 07:11, VinayGangadhar Hegde wrote:
> Hi,
>
> We are working on building a custom SUSE image for deploying as VMs in
> Azure cloud.
>
>
> In past, we have successfully used ec2imgutils to create AMIs for AWS.
> We see that there is support for GCE as well, but do not see any support
> for Azure.  (https://github.com/SUSE-Enceladus)

There is a tool to help with azure [1]

>
> We referred KIWI NG documentation to generate .vhd image compatible with
> Azure cloud -
> https://osinside.github.io/kiwi/working_with_images/disk_setup_for_azure.html,
>
> on the same page, they talk about using azurectl

The azurectl tool has been removed as it was written against the API
labeled as "Classic" which has been removed recently.

With respect to image setup you can see the setting SUSE uses in
keg-recipes [2] and in expanded form in [3]


> to upload .vhd to azure
> and create an image from it. That link doesn’t seem to be working.
>
> we did look at https://github.com/SUSE-Enceladus/azure-img-utils which
> at a high level seems like the one for Azure, but there it talks about
> uploading qcow2 file to Azure.

That might be a bug in the documentation, can you please file an issue
for [1]. The tool will upload vhdfixed files.

>
> We would appreciate your help in clarifying this issue.

HTH,
Robert


[1] https://github.com/SUSE-Enceladus/azure-img-utils
[2]
https://github.com/SUSE-Enceladus/keg-recipes/blob/released/data/csp/azure/sle15/preferences.yaml
[3]
https://build.opensuse.org/package/view_file/Cloud:Images:Leap_15.5/openSUSE-Leap-15.5-Guests/config.kiwi?expand=1

--
Robert Schweikert MAY THE SOURCE BE WITH YOU
Distinguished Engineer LINUX
Technical Team Lead Public Cloud
rjsc...@suse.com
IRC: robjo

Reply all
Reply to author
Forward
0 new messages