Skip to content

Building Images for RHEL

danmacpherson edited this page Feb 5, 2013 · 1 revision

Most of the template examples depict Fedora. However, for those with access to RHEL ISOs or mirrors, building RHEL guests is also supported.

Template Example: Building RHEL 6.1 from an ISO

This example assumes that you have downloaded a RHEL DVD ISO (from your RHN account) in /tmp/rhel-server-6.1-i386-dvd.iso. (The file must be accessible via a URL, file:// is valid, or you could reference it on an internal mirror.)

 <template>
  <name>Enter a template name here</name>
  <description>RHEL 6.1 i386</description>
  <os>
   <name>RHEL-6</name>
   <version>1</version>
   <arch>i386</arch>
   <rootpw>changeme</rootpw>
   <install type="iso">
    <iso>
     file:///tmp/rhel-server-6.1-i386-dvd.iso
    </iso>
   </install>
  </os>
 </template>

Template Example: Building RHEL 6.1 with the RHEV-agent from a URL

This example assumes that you have downloaded a RHEL DVD ISO (from your RHN account) and presented it via Apache to the host system which is executing the build. Note that simply copying the packages and running a createrepo will not work (you will encounter 404 errors). It is necessary to have the full installation tree, specifically including the .treeinfo and images directory of the installation which are used by Aeolus during the build process.

<template>
  <name>rhel6_1_x86_64_with_rhev-agent</name>
  <os>
    <name>RHEL-6</name>
    <version>1</version>
    <arch>x86_64</arch>
    <rootpw>password</rootpw>
    <install type='url'>
       <url>http://system/rhel61/</url>
    </install>
  </os>
  <description>rhel 6.1 x86_64 template with rhev v3.0 agent pkg</description>
  <repositories>
    <repository name="rhev-agent">
      <url>http://system/rhev-agent/</url>
      <signed>false</signed>
    </repository>
    <repository name="rhel-6.2">
      <url>http://system/rhel62/</url>
      <signed>false</signed>
    </repository>
  </repositories>
  <packages>
    <package name='rhev-agent'/>
  </packages>
</template>

Note the RHEL 6.2 repository is required to satisfy a dependency within the rhev-agent package (selinux-policy).

Clone this wiki locally