PXE + KickStart: Use the virt-install tutorial to automatically install the linux system,
Environment: Red Hat Enterprise Linux Server release 7.2 (Maipo)
Required Software: dhcp, tftp-server, system-config-kickstart, syslinux
Firewalled, selinux: Disabled
1. install and configure the DHCP service
[Root @ foundation76 ~] # Cat/etc/dhcp/dhcpd. conf
# Option definitions common to all supported networks... opt
Linux kernel compilation, management, and kickstart and boot image creationKernel Composition: Core file:/boot/vmlinuz-versionModule Management: Lsmod command: List the modules already loaded/Another way: # Cat/proc/modules-N Module Name: Show only module file pathIn the information shown:Depends: Displays the other modules that are dependent on this module;modprobe command: Implementation of module loading and unloadingLoad: modprobe mod_nameModule f
Localboot 1
Label memtest86
Kernel memtest
Append-
########## Default file default parameters ##################
5) install the Dhcp service and modify the configuration:
Yum install-y dhcp
Copy it to the directory specified by the configuration template and rename it:
Cp/usr/share/doc/dhcp-x.0.1/dhcpd. conf. sample/etc/dhcpd. conf
Modify the configuration file and add a line: filename "/pxelinux.0"
[Root @ localhost isolinux] # vim/etc/dhcpd. conf
Ddns-update-style interim;
Ignore clinet-updat
. This protocol is divided between the client side and the Server side, while the PXE client is in the ROM of the NIC. When the computer boots, the BIOS directs the PXE client into memory and then the files that are placed at the remote end by the PXE client are downloaded locally to run on the network. Running the PXE protocol requires setting up a DHCP server and a TFTP server. The DHCP server assigns an IP address to the PXE client (the host that will install the system), and because it assig
Kickstart unattended installation mdash; make a CD file and use kickstart to install it unattended. Step 1 preparation [plain] # create the rhel6 Directory [root @ larrywenopt] # mkdirrhel6 # mount the image [ro... kickstart unattended installation-make a CD file and use kickstart to install it unattended. Step 1 prep
. cfg file on the first installation CD to the pxelinux. cfg directory, and change the file to default:
Cd pxelinux. cfg
Cp/var/www/html/isolinux. cfg/tftpboot/pxelinux. cfg/default
#### Default file parameters ########
Default linux
Prompt 1
Timeout 600
Display boot. msg
F1 boot. msg
F2 options. msg
F3 general. msg
F4 param. msg
F5 rescue. msg
Label linux
Kernel vmlinuz
Append initrd = initrd. img ks = http: // 192.168.1.200/ks. cfg
Label text
Kernel vmlinuz
Append initrd = initrd. img text
La
Description
Kickstart Server System: CentOS 5.10 64-bit
IP Address: 192.168.21.128
Need to install a deployed Linux system: CentOS 5.10 64-bit
Eth0 (first network card, for extranet) IP address segment: 192.168.21.160-192.168.21.200
ETH1 (second network card, for intranet) IP address segment: 10.0.0.160-10.0.0.200
Subnet Mask: 255.255.255.0
Gateway: 192.168.21.2
dns:8.8.8.8 8.8.4
guide the terminal operating system that is pre-installed on the server. PXE can boot a variety of operating systems, such as Windows 95/98/2000/xp/2003/vista/2008, and linux.KickStartKickStart is an unattended installation method. The working principle of KickStart is to record various parameters required for manual intervention during a typical installation process and generate a file named ks. cfg file. In the subsequent installation process (not
Objective: To implement unattended installationEnvironment: centos6.5Components: Default Pxe,kickstart, Apache, TFTP, DHCPPXE:PXE (Pre-Boot execution Environment, pre-boot execution Environment)
is a boot mode, the network card must have the PXE CLIENT,PXE protocol to enable the computer to boot over the network. This protocol is divided into the client side and Server side, while the PXE client is in the ROM of the network card, when the com
Kickstart unattended rhel5 installation (graphic version)
A text version sent before 21:56:48 is now a detailed graphic version, so that everyone can implement rhel5 unattended installation.Test environment: RedHat 5.3 disable iptables and SELinuxRequired services: DHCP vsftp TFTP xinted1. Set up the yum Source:For detailed method, see: http://iminmin.blog.51cto.com/689308/162666 (using the second method, the CD image to build YUM)Ii. Install the vsft
Ubuntu16 kickstart pxe installation system, ubuntu16kickstart
This article does not describe a lot of principles, but mainly explains practices.
Lab environment:
Virtual Machine: vm
Ubuntu: 16.04 (desktop installation required), as the server
Server IP Address: 192.168.193.128
Practice:
1. Install the dhcp service
Apt-get install isc-dhcp-server-y # If the prompt E: unable to locate the software package isc-dhcp-Server, execute this command apt-get u
KickstartAutomated Installation PlatformAs the company's business continues to grow, it often needs to purchase new servers, and requires Linux to be installed in a consistent way, to facilitate future maintenance and management, and to waste more time on each manual installation of the Linux system, but wouldn't it be better if we had a way to save time?Large and medium-sized Internet companies on a procurement server hundred, if the use of manual one installation, a person must make a bad n CD
Before using cobbler to build automatic installation system, recently cobbler website http://www.cobblerd.org/inaccessible, execute command cobbler get-loaders download get PXE boot required file times 404 , even if the download succeeds, all files are 0 bytes, causing the server installation system to automatically obtain the IP address after it gets stuck. Have to find a way to solve their own, re-use Nginx DHCP TFTP Kickstart built a set of automat
and pxelinux.0 files are obtained from the DHCP server after power on and the relevant kernel boot files are loaded from the TFTP server, and the CFG configuration file of the kickstart is downloaded, the system image file location is loaded and installed, For unattended installation!(Images from the Web):3. Environmental Preparation InstructionsThis test environment description:PXE server: CentOS7.4 VIRTUALBOXT-based virtual machinesip:172.16.3.152
Recently many business systems are Linux LNMP platform installation, repeated installation makes people feel very distressed, carefully delve into the next kickstart. The environment here is Red Hat Linux 5.8 32-bit, the software package in the system disk contains kickstart.1, installation Kickstart#rpm-IVH py-*#rpm-IVH System-config-kickstart2. Create an answer
First, the preparatory work,
1. First of all, you have a DHCP server in your current environment to provide DHCP services for the clients you install, and the deployment of DHCP does not require us to repeat;
2. BIOS support PXE protocol for unattended Linux server installation;
3. The service side needs to have TFTP service, NFS service, HTTP service;
4. Installation service Kickstart, generate kickstart
# Copyfilesfromtherel. isoimagetosystem...
# copy files from the rhel.iso image to system if [ ! -b /tmp/cdrom ];then echo "make cdrom node using mknod" >> /root/ins.log # get the major number major=$(lsblk |grep rom | awk '{print $2}' |awk -F : '{print $1}') # get the minor number minor=$(lsblk |grep rom | awk '{print $2}' |awk -F : '{print $2}') echo "major=${major} minor=${minor}" >> /roo
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.