| 1 |
.. kiwi documentation master file |
| 2 |
|
| 3 |
.. only:: suse |
| 4 |
|
| 5 |
.. include:: suse_metadata.rst |
| 6 |
|
| 7 |
Welcome to KIWI NG |
| 8 |
================== |
| 9 |
|
| 10 |
**Build Linux images from one description in a predictable two-step workflow.** |
| 11 |
|
| 12 |
KIWI NG is a command-line image builder for Linux distributions. It creates |
| 13 |
bootable, reproducible images for virtual machines, cloud platforms, removable |
| 14 |
media, containers, and specialized deployment targets. |
| 15 |
|
| 16 |
.. note:: |
| 17 |
This documentation covers {kiwi-product} |version|. |
| 18 |
|
| 19 |
.. toctree:: |
| 20 |
:maxdepth: 1 |
| 21 |
:hidden: |
| 22 |
|
| 23 |
overview |
| 24 |
installation |
| 25 |
quickstart |
| 26 |
commands |
| 27 |
troubleshooting |
| 28 |
plugins |
| 29 |
concept_and_workflow |
| 30 |
image_description |
| 31 |
image_types_and_results |
| 32 |
examples |
| 33 |
contributing |
| 34 |
integration_testing |
| 35 |
|
| 36 |
Build Architecture |
| 37 |
------------------ |
| 38 |
|
| 39 |
.. figure:: .images/architecture.svg |
| 40 |
:align: center |
| 41 |
:alt: KIWI NG needs an image description and repositories with packages. The prepare step creates a new root tree, and the create step turns it into one or more images. |
| 42 |
|
| 43 |
KIWI NG builds from an image description and the repositories that provide |
| 44 |
the packages for it. In the *prepare* step, KIWI creates a new root tree. |
| 45 |
In the *create* step, KIWI converts that prepared root tree into one or |
| 46 |
more image artifacts. |
| 47 |
|
| 48 |
Diagram description: |
| 49 |
The diagram shows two required inputs: an image description and the |
| 50 |
repositories that contain the packages used for the build. Both feed the |
| 51 |
*prepare* step, which creates a new root tree. The *create* step then turns |
| 52 |
that prepared root tree into one or more images such as disk, ISO, or |
| 53 |
container artifacts. |
| 54 |
|
| 55 |
The image description directory typically contains: |
| 56 |
|
| 57 |
* :file:`config.xml` or a :file:`*.kiwi` file with the image definition. |
| 58 |
* Repository definitions that point to the package sources used during the |
| 59 |
build. |
| 60 |
* Optional overlays, archives, and shell hooks that customize the prepared |
| 61 |
root tree or the final image artifacts. |
| 62 |
|
| 63 |
Why KIWI? |
| 64 |
--------- |
| 65 |
|
| 66 |
* **One source, multiple outputs**: prepare a root filesystem once and create |
| 67 |
one or more image formats from it. |
| 68 |
* **Declarative image definitions**: keep image metadata, repositories, |
| 69 |
packages, users, and storage settings in a versioned description. |
| 70 |
* **Broad target support**: build for bare metal, virtual machines, cloud |
| 71 |
environments, live media, and containers. |
| 72 |
* **Distribution-aware builds**: work with the package managers and repository |
| 73 |
layouts used by the supported Linux distributions. |
| 74 |
* **Controlled customization**: extend builds with overlays, archives, and |
| 75 |
scripts when the schema alone is not enough. |
| 76 |
|
| 77 |
.. sidebar:: Links |
| 78 |
|
| 79 |
* `GitHub Sources <https://github.com/OSInside/kiwi>`__ |
| 80 |
* `GitHub Releases <https://github.com/OSInside/kiwi/releases>`__ |
| 81 |
* `RPM Packages <http://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder>`__ |
| 82 |
* `Build Tests TumbleWeed(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:tumbleweed>`__ |
| 83 |
* `Build Tests TumbleWeed(arm) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_arm:tumbleweed>`__ |
| 84 |
* `Build Tests TumbleWeed(s390) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_s390:tumbleweed>`__ |
| 85 |
* `Build Tests TumbleWeed(ppc64le) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_ppc:tumbleweed>`__ |
| 86 |
|
| 87 |
* `Build Tests RawHide(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:rawhide>`__ |
| 88 |
* `Build Tests RawHide(s390) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_s390:rawhide>`__ |
| 89 |
|
| 90 |
* `Build Tests Leap(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:leap>`__ |
| 91 |
|
| 92 |
* `Build Tests Fedora(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:fedora>`__ |
| 93 |
* `Build Tests Fedora(arm) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_arm:fedora>`__ |
| 94 |
|
| 95 |
* `Build Tests CentOS(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:centos>`__ |
| 96 |
|
| 97 |
* `Build Tests Ubuntu(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:ubuntu>`__ |
| 98 |
* `Build Tests Ubuntu(arm) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_arm:ubuntu>`__ |
| 99 |
|
| 100 |
* `Build Tests Debian(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:debian>`__ |
| 101 |
|
| 102 |
* `Build Tests ArchLinux(x86) <https://build.opensuse.org/project/show/Virtualization:Appliances:Images:Testing_x86:archlinux>`__ |
| 103 |
|
| 104 |
Get Started |
| 105 |
----------- |
| 106 |
|
| 107 |
Start with :doc:`quickstart` for a first build, :doc:`concept_and_workflow` for |
| 108 |
workflow details, and :doc:`image_description` for the schema-backed reference |
| 109 |
for description files. |
| 110 |
|
| 111 |
System Requirements |
| 112 |
------------------- |
| 113 |
|
| 114 |
To build images with {kiwi}, you need: |
| 115 |
|
| 116 |
* A recent Linux distribution. See :ref:`supported-distributions` for the |
| 117 |
tested targets. |
| 118 |
* Enough free disk space for the build root, caches, and resulting images. A |
| 119 |
minimum of 15 GB is recommended. |
| 120 |
* Python 3.9 or newer. |
| 121 |
* Git to clone image descriptions and example repositories. |
| 122 |
* Optionally, a virtualization environment such as QEMU to boot and inspect |
| 123 |
the resulting images. |
| 124 |
|
| 125 |
The project officially tests and supports the following distributions: |
| 126 |
|
| 127 |
============================================================ ================= |
| 128 |
Distribution Version |
| 129 |
============================================================ ================= |
| 130 |
`Fedora Linux <https://fedoraproject.org>`_ 43+ |
| 131 |
`CentOS Stream <https://centos.org>`_ 10+ |
| 132 |
`CentOS Stream Hyperscale <https://centos.org/hyperscale>`_ 10+ |
| 133 |
`openSUSE Tumbleweed <https://get.opensuse.org/tumbleweed>`_ after April 2025 |
| 134 |
`openSUSE Leap 16.0+ <https://get.opensuse.org/leap/16.0/>`_ 16.0+ |
| 135 |
`Canonical Ubuntu Linux <https://ubuntu.com/>`_ 26.04+ |
| 136 |
`Debian GNU/Linux <https://debian.org>`_ 13+ |
| 137 |
`Arch Linux <https://archlinux.org>`_ after April 2025 |
| 138 |
============================================================ ================= |
| 139 |
|
| 140 |
Contact |
| 141 |
------- |
| 142 |
|
| 143 |
* `Mailing list <https://groups.google.com/forum/#!forum/kiwi-images>`__ |
| 144 |
|
| 145 |
The `kiwi-images` group is an open group, and anyone can |
| 146 |
`subscribe <mailto:[email protected]>`__, |
| 147 |
even if you do not have a Google account. |
| 148 |
|
| 149 |
* `Matrix <https://matrix.org>`__ |
| 150 |
|
| 151 |
An open network for secure, decentralized communication. Please find the |
| 152 |
``#kiwi:matrix.org`` room via |
| 153 |
`Matrix <https://matrix.to/#/#kiwi:matrix.org>`__ on the web |
| 154 |
or by using the supported |
| 155 |
`clients <https://matrix.org/ecosystem/clients>`__. |