In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Install and configure kickstart
To use the kickstrt installation platform, the complete architecture included is: Kickstart + DHCP+ NFS+TFTP+PXE, as can be seen from the architecture
Services that need to be installed roughly, such as dbcp, tftp, nfs, kickstart/pxe, etc.
Hang in the mirror
Mount / dev/cdrom / mnt
Df-h
1) installation of DHCP and Tftp
Yum install-y dhcp* tftp* syslinux
First configure the tftp service:
Vi / etc/xinetd.d/tftp
Disable = no
Just change disable=yes to disbale=no.
2) TFTP + PXE configuration
To install the system remotely, you first need to specify the relevant PXE kernel modules and related parameters in the TFTpboot directory
The configuration steps are as follows:
# if the system is 5.x, the default tftpboot directory has been automatically created to the / root directory
# if the system is 6.x, the default tftpboot directory is under / var/lib/, so linux 6.x needs to do soft link / root directory.
Check to see if there is a / tftpboot directory under / root, if there is no need to make a soft link
Ln-s / var/lib/tftpboot/ /
Cd / tftpboot/
Find /-name pxelinux.0
Cp / usr/share/syslinux/pxelinux.0. /
Cp / mnt/images/pxeboot/ {initrd.img,vmlinuz}. /
Copy everything to the kernel to the / tftpboot directory
Mkdir-p / tftpboot/pxelinux.cfg
Cd / tftpboot/pxelinux.cfg
Cp / mnt/isolinux/isolinux.cfg default
Chmod 777 / tftpboot/pxelinux.cfg/default
Vi / tftpboot/pxelinux.cfg/default
Add as follows:
Label Rehel6.5
Kernel vmlinuz
Append ks=nfs:192.168.56.77:/centosinstall/ks.cfg ksdevice=eth0 initrd=initrd.img
Install the nfs service
Yum install-y nfs*
Share the image file with NFs or httpd
Mkdir-p / centosinstall
Nohup cp-rf / mnt/* / centosinstall &
Echo "/ centosinstall * (rw,sync)" > > / etc/exports
Cd / centosinstall
Vi ks.cfg
[root@localhost ~] # cat ks.cfg
# platform=x86, AMD64, or Intel EM64T
# version=DEVEL
Key-skip
# Firewall configuration
Firewall-disabled
# Install OS instead of upgrade
Install
# Use NFS installation media
Nfs-server=192.168.56.77-dir=/centosinstall
# Root password
Rootpw-iscrypted $1 $9g6qXfWW$b3ofuFBbrusMKae5R5d6Z.
# System authorization information
Auth-useshadow-passalgo=sha512
# Use text mode install
Text
Firstboot-disable
# System keyboard
Keyboard us
# System language
Lang en_US
# SELinux configuration
Selinux-disabled
# Installation logging level
Logging-level=info
# Reboot after installation
Reboot
# System timezone
Timezone Asia/Shanghai
# Network information
Network-bootproto=dhcp-device=eth0-onboot=on
# System bootloader configuration
Bootloader-location=mbr
# Clear the Master Boot Record
Zerombr
# Partition clearing information
Clearpart-all
# Disk partitioning information
Part swap-fstype= "swap"-size=4096
Part / boot-fstype= "ext4"-size=200
Part /-- fstype= "ext4"-- grow-- size=1
% packages
@ admin-tools
@ base
@ core
@ development-libs
@ development-tools
@ x11
% end
Chmod 777 ks.cfg
Or use the yum install system-config-kickstart.noarch terminal to run the system-config-kickstart command image interface to generate ks.cfg files
Start nfs, tftp services
Service nfs restart
Service xinetd restart
Configure the dhcp service
Yum install-y dbcp*
Vi / etc/dhcp/dhcpd.conf
Ddns-update-style interim
Ignore client-updates
Subnet 192.168.56.0 netmask 255.255.255.0 {
Option routers 192.168.56.1
Option subnet-mask 255.255.255.0
Range dynamic-bootp 192.168.56.88 192.168.56.200
Next-server 192.168.56.77
Filename "pxelinux.0"
Allow booting
Allow bootp
}
Service dhcpd restart
Create a client client
Enter label
Rehel6.5
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.