Este conteúdo não está disponível no idioma selecionado.
Chapter 10. Generating 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.
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.
Prerequisites
- An existing blueprint.
-
A Windows system with the
wslcommand installed. See How to install Linux on Windows with WSL.
Procedure
Build the customized RHEL image:
# image-builder build wsl --blueprint <blueprint-name>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 MBThe image filename defaults to using the unique identifier included in the filename, such as
af9e8627867e-image.wsl. The unique identifier number is provided to thewsl.exeutility.-
Import the
wslimage to the Microsoft Windows system and start the image installation.