Prepare and deploy virtual machine images

Create and deploy virtual machine images by using RHEL image builder. You can build Kernel-based Virtual Machine (KVM) guest images (.qcow2), Vagrant boxes for libvirt and VirtualBox providers, and Windows Subsystem for Linux (WSL) images with custom blueprints.

Generate a WSL 2 image with RHEL image builder

You can use the RHEL image builder to create a Windows Subsystem for Linux (WSL). After building the image in the .wsl format, you can deploy it locally by double-clicking the image.

Before you begin

About this task

Windows Subsystem for Linux (WSL) runs Linux distributions alongside your Windows environment. WSL images support the following image customizations:

  • cloud-init
  • distro
  • packages
  • modules
  • groups
  • minimal

Note that WSL images do not support the locale and file system customizations. You cannot configure file system and storage options because WSL instances do not have their own disk images by design.

Procedure

  1. Build the customized RHEL image:
    # image-builder build wsl --blueprint <blueprint-name>
  2. Download the image:
    # image-builder image <UUID>

    RHEL image builder downloads the image to the current directory path. The UUID and the image size are displayed:

    $ UUID-image-name. type: size MB

    The image filename defaults to using the unique identifier included in the filename, such as af9e8627867e-image.wsl. The unique identifier number is provided to the wsl.exe utility.

  3. Import the wsl image to the Microsoft Windows system and start the image installation.