132 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
# pressed. Usually used to shut down the machine.
start on control-alt-delete
exec /sbin/shutdown -h now "Control-Alt-Delete pressed"
After that change, when the system receives a SIGNAL SHUTDOWN from z/VM, the
following message will be displayed:
The system is going down for halt NOW!
7.2.7 Turning on the NFS server
The NFS server will be needed to export the RHEL 6 installation tree and the files associated
with this book to the other virtual servers.
Enable NFS by performing the following steps:
1. Edit the empty /etc/exports file and add the following two lines:
# cd /etc
# vi exports
/nfs/rhel6 *(ro,sync)
/nfs/virt-cookbook-RH6 *(ro,sync)
These two lines will cause NFS to export:
–The /nfs/rhel6/ directory, which contains the Red Hat Enterprise Linux 6 installation.
–The /nfs/virt-cookbook-RH6/ directory, which has the files associated with this book.
2. Set the NFS server to start at boot time and for this session:
# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Starting RPC idmapd: [ OK ]
# chkconfig nfs on
3. Test mount the directories locally:
# mount localhost:/nfs/rhel6 /mnt
# ls /mnt
boot.cat RELEASE-NOTES-es-ES.html RELEASE-NOTES-pt-BR.html
EULA RELEASE-NOTES-fr-FR.html RELEASE-NOTES-ru-RU.html
...
# umount /mnt
# mount localhost:/nfs/virt-cookbook-RH6 /mnt
# ls /mnt
clone.sh README.txt vm
# umount /mnt
In this section, you have turned the NFS server on and exported the RHEL 6 installation
directory and the files associated with this book.
Commenti su questo manuale