Image Description for Microsoft Azure

A virtual disk image that is able to boot in the Microsoft Azure cloud framework has to comply with the following constraints:

  • Hyper-V tools must be installed.

  • The Microsoft Azure Agent must be installed.

  • The disk size must be set to 30G.

  • Kernel parameters must allow for a serial console.

To meet these requirements, update the KIWI NG image description as follows:

  1. Software packages

    Make sure to add the following packages to the package list:

    Note

    Package names used in the following list match the package names of the SUSE distribution and might be different on other distributions.

    <package name="hyper-v"/>
    <package name="python-azure-agent"/>
    
  2. Image Type definition

    Update the oem image type setup as follows:

    <type image="oem"
          filesystem="ext4"
          kernelcmdline="console=ttyS0 rootdelay=300 net.ifnames=0"
          devicepersistency="by-uuid"
          format="vhd-fixed"
          formatoptions="force_size"
          bootpartition="true"
          bootpartsize="1024">
      <bootloader name="grub2" timeout="1"/>
      <size unit="M">30720</size>
      <oemconfig>
          <oem-resize>false</oem-resize>
      </oemconfig>
    </type>
    

An image built with the above setup can be uploaded into the Microsoft Azure cloud and registered as an image. For further information on how to upload to Azure, see: azurectl.