Red Hat SATELLITE 5.1.0 RELEASE NOTES Manual de instalación Pagina 144

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 143
126 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
Make a backup copy of the file /etc/auto.master, then add the following line at the bottom:
# cd /etc
# cp auto.master auto.master.orig
# vi /etc/auto.master // add one line at the bottom
...
#
+auto.master
/nfs /etc/auto.controller
The new line specifies that the file system mounted beneath the directory /nfs/ will be
configured in the file /etc/auto.controller. Now create the file /etc/auto.controller, and
add one line which points to the RHEL 5.2 install tree that is exported from the controller:
# vi /etc/auto.controller
rhel5.2 -ro,hard,intr <9.12.5.30>:/nfs/rhel5.2
This line specifies that beneath /nfs/ (in auto.master), when the directory rhel5.2/ (field 1)
is accessed, the automounter will use the specified options (field 2) to mount the directory
(field 3).
Create the /nfs/ directory. Restart the autofs service to pick up the new configuration. Then
list the contents of the /nfs/rhel5.2/ directory. Even though this directory does not exist as a
local file system, it is automatically mounted when referenced:
# mkdir /nfs
# service autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]
# ls /nfs/rhel5.2
EULA README-or.html RELEASE-NOTES-ja.html
eula.en_US README-pa.html RELEASE-NOTES-ko.html
...
8.2.3 Configuring yum for online updates
You will now configure yum so it can install RPMs from the automounted install tree. Note that
the configuration is identical to the controller because in both instances, the install tree is in
the directory /nfs/rhel5.2/. However, on the controller this directory is local, but on the
golden image (and later, the clones), the directory is automounted. Create a file named
rhel5.2.repo in the /etc/yum.repos.d directory:
# cd /etc/yum.repos.d
# vi rhel5.2.repo
[RHEL5.2]
name=Red Hat Enterprise Linux 5.2
baseurl=file:///nfs/rhel5.2/Server
You must import the RPM GPG key so that yum knows you are installing official Red Hat
packages. The Red Hat GPG key is located in the install tree. Import the key with the
following command:
# rpm --import /nfs/rhel5.2/RPM-GPG-KEY-redhat-release
Vista de pagina 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 267 268

Comentarios a estos manuales

Sin comentarios