I. Introduction II. startup option III. diskless (GRUB) installation 4, prepare the Server 5, use Kickstart unattended installation 6, Unattended Installation Complete Example 7, failure example analysis 1, Introduction: This article translated from Red_Hat_Enterprise_Linux-6-Installation_Guide-en-US. This is because you have nothing to worry about. Therefore, we need to translate chapter 28th to chapter 33 of this document. There are many contents. If the translation is incorrect, please give us some advice. In the process of translating the original text, I hope that
I. Introduction
Ii. startup options
Iii. Non-disk (GRUB) Installation
4. Prepare servers
5. Unattended Installation using Kickstart
Vi. Complete unattended installation example
VII. Fault Example Analysis
I. Introduction:
This article translated from Red_Hat_Enterprise_Linux-6-Installation_Guide-en-US.
This is because you have nothing to worry about. Therefore, we need to translate chapter 28th to chapter 33 of this document. There are many contents. If the translation is incorrect, please give us some advice.
In the process of translating the original text, I hope you can bear it.
This manual describes how to start the Red Hat Enterprise Edition Linux 6 Installer (anaconda) and how to install the Red Hat Enterprise Edition 6 operating system. It also covers advanced installation methods, for example, Kickstart unattended installation and VNC installation. At last, we will analyze and explain the common problems.
Ii. Boot Options ):
2.1 Overview
Red Hat Enterprise Linux 6 installer provides administrators with a series of functions and options. To use these options, you can
Enter the linux option.
In the image installation of RHEL6, if you want to get a boot: prompt, you can press Esc.
If you want to specify multiple installation options here, a space is required to separate the options. For example: linux option1 option2 option3...
2.2 simple options of RHEL6 Startup Menu:
Language
Display resolution
Interface Type (graphics, characters)
Installation Method
Network Settings
# Language:
For the installation program and system setting language, use the lang option to specify the language (ISO standard language encoding, Chinese is zh), and use the keymap option to specify the keyboard type.
For example, use the ISO encoding el_GR and gr to specify the Greek language and series of keyboards respectively.
Linux lang = el_GR keymap = gr
# Resolution:
Enter resolution = setting to set the display resolution. For example, set the resolution to 1024*768.
Linux resolution = 1024*768
# Text mode:
Enter linux text to enter the text installation mode
Use display = ip: 0 to allow the installation image to be forwarded to the remote host. on the remote host, you need to execute the xhost + remotehostname command.
# Upgrade anaconda (name of the Red Hat installer)
Enter linux updates to upgrade the new version of anaconda Installer
Linux updates = load the anaconda upgrade program over the network, followed by the URL address
# Specify the Installation Method
First, after the installation interface appears, press the Tab key to display the additional interface starting with> vmlinuz initrd = initrd. img. Here we can enter askmethod and press enter,
> Vmlinuz initrd = initrd. img askmethod after several steps, the installer will ask us about the installation method.
Second, you can also set the installation method and network at the boot: prompt. After the boot: prompt, you can use the repo option to specify the installation method. The specific usage is as follows:
--------------------- + ------------------------------------------------ +
| Installation Method | option format |
--------------------- + ------------------------------------------------ +
| DVD installation | repo = cdrom: device |
--------------------- + ------------------------------------------------ +
| Hard installation | repo = hd: device/path |
--------------------- + ------------------------------------------------ +
| HTTP installation | repo = http: // host/path |
--------------------- + ------------------------------------------------ +
| HTTPS installation | repo = https: // host/path |
--------------------- + ------------------------------------------------ +
| FTP installation | repo = ftp: // username: password @ host/path |
--------------------- + ------------------------------------------------ +
| NFS installation | repo = nfs: server:/path |
--------------------- + ------------------------------------------------ +
| ISO image installation | repo = nfsiso: server:/path |
--------------------- + ------------------------------------------------ +
# Set the network
Generally, the anaconda installer prompts you to set the network during the installation process, but you can still set the network through the boot: prompt input option.
Set system ip Address
Netmask sets the system Subnet Mask
Gateway
Dns sets the IP address of the DNS server
Network device used by ksdevice
The following example shows how to set the IP address of the eth0 Nic to 192.168.1.10:
Linux ip = 192.168.1.10 netmask = 255.255.255.0 gateway = 192.168.1.1 dns = 192.168.1.3 ksdevice = eth0
If you have set network parameters in the preceding method, these settings will be applied to the installation process, so that the Networking Devices and Configure TCP/IP dialog boxes will not be displayed during the installation process.
2.3 allow remote access to the installation system
You may want to display the image or character installation interface on another system. To access the character mode, you need to use telnet or ssh, which is already installed in the Red Hat Enterprise Edition system by default.
Remote access to the graphical installation interface. The client software must support the VNC protocol.
Tip: Red Hat Enterprise Linux includes a VNC client program called vncviewer. You can obtain the program by installing the tigervnc package. |
Allow remote access to the installer. You can enter two options at the prompt:
Linux vnc vncpassword = qwerty
The vnc option starts the VNC service. The vncpassword option is used to set a password for remote access. In the preceding example, the password is qwerty.
Tip: The VNC password must contain at least 6 characters. |
The following is an example (Note: The example is set randomly ).
1. Set language, keyboard, network parameters, and enable VNC. You can access the installation interface through the VNC client,
Linux ip = 192.168.0.11 netmask = 255.255.255.0 gateway = 192.168.0.1 dns = 202.106.0.20 ksdevice = eth0
2. The following information will be displayed on the installation system:
Starting VNC...
The VNC server is now running.
Please connect to 192.168.0.11: 1 to begin the install...
Starting graphical installation...
Effect
3. On a Red Hat Enterprise Linux host, choose Application> attachment> VNC Viewer, or enter the vncviewer command on the terminal,
In the VNC Server dialog box, enter the Server address and display number (the display end number is 1 and the Server address is 192.168.0.11 ).
Effect
2.4 The installer automatically connects to the VNC client:
1. When you need to install the system to automatically connect to the VNC client, you must first start the listening mode on the VNC client. In Red Hat Enterprise Linux, run the vncviewer command with the-listen option.
Start terminal and enter the following command:
Ncviewer-listen
Tip: vncviewer listens to TCP port 5500 by default. To allow other systems to remotely connect through this port, you need to set up a firewall. |
System --> Management --> firewall, select Other ports, add (add), enter 5500 at Port (s), and specify the tcp protocol.
2. After the client enables the listening mode, start to install the system and set the VNC option at the boot: prompt. We need to set the vnc, vncpassword, and vncconnect options,
The name or IP address of the client to be connected.
For example, if the system automatically connects to port 5500 of host top.mydomain.com on the installation system, you can enter the following content at the boot: Prompt:
Linux vnc vncpassword = qwerty vncconnect = shorttop.mydomain.com: 5500
2.5 remote access to the installation system interface through SSH
Allow access to the Remote Installation System in character mode. Use the ssh = 1 option:
Linux sshd = 1
In this way, you can remotely access the character interface of the installation system through the ssh software. The host name or IP address must be provided for ssh, and a password is also required.
2.6 remotely access the system installation interface through Telnet
Use the telnet Option to access the remote character interface:
Linux text telnet
2.7 log to remote host during system installation
1. By default, logs generated by the installation process are sent to the console. You can make some settings to send these messages to the host that runs the syslog service remotely.
Set remote logs. You can add the syslog option. You need to set the IP address and UDP port number of the remote log system. By default, the syslog service listens to UDP port 514.
Instance to connect to the log service of host 192.168.1.20. You can enter the following content at the boot: Prompt:
Linux syslog = 192.168.1.20: 514
2. Configure the log server
Red Hat Enterprise Linux uses rsyslog to provide syslog Service (Note: Red Hat Enterprise 5 does not use this program ). By default, rsyslog does not receive remote logs.
Warning it is best to enable the remote log access permission only in a trusted network to avoid being exploited by hackers. |
In the Red Hat Enterprise Linux system, you need to edit the/etc/rsyslog. conf file to allow remote log reception. You must have the root permission to edit the file.
Setting Method (remove the # symbol before the following two rows ):
- $ ModLoad imudp. so
- $ UDPServerRun 514
Restart the rsyslog service:
Su-c '/sbin/service rsyslog restart' will prompt you to enter the root password
Tip: the syslog service listens to UDP port 514 by default. To allow other systems to remotely connect through this port, you need to set up a firewall.
System --> Management --> firewall, select Other ports, add (add), enter 514 at Port (s), and specify udp protocol.
2.8 automatic system installation through Kicksart
With Kickstart, You can implement unattended system installation.
In the Kickstart file, set parameters in advance for the installation system. After the installation program is started, it can read the Kickstart file without entering too much information.
For Linux systems that have installed Red Hat Enterprise Edition, the installer automatically generates a Kickstart file. Generally it will be written to/root/anaconda-ks.cfg.
You can use this file to reinstall the system, or modify the content of this file to install another system.
In addition, Red Hat Enterprise Linux also includes a graphic application that can be used to create and modify Kickstart files. Use the system-config-kickstart package to install the tool.
You can use the application> System Tool> Kickstart to open the program.
The Kickstart file lists the installation parameters in text format. Each option has one line. You can use any text editor to modify the Kickstart file, or generate a custom Kickstart file through a script or program.
To use the Kickstart file to automatically install the system, you must use the ks option to specify the file name and path of Kickstart:
Linux ks = location/kickstart-file.cfg
You can use Kickstart files on mobile disks, hard disks, and network servers as follows:
--------------------- + ------------------------------------------------------ +
| Kickstart source | option format |
--------------------- + ------------------------------------------------------ +
| DVD Device | ks = cdrom:/directory/ks. cfg |
--------------------- + ------------------------------------------------------ +
| Hard disk device | ks = hd:/device/directory/ks. cfg |
--------------------- + ------------------------------------------------------ +
| Other devices | ks = file:/device/directory/ks. cfg |
--------------------- + ------------------------------------------------------ +
| HTTP service | ks = http://server.mydomain.com/directory/ks.cfg |
--------------------- + ------------------------------------------------------ +
| HTTPS service | ks = https://server.mydomain.com/directory/ks.cfg |
--------------------- + ------------------------------------------------------ +
| FTP service | ks = ftp://server.mydomain.com/directory/ks.cfg |
--------------------- + ------------------------------------------------------ +
| NFS service | ks = nfs: server.mydomain.com:/directory/ks. cfg |
--------------------- + ------------------------------------------------------ +
Obtain the Kickstart file on the Web server by specifying the URL after ks =,
If you have added the kssendmac option, the HTTP request will also send the HTTP header information to the Web server, which can be used to identify the computer.
The following line sends a request containing the header information to http://server.mydomain.com/kickstart.cgi:
Linux ks = http://server.mydomain.com/kickstart.cgi kssendmac