vi z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
8.1.1 Creating the RH6GOLD user ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
8.1.2 Adding RH6GOLD to AUTOLOG1 PROFILE EXEC. . . . . . . . . . . . . . . . . . . . . . 139
8.1.3 Preparing the RH6GOLD bootstrap files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
8.1.4 Installing RHEL 6 on the golden image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
8.1.5 Verifying the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
8.2 Configuring the golden image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
8.2.1 Configuring the automount of the installation tree. . . . . . . . . . . . . . . . . . . . . . . . 148
8.2.2 Configuring the yum command for online updates . . . . . . . . . . . . . . . . . . . . . . . 149
8.2.3 Turning off unneeded services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
8.2.4 Configuring the VNC server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
8.2.5 Setting system to halt on SIGNAL SHUTDOWN . . . . . . . . . . . . . . . . . . . . . . . . 151
8.2.6 Setting the system to log off when Linux is shut down . . . . . . . . . . . . . . . . . . . . 151
8.2.7 Configuring SSH keys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
8.2.8 Changing the order of the swap disks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
8.2.9 Other configuration changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
8.2.10 Rebooting the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
8.2.11 Verifying the changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Chapter 9. Configuring RHEL 6 for cloning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
9.1 Formatting DASD for minidisks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
9.2 Defining a new user ID for a virtual server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
9.2.1 Adding LINUX01 to AUTOLOG1’s PROFILE EXEC. . . . . . . . . . . . . . . . . . . . . . 157
9.3 Cloning a virtual server manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
9.4 Cloning a new virtual server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
9.4.1 Using the /etc/sysconfig/clone configuration file . . . . . . . . . . . . . . . . . . . . . . . . . 163
9.4.2 Creating a configuration file for LINUX01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
9.4.3 Using the clone script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
9.5 Defining three more virtual machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
9.5.1 Defining three more user IDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
9.5.2 Creating three new configuration files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
9.5.3 Adding new virtual machines to the startup process. . . . . . . . . . . . . . . . . . . . . . 171
9.5.4 Testing logging on to a new user ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
9.6 Reviewing system status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Chapter 10. Installing Linux with kickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
10.1 Configuring the cloner for kickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
10.2 Configuring the LINUX02 user for kickstart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
10.3 Kickstarting the LINUX02 user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Chapter 11. Cloning open source virtual servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
11.1 Creating a virtual web server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
11.1.1 Installing Apache RPMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
11.1.2 Testing Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
11.1.3 Turning on a firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
11.1.4 Configuring SSL for Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
11.1.5 Populating your website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11.1.6 Apache resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11.2 Creating a virtual LDAP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11.2.1 Installing the OpenLDAP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11.2.2 Configuring the OpenLDAP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
11.2.3 Adding an LDAP user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
11.2.4 Configuring an LDAP client. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
11.3 Creating a virtual file and print server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
11.3.1 Cloning a Linux virtual server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Kommentare zu diesen Handbüchern