Debian Codegraph @

doc/source/working_with_images/disk_setup_for_azure.rst

raw
1 .. _setup_for_azure:
2
3 Image Description for Microsoft Azure
4 =====================================
5
6 .. sidebar:: Abstract
7
8 This page provides further information for handling
9 Azure disk images built with {kiwi} and references the
10 following articles:
11
12 * :ref:`simple_disk`
13
14 A virtual disk image that is able to boot in the Microsoft Azure
15 cloud framework has to comply with the following constraints:
16
17 * Hyper-V tools must be installed.
18 * The Microsoft Azure Agent must be installed.
19 * The disk size must be set to 30G.
20 * Kernel parameters must allow for a serial console.
21
22 To meet these requirements, update the {kiwi} image
23 description as follows:
24
25 1. Software packages
26
27 Make sure to add the following packages to the package list:
28
29 .. note::
30
31 Package names used in the following list match the
32 package names of the SUSE distribution and might be different
33 on other distributions.
34
35 .. code:: xml
36
37 <package name="hyper-v"/>
38 <package name="python-azure-agent"/>
39
40 2. Image Type definition
41
42 Update the oem image type setup as follows:
43
44 .. code:: xml
45
46 <type image="oem"
47 filesystem="ext4"
48 kernelcmdline="console=ttyS0 rootdelay=300 net.ifnames=0"
49 devicepersistency="by-uuid"
50 format="vhd-fixed"
51 formatoptions="force_size"
52 bootpartition="true"
53 bootpartsize="1024">
54 <bootloader name="grub2" timeout="1"/>
55 <size unit="M">30720</size>
56 <oemconfig>
57 <oem-resize>false</oem-resize>
58 </oemconfig>
59 </type>
60
61 An image built with the above setup can be uploaded into the
62 Microsoft Azure cloud and registered as an image. For further
63 information on how to upload to Azure, see:
64 `azurectl <https://github.com/SUSE-Enceladus/azurectl>`_.