Unattended installation of Linux systems

Source: Internet
Author: User
Tags gtk

Project Content : Using Network Installation technology , combined Kickstart Program Scripts , Implementing Unattended Installations Linux Operating System

Purpose of the project : Through this technology , complete unattended installations of hundreds of server systems in batches , save a lot of time.

1 , First, configure it. pxe+dhcp+vsftp the Environment , let's start with a graphical way of generating a Kickstart file.

2 , Install graphical Kickstart Package

[email protected] ~]# Yum install system-config-kickstart-y

3 , Run Graphical System-config-kicstart

[Email protected] ~]# System-config-kickstart

-------------------------------------------------------------------------------------------------------------

Error ----- "made a foolish and extremely SB Error: I am a remote SSH go up to do, so the error

[Email protected] ~]# System-config-kickstart

Traceback (most recent):

File "/usr/bin/system-config-kickstart", line up, in <module>

from Meh.ui.gui import graphicalintf

File "/usr/lib/python2.6/site-packages/meh/ui/gui.py", line, in <module>

Import GTK

File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line @ <module>

_init ()

File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line-up, in _init

_gtk.init_check ()

Runtimeerror:could not open Display

Use System-config-kickstart The following interface appears after , Configure the appropriate options as required.


recommended to select " performing the installation in text mode "


Note : when partitioning , Be sure to understand the hard disk capacity of preinstalled machines , and zoning after zoning planning is done

we're under the experimental environment . , The simplest partition is divided.


Add a network device eth0 Use DHCP type


Disabled SELinux, Disabling Firewalls


If you need to install a graphical environment, select , The settings agent is then enabled


Select the required Packages

scripts that are automatically executed before installation , not necessary. , not set here for the time being , We'll edit by hand later .


after all configuration is complete , the configuration file ks6.cfg saved to /var/ftp under Standby

[email protected] ~]# cat/var/ftp/ks.cfg ----- view the generated files , It's easy to read according to the notes .

#platform =x86, AMD64, or Intel EM64T

#version =devel

# Firewall Configuration

Firewall--disabled

# Install OS instead of upgrade

Install

# Use Network Installation

URL--url= "Ftp://172.17.10.100/rhel6"

# Root Password

ROOTPW--iscrypted $1$KJYICIQI$N5YHTRWRR1MDRL2A7Q2BD1

# Network Information

Network --bootproto=dhcp--device=eth0--onboot=on

# System Authorization Information

Auth --useshadow--passalgo=sha512

# Use text mode install

Text

# System Keyboard

Keyboard US

# System Language

Lang ZH_CN

# SELinux Configuration

SELinux--disabled

# Do not configure the X Window System

Skipx

# Installation Logging Level

Logging--level=info

# Reboot after installation

Reboot

# System TimeZone

TimeZone--ISUTC Africa/abidjan

# System Bootloader Configuration

Bootloader--location=mbr--password= "AIXOCM"

# Partition Clearing Information

Clearpart--all

# Disk Partitioning Information

Part swap--fstype= "swap"--size=5122

Part/--fstype= "EXT4"--size=5000

%packages

@backup-client

@base

in the Kickstart used in the file %packages command to list the packages you want to install , installed here Base Group Packages

%end

in order to enable customers to PXE Auto-Download when booting Kickstart file , must be modified pxelinux.0 the configuration file

/var/lib/tftpboot/pxelinux.cfg/default

[Email protected] ~]# Vim/var/lib/tftpboot/pxelinux.cfg/default

[Email protected] ~]# Cat/var/lib/tftpboot/pxelinux.cfg/default

Default Vesamenu.c32

。。。。。。

Label Linux

Menu label ^install rhel6

Menu Default

Kernel vmlinuz

Append ks=ftp://172.17.10.100/ks6.cfg initrd=initrd.img

Label Local

menu label Boot from ^local Drive

localboot 0xffff

Client testing:

This is the normal unattended installation interface:


my error is as follows :


my error is file name and saved in /var/ftp the file name is not the same ----- too careless.

Also be aware of file permissions issues

a Good Article , There are some common error problems

Http://wenku.baidu.com/link?url=n0rg0bsM5z0oTLviV1OE-bdrVEb6_ Up1ajcgzobaytbjm9cvonaor8g7tx8sccptexvtcjbmto4euzr67xwpx3pnxhadgmbb4qmse2_wati

Note : after installation is complete , You should change the first boot to a hard disk , Otherwise it will continue to reload.


Unattended installation of Linux systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.