此内容没有您所选择的语言版本。

Chapter 11. 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

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.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部