KIWI NG Logo
  • Overview
    • Basic Workflow
      • Components of an Image Description
    • Conceptual Overview
    • Terminology
  • Installation
    • Installation from OBS
    • Installation from Distribution Repositories
  • Quick Start
    • Before you start
    • Choose a First Image
    • Build your First Image
    • Run your Image
    • Tweak and Customize your Image
  • Concept and Workflow
    • Host Requirements To Build Images
    • Setting up Repositories
      • Adding repositories
    • Adding and Removing Packages
      • The package element
      • The archive element
      • Uninstall System Packages
      • The product and namedCollection element
      • The ignore element
    • Image Profiles
    • Adding Users
    • User-Defined Scripts
      • Developing/Debugging Scripts
    • The Runtime Configuration File
    • Customizing the Boot Process
      • Boot Image Hook-Scripts
      • Boot Image Parameters
    • Image Building Process
      • The Prepare Step
      • The Create Step
  • Working from the Command Line
    • kiwi-ng
      • SYNOPSIS
      • DESCRIPTION
      • GLOBAL OPTIONS
      • EXAMPLE
    • kiwi-ng result list
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng result bundle
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng system prepare
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng system update
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng system build
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
      • URI_TYPES
    • kiwi-ng system boxbuild
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
      • ENVIRONMENT
      • EXAMPLE
    • kiwi-ng system create
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng system stackbuild
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
      • EXAMPLE
    • kiwi-ng system stash
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
      • EXAMPLE
    • kiwi-ng image resize
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
    • kiwi-ng image info
      • SYNOPSIS
      • DESCRIPTION
      • OPTIONS
  • Image Description
    • Description Directory Layout
    • Minimal Example
    • Top-Level Schema Layout
    • What to Configure First
    • Common Patterns
    • Complete Schema Reference
      • Schema Reference
  • Alternative Build Methods
    • Building in a Self-Contained Environment
      • Requirements
      • Building with the boxbuild command
      • Sharing Backends
      • Building in Container
    • Building based on Containers
      • Requirements
      • Concept
      • Create a stash
      • Rebuild from a stash
      • Turn a container into a VM image
  • Examples
    • Build an ISO Hybrid Live Image
      • overlay or dmsquash
    • Build a Virtual Disk Image
      • Setting up the Bootloader in the Image
      • Modifying the Size of the Image
      • Customizing the Virtual Machine
    • Build an Expandable Disk Image
      • Deployment Methods
      • Manual Deployment
      • CD/DVD Deployment
      • Network Deployment
      • OEM Customization
      • Installation Media Customization
    • Build a Container Image
    • Build a WSL Container Image
      • Setup of the WSL-DistroLauncher
      • Testing the WSL image
    • Build KIS Image (Kernel, Initrd, System)
    • Build an AWS Nitro Enclave
    • Deploy ISO Image on a USB Stick
    • Deploy ISO Image as a File on a FAT32 Formatted USB Stick
    • Booting Live ISO Images from Grub2
    • Image Description for Amazon EC2
    • Image Description for Microsoft Azure
    • Image Description for Google Compute Engine
    • Image Description for Vagrant
      • Customizing the embedded Vagrantfile
    • Image Description for an Encrypted Disk
    • Deploy and Run a System in a Ramdisk
    • Custom Disk Partitions
    • Custom Disk Volumes
    • Partition Clones
      • Use Case
    • Setting Up a Network Boot Server
      • Installing and Configuring DHCP and TFTP with dnsmasq
    • Build PXE Root Filesystem Image for the legacy netboot infrastructure
      • PXE Client Setup Configuration
    • Booting a Root Filesystem from Network
    • Booting a Live ISO Image from Network
      • Available Remote Boot Options
      • Persistent Live System
    • Add or Update the Fstab File
    • Building Images with Profiles
      • Local Builds
      • Building with the Open Build Service
    • Building in the Open Build Service
      • Advantages of using the Open Build Service (OBS)
      • Differences Between Building Locally and on OBS
      • Recommendations
    • Using SUSE Product ISO To Build
    • Circumvent Debian Bootstrap
      • How to Create a bootstrap_package
    • Building Build Tests
  • Image Types
    • Image Results
    • Image Bundle Format
  • Troubleshooting
    • Build Host Constraints
      • Package Manager Behavior
    • Architectures
    • Host Security Settings Conflicts with KIWI
    • Incompatible Filesystem Settings on Host vs. Image
    • Boxbuild Tweaks
      • Increase Box Build Image Size
  • Contributing
    • Using KIWI NG in a Python Project
    • Plugin Architecture
      • Naming conventions
      • Example plugin
    • Write Integration Tests for the Scripts
      • Test setup
    • Extending KIWI NG with Custom Operations
      • The <extension> Section
      • RELAX NG Schema for the Extension
      • Extension schema in XML catalog
      • Using the extension
    • Fork the upstream repository
    • Create a local clone of the forked repository
    • Install Required Operating System Packages
    • Create a Python Virtual Development Environment
    • Running the Unit Tests
    • Coding Style
    • Documentation
    • Bumping the Version
    • AI policy
    • Creating an RPM Package
KIWI NG
  • Examples
  • View page source

Examples

Note

This chapter collects practical KIWI examples for image creation, deployment, and customization. All images provided for testing use the root password linux.

  • Build an ISO Hybrid Live Image
  • Build a Virtual Disk Image
  • Build an Expandable Disk Image
  • Build a Container Image
  • Build a WSL Container Image
  • Build KIS Image (Kernel, Initrd, System)
  • Build an AWS Nitro Enclave
  • Deploy ISO Image on a USB Stick
  • Deploy ISO Image as a File on a FAT32 Formatted USB Stick
  • Booting Live ISO Images from Grub2
  • Image Description for Amazon EC2
  • Image Description for Microsoft Azure
  • Image Description for Google Compute Engine
  • Image Description for Vagrant
  • Image Description for an Encrypted Disk
  • Deploy and Run a System in a Ramdisk
  • Custom Disk Partitions
  • Custom Disk Volumes
  • Partition Clones
  • Setting Up a Network Boot Server
  • Build PXE Root Filesystem Image for the legacy netboot infrastructure
  • Booting a Root Filesystem from Network
  • Booting a Live ISO Image from Network
  • Add or Update the Fstab File
  • Building Images with Profiles
  • Building in the Open Build Service
  • Using SUSE Product ISO To Build
  • Circumvent Debian Bootstrap
  • Building Build Tests
Previous Next

© Copyright 2020-2026, Marcus Schäfer.

Built with Sphinx using a theme provided by Read the Docs.