27.12.2012 Views

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

dev/dasda1 on / type ext4 (rw)<br />

proc on /proc type proc (rw)<br />

sysfs on /sys type sysfs (rw)<br />

devpts on /dev/pts type devpts (rw,gid=5,mode=620)<br />

tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")<br />

/dev/mapper/system_vg-opt_lv on /opt type ext4 (rw)<br />

/dev/mapper/system_vg-tmp_lv on /tmp type ext4 (rw)<br />

/dev/mapper/system_vg-usr_lv on /usr type ext4 (rw)<br />

/dev/mapper/system_vg-var_lv on /var type ext4 (rw)<br />

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br />

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)<br />

# df -h<br />

Filesystem Size Used Avail Use% Mounted on<br />

/dev/dasda1 504M 146M 334M 31% /<br />

tmpfs 498M 0 498M 0% /dev/shm<br />

/dev/mapper/system_vg-opt_lv<br />

372M 17M 337M 5% /opt<br />

/dev/mapper/system_vg-tmp_lv<br />

372M 17M 337M 5% /tmp<br />

/dev/mapper/system_vg-usr_lv<br />

1.5G 789M 647M 55% /usr<br />

/dev/mapper/system_vg-var_lv<br />

372M 56M 298M 16% /var<br />

This shows that the three swap spaces are active, all file systems are about half full or less.<br />

8.2 Configuring the golden image<br />

Now you want to customize the golden image as much as possible be<strong>for</strong>e cloning. <strong>The</strong><br />

following high level steps are recommended though you may add or omit some steps:<br />

► “Configuring automount of install tree” on page 138<br />

► “Configuring yum <strong>for</strong> online updates” on page 139<br />

► “Turning off unneeded services” on page 140<br />

► “Configuring the VNC server” on page 140<br />

► “Setting system to halt on SIGNAL SHUTDOWN” on page 140<br />

► “Setting the system to logoff when Linux is shut down” on page 141<br />

► “Configuring SSH keys” on page 141<br />

► “Changing the order of the swap disks” on page 142<br />

► “Rebooting the system” on page 142<br />

► “Verifying the changes” on page 143<br />

8.2.1 Configuring automount of install tree<br />

You will now configure the Linux automount service to mount the installation tree on demand.<br />

<strong>The</strong> automounter will automatically mount a remote directory when it is accessed, and<br />

automatically unmount it after a period of inactivity.<br />

To configure automount, per<strong>for</strong>m the following steps:<br />

► Make a backup copy of the file /etc/auto.master, then add the following line at the<br />

bottom:<br />

138 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!