当前位置:网站首页>There is no one of the necessary magic skills PXE for old drivers to install!!!
There is no one of the necessary magic skills PXE for old drivers to install!!!
2022-07-03 05:47:00 【Tell a joke】
List of articles
One 、PXE Network installation
1、 What is? pxe The Internet
PXE The system runs before the operating system , It can be used to install the operating system remotely , Build diskless workstation ,PXE client Integrated in the network card boot chip , When the computer boots ,BIOS From the network card chip PXE client Call in memory to execute , obtain PXE server To configure , Show menu , Download the remote operating system to the local machine according to the user's choice .
2、PXE Components and operating processes
Components : DHCP service : Distribute ip Address 、 Locate the bootloader
TFTP service : Provide bootloader download
HTTP service ( or FTP/NFS), Provide yum Install source
The process :
( The premise is that the client network card chip must support PXE agreement , The motherboard supports booting from the NIC )
The first is for the client to dhcp The server sends a request to allocate IP Address ,dhcp The server assigns a to the client ip Address and inform BOOT SERVER The server address of , The client is going to boot server Issue a request to start the file ,boot server Provide startup file , Finally, apply to the image server for an answer file , Installing the operating system .
3、 Three advantages of network installation
① Multiple hosts can be assembled at the same time
② It can realize various services related to automatic dressing system and configuration
③ You don't need a CD 、U Disk and other physical installation media
Two 、PXE Network installation and deployment process
1、 build dhcp Server and configure services
[[email protected] ~]# yum -y install dhcp // install dhcp software package
[[email protected] ~]# vim /etc/dhcp/dhcpd.conf // Modify master profile
subnet 192.168.4.0 netmask 255.255.255.0 {
// Declare network segment
range 192.168.4.100 192.168.4.200; // Appoint dhcp Address pool range
option domain-name-servers 192.168.4.2; // Tell the client dhcp The address of the server
option routers 192.168.4.254; // gateway
default-lease-time 500; // Minimum allocation time
max-lease-time 7200; // Maximum allocation time
next-server 192.168.4.9; // Appoint PXE Server address
filename "pxelinux.0"; // Boot file name
}
[[email protected] ~]# systemctl restart dhcpd // restart dhcp service
2、 build TFTP The server
[[email protected] ~]# yum -y install tftp-server // install tftp software package
[[email protected] ~]# systemctl restart tftp // restart tftp service
[[email protected] ~]# systemctl enable tftp // Set power on self start
[[email protected] ~]# yum provides */pxelinux.0 // Find the package that provides the file
[[email protected] ~]# yum -y install syslinux // Install the queried package
[[email protected] ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot // Copy the boot file
3、 Deployment menu file
[[email protected] ~]# mkdir /var/lib/tftp/pxelinux.cfg // Create default directory for menu files
[[email protected] ~]# mount /dev/cdrom /mnt/dvd // Write protect , Mount as read-only
[[email protected] ~]# cp /mnt/dvd/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default // Copy the required menu file
3、 ... and 、 Deploy boot files and web service
1、 Deploy boot file
[[email protected] ~]# cd /mnt/dvd/isolinux
[[email protected] isolinux]# cp vesamenu.c32 splash.png /var/lib/tftpboot // Deployment graphics module and background picture
[[email protected] isolinux]# cp vmlinuz initrd.img /var/lib/tftpboot // Deploy the boot kernel and drivers
[[email protected] ~]# vim /var/lib/tftpboot/pxelinux.cfg/default // Modify the menu file
The first menu label linux Delete all of the following , Need to add again
default vesamenu.c32 // Load graphics driver
timeout 600 // Second reading time 60
menu background splash.png // Background image
menu title PXE install Centos7 // title
label linux // menu
menu label Install Centos 7 // Show Centos7
menu default // After reading seconds, this menu is selected by default
kernel vmlinuz // Loading kernel
append initrd=initrd.img // Specify the driver to start
2、 Deploy web service
[[email protected] ~]# yum -y install httpd // Install package
[[email protected] ~]# systemctl start httpd // Start the service
[[email protected] ~]# systemctl enable httpd // Set power on self start
[[email protected] ~]# mkdir /var/www/html/dvd // Create mount point
[[email protected] ~]# vim /etc/fstab // Add mount configuration
/dev/cdrom /var/www/html/dvd iso9660 defaults 0 0
Four 、kickstart Technology to achieve unattended installation
1、 What is? kickstart technology
① Provide response file in advance , Define various installations Set up
② Eliminate the interaction process , Fully automated installation
③ add to %post Script , Various configurations after installation can be performed
2、kickstart Configuration steps
[[email protected] ~]# yum -y install system-config-kickstart # Install the answer file generation software
[[email protected] ~]# system-config-kickstart // Run the command to open the graphical interface for related configuration
[[email protected] ~]# vim /root/ks.cfg // View the content of the generated answer file and modify it
[[email protected] ~]# cp /root/ks.cfg /var/www/html // Copy the answer file to http Under the default path , Realize response file sharing
[[email protected] ~]# vim /var/lib/tftpboot/pxelinux.cfg/default // Modify the menu file , Specify the answer file location
append initrd=initrd.img ks=http://192.168.4.9/ks.cfg // Specify the path to the answer file
边栏推荐
- Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Download the corresponding version of chromedriver
- 【一起上水硕系列】Day 10
- How does win7 solve the problem that telnet is not an internal or external command
- 牛客网 JS 分隔符
- Complete set of C language file operation functions (super detailed)
- "C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
- Introduction to redis using Lua script
- [written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
- 理解 YOLOV1 第一篇 预测阶段
猜你喜欢

2022.DAY592

QT read write excel -- qxlsx insert chart 5

【一起上水硕系列】Day 7 内容+Day8

Final review (Day5)
![[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation](/img/c2/991b8febd262cf9237017adc9d1221.jpg)
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation

Latest version of source insight
![[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis](/img/df/884313a69fb1e613aec3497800f7ba.jpg)
[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
![[teacher Zhao Yuqiang] index in mongodb (Part 2)](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 2)
![[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation](/img/9b/a309607c037b0a18ff6b234a866f9f.jpg)
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
![[set theory] relational closure (relational closure related theorem)](/img/6a/b6dca7abf592f8d8ab1d6aecc43381.jpg)
[set theory] relational closure (relational closure related theorem)
随机推荐
【无标题】
期末复习(Day2)
Best practices for setting up altaro VM backups
ninja: build stopped: subcommand failed.
Introduction to redis using Lua script
[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
[teacher Zhao Yuqiang] kubernetes' probe
Calculation method of AUC
ansible防火墙firewalld设置
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
Final review (Day6)
Redhat7系统root用户密码破解
2022.7.2 模拟赛
中职网络子网划分例题解析
"C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
2022.7.2day594
Source insight automatic installation and licensing