
100 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
6.3.3 Copying the DVD contents
Copy the contents of the ISO image to the file system. Temporarily mount it on a new tmp/
directory using a loopback device:
# cd /nfs
# mkdir tmp
# mount -o loop rhel-server-6.0-s390x-dvd.iso tmp
List the contents of the mounted ISO image:
# ls tmp
EULA README-pa.html RELEASE-NOTES-ml.html
eula.en_US README-pt_BR.html RELEASE-NOTES-mr.html
generic.ins README-ru.html RELEASE-NOTES-or.html
...
Make a new directory, /nfs/rhel6/, and recursively copy the contents of the DVD to it with
the cp -a command. This will take a number of minutes to complete. Then unmount tmp/:
# cp -a tmp/* rhel6/
# umount tmp
6.4 Enabling the NFS server
The method of enabling an NFS server will differ depending upon the operating system.
However, the steps are basically the same:
Export the appropriate directories.
Start the NFS server in the current run level.
Important: With RHEL 5, building a new repository for yum was necessary. With RHEL 6,
this step should not be necessary, as the repository on the ISO image is correct. However,
this short section from the previous book is left here for reference, should you need to build
a repository.
For the yum command to work, a common metadata repository must be built with the
createrepo command. There is a sample repository in the Server/repodata/ directory.
The group XML file named comps-rhel5-server-core.xml should be used to create group
information:
# cd /nfs/rhel5/Server/
# mv repodata/ repodata.orig
# createrepo -g repodata.orig/comps-rhel5-server-core.xml .
2495/2495 - junit-javadoc-3.8.2-3jpp.1.s390x.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
The newly created repodata/ directory contains the correct common metadata.
Commenti su questo manuale