6.2. Deploying a container image from the network by using Anaconda and Kickstart


You can use Anaconda and Kickstart to deploy an ISO image to install your container image on bare-metal servers or virtual machines. The Kickstart configuration differs from traditional RHEL installations because it uses ostreecontainer instead of the %packages section.

Prerequisites

  • You have downloaded a RHEL 10 Boot ISO for your architecture from Red Hat.

Procedure

  1. Create an ostreecontainer Kickstart file to fetch the image from the network. For example:

    # Basic setup
    text
    network --bootproto=dhcp --device=link --activate
    # Basic partitioning
    clearpart --all --initlabel --disklabel=gpt
    reqpart --add-boot
    part / --grow --fstype xfs
    
    # Reference the container image to install - The kickstart
    # has no %packages section. A container image is being installed.
    ostreecontainer --url quay.io/<namespace>/<image>:<tag> . bootc-image-builder:latest
    
    firewall --disabled
    services --enabled=sshd
    
    # Only inject a SSH key for root
    rootpw --iscrypted locked
    sshkey --username root "<your-key>"
    reboot
  2. Boot a system by using the RHEL 10 Boot ISO installation media.

    1. Append the Kickstart file with the following to the kernel argument:

      inst.ks=http://<path_to_your_kickstart>
  3. Press CTRL+X to boot the system.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部