The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6.3.3 Copying the DVD contents<br />
Copy the contents of the ISO image to the file system. Temporarily mount it over a new<br />
directory tmp/ using a loopback device:<br />
# cd /nfs<br />
# mkdir tmp<br />
# mount -o loop rhel-server-6.0-s390x-dvd.iso tmp<br />
List the contents of the mounted ISO image:<br />
# ls tmp<br />
EULA README-pa.html RELEASE-NOTES-ml.html<br />
eula.en_US README-pt_BR.html RELEASE-NOTES-mr.html<br />
generic.ins README-ru.html RELEASE-NOTES-or.html<br />
...<br />
Make a new directory, /nfs/rhel6/, and recursively copy the contents of the DVD to it with<br />
the cp -a command. This will take a number of minutes to complete. <strong>The</strong>n unmount tmp/<br />
# cp -a tmp/* rhel6/<br />
# umount tmp<br />
Important: With RHEL 5, building a new repository <strong>for</strong> yum was necessary. With RHEL 6,<br />
this step should not be necessary as the repository on the ISO image is correct. However,<br />
this short section from the previous book is left here <strong>for</strong> reference.<br />
For the yum command to work, a common metadata repository must be built with the<br />
createrepo command. <strong>The</strong>re is a sample repository in the directory Server/repodata/.<br />
<strong>The</strong> group XML file named comps-rhel5-server-core.xml should be used to create group<br />
in<strong>for</strong>mation:<br />
# cd /nfs/rhel5/Server/<br />
# mv repodata/ repodata.orig<br />
# createrepo -g repodata.orig/comps-rhel5-server-core.xml .<br />
2495/2495 - junit-javadoc-3.8.2-3jpp.1.s390x.rpm<br />
Saving Primary metadata<br />
Saving file lists metadata<br />
Saving other metadata<br />
<strong>The</strong> newly created repodata/ directory contains the correct common medata:<br />
6.4 Enabling the NFS server<br />
<strong>The</strong> method of enabling an NFS server will differ depending upon the operating system.<br />
However, the steps are basically the same:<br />
► Export the appropriate directories.<br />
► Start the NFS server in the current run level.<br />
<strong>The</strong> directories to export with NFS are set in the /etc/exports configuration file. Export the<br />
directory /nfs/rhel6/ to make the install tree available and /nfs/virt-cookbook-RH6/ to<br />
make the files associated with this book available. First make a backup copy of the file. <strong>The</strong>n<br />
edit the original copy and add the two directories as follows:<br />
# cd /etc<br />
96 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6