kickstart与preseed简介
- 格式:docx
- 大小:14.04 KB
- 文档页数:1
部署PXE实现Kickstart⽆⼈值守安装⼀、部署PXE远程安装服务1.PXE服务相关介绍PXE是有Intel公司开发的⽹络引导技术,⼯作在Client/Server模式(也简称CS模式),允许客户机通过⽹络从远程服务器下载引导镜像,并加载安装⽂件或整改操作系统。
2..若要搭建PXE⽹络体系,必须要满⾜⼀下⼏个前提条件客户机的⽹卡⽀持PXE协议(集成BOOTROM芯⽚),且主板⽀持⽹络引导;⽹络中有⼀台DHCP服务器以便于为客户机⾃动分配IP地址、指定引导⽂件位置;服务器通过TFTP(简单⽂件传输协议)提供引导镜像⽂件的下载3.PXE服务具备的优点规模化:同时装配多台服务器,⽆需每⼀台单独安装操作系统;⾃动化:实现服务器的⾃动安装及⾃动配置各种服务;远程实现:不需要光盘、U盘等安装介质,⽅便快捷的同时⼜可以保障服务器安全。
4.PXE服务的⼯作原理PXE(Pre-boot Execution Environment远程引导技术)是RPL (Remote Initial Program Load远程启动服务)的升级产品。
它们的不同之处为: RPL是静态路由,PXE是动态路由。
RPL 是根据⽹卡上的ID号加上其它的记录组成的⼀个帧向服务器发出请求,⽽服务器那⾥早已经有了这个ID数据,匹配成功则进⾏远程启动;PXE则是根据服务器端收到的⼯作站MAC地址(就是⽹卡号)使⽤DHCP服务给这个MAC地址指定⼀个IP地址,每次重启动可能同⼀台⼯作站有与上次启动有不同的IP,即动态分配地址以⼯作站引导过程说明PXE的原理:⼯作站开机后,PXEBootROM(⾃启动芯⽚)获得控制权之前先做⾃我测试,然后以⼴播形式发出⼀个请求FIND帧。
如果服务器收到⼯作站所送出的要求,就会送回DHCP回应,内容包括⽤户端的IP地址,预设通讯通道,及开机映像⽂件。
否则,服务器会忽略这个要求。
⼯作站收到服务器发回的相应后则会回应⼀个帧,以请求传送启动所需⽂件。
Kickstart⽂件详解1、ks.cfg⽂件介绍:ks.cfg⽂件组成⼤致分为3段命令段键盘类型,语⾔,安装⽅式等系统的配置,有必选项和可选项,如果缺少某项必选项,安装时会中断并提⽰⽤户选择此项的选项软件包段 %packages @groupname:指定安装的包组 package_name:指定安装的包 -package_name:指定不安装的包在安装过程中默认安装的软件包,安装软件时会⾃动分析依赖关系。
脚本段(可选) %pre:安装系统前执⾏的命令或脚本(由于只依赖于启动镜像,⽀持的命令很少) %post:安装系统后执⾏的命令或脚本(基本⽀持所有命令)# kickstart选项指令段的说明:【必须的选项】:1.auth或者authconfig :验证选项--useshadow或者--enableshadow启⽤shadow⽂件来验证--passalgo=sha512使⽤sha512算法2.bootloader: 指定如何安装引导程序,要求必须已选择分区、已选择引导程序、已选择软件包,如果没选择将会停⽌⽽不会询问--location=mbr 指定引导程序的位置,默认为mbr,还可以指定none或者包含bootloader的引导块所在分区--driveorder=sda 指定grub安装在哪个分区以及指定寻找顺序,--driverorder=sda sdc sdb--append="crashkernel=auto rhgb quiet"指定内核参数3.keyboard:指定键盘类型,⼀般使⽤美式键盘"keyboard us",新版的kickstart的格式有所变化,但也⽀持"keyboard us"这样的⽼格式ng:指定语⾔,如"lang en_US.UTF-8"5.rootpw:设置root⽤户的密码--iscrypted:使⽤加密密码,可以使⽤MD5,SHA-256,sha-512等。
Kickstart无人值守安装CrntOS5原理和概念:什么是PXE预启动执行环境(Preboot eXecution Environment,PXE,也被称为预执行环境)是让计算机通过网卡独立地使用数据设备(如硬盘)或者安装操作系统。
什么是KickStartKickstart是红帽创建的一种安装方法,使用kickstart,系统管理员可以创建一个文件,这个文件包含了在典型的安装过程中所遇到的问题的答案。
实现网络安装的过程是这样的:客户机PXE网络启动------>通过网际协议(IP)、用户数据报协议(UDP)、动态主机设定协定(DHCP)------->客户机获得IP------>通过小型文件传输协议(TFTP) 从TFTP Server上下载PEX引导文件------>启动引导程序进入安装界面------>根据default文件,通过超文本传送协议(HTTP)去HTTP Server下载ks.cfg文件----->根据ks.cf文件去HTTP Server下载RPM包并自动安装系统------>完成安装。
本次实验环境介绍:虚拟机:VMware Workstation 9.02 for windows服务端centOS5.8 ,IP 192.168.1.200,虚拟机网卡设置为桥接模式。
执行 PXE + KickStart安装要求:• DHCP 服务用来给客户机分配IP;• TFTP 服务用来存放PXE的相关文件,比如:系统引导文件;• HTTP 服务用来存放系统安装文件;• KickStart用来生成ks.cfg配置文件;• 带有一个 PXE 支持网卡的将安装的主机;安装步骤1.构建本地yum源[可选==如果VM不能连接到internet][root@localhost ~]# mount /dev/cdrom /media[root@localhost ~]# mv /etc/yum.repos.d/ ~[root@localhost ~]# vim /etc/yum.repos.d/local-source.repo[rhel-source]name=RHEL 6.2 Local Sourcebaseurl=file:///mediaenabled=1gpgcheck=02.安装相关软件包[root@localhost ~]# yum -y install dhcp httpd tftp-server system-config-kickstart3.创建安装源目录[root@localhost ~]# mkdir /var/www/html/centos54.挂载安装ISO安装源[root@localhost ~]# echo "/dev/cdrom /var/www/html/centos5 iso9660 \ defaults 0 0" >> /etc/fstab[root@localhost ~]# mount -a5.创建pxelinux.cfg目录[root@localhost ~]# mkdir /tftpboot/pxelinux.cfg6.拷贝PXE启动相关文件[root@localhost ~]# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/[root@localhost ~]# cp /var/www/html/centos5/isolinux/isolinux.cfg \/tftpboot/pxelinux.cfg/default[root@localhost ~]# cp /var/www/html/centos5/isolinux/* /tftpboot/7.生成KS文件(图形界面下)[root@localhost ~]# system-config-kickstart[root@localhost ~]# cp ks.cfg /var/www/html/7.1.一个KS示例文件-CentOS5.8[root@localhost ~]# cat /var/www/html/ks.cfg#platform=x86, AMD64, Intel EM64T# System authorization informationauth --useshadow --enablemd5# System bootloader configuration#key --skip #如果是RHEL需要添加这行bootloader --location=mbr# Clear the Master Boot Recordzerombr# Partition clearing informationclearpart --all --initlabel# Use text mode installtext# Firewall configurationfirewall --enabled --ssh --trust=eth0,eth1# Run the Setup Agent on first bootfirstboot --disable# System keyboardkeyboard us# System languagelang en_US# Installation logging levellogging --level=info# Use network installationurl --url=http://192.168.1.200/centos5# Network informationnetwork --bootproto=dhcp --device=eth0 --onboot=onnetwork --bootproto=dhcp --device=eth1 --onboot=on#Root passwordrootpw --iscrypted $1$TrBGQ8pS$H3SgzJS1uofc0UXlq0h.4.# SELinux configurationselinux --permissive# System timezonetimezone --isUtc America/New_York# Install OS instead of upgradeinstall# X Window System configuration informationxconfig --defaultdesktop=GNOME --depth=24 --resolution=1280x800 # Disk partitioning informationpart /boot --bytes-per-inode=4096 --fstype="ext3" --size=500 part swap --bytes-per-inode=4096 --fstype="swap" --size=16000 part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1%packages@admin-tools@base#root默认密码:1234%^&*8.指定KS文件,编辑/tftpboot/pxelinux.cfg/default 添加:append initrd=initrd.img ks=http://192.168.1.200/ks.cfg修改完成后需要:wq!强制保持退出8.1.一个default示例文件:[root@localhost ~]# cat /tftpboot/pxelinux.cfg/defaultdefault linuxprompt 1timeout 60display boot.msgF1 boot.msgF2 options.msgF3 general.msgF4 param.msgF5 rescue.msglabel linuxkernel vmlinuzappend initrd=initrd.img ks=http://192.168.1.200/ks.cfglabel textkernel vmlinuzappend initrd=initrd.img textlabel kskernel vmlinuzappend ks initrd=initrd.imglabel locallocalboot 1label memtest86kernel memtestappend -9.创建并修改DHCP配置文件[root@localhost ~]# \cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample \ /etc/dhcpd.conf9.1.一个DHCP示例文件[root@localhost ~]# cat /etc/dhcpd.confddns-update-style interim;ignore client-updates;#添加下面两行next-server 192.168.1.200; #此处为PXE服务IPfilename "pxelinux.0";subnet 192.168.1.0 netmask 255.255.255.0 {# --- default gatewayoption routers 192.168.1.1;option subnet-mask 255.255.255.0;option nis-domain "";option domain-name "";option domain-name-servers 8.8.8.8;option time-offset -18000; # Eastern Standard Time# option ntp-servers 192.168.1.1;# option netbios-name-servers 192.168.1.1;# --- Selects point-to-point node (default is hybrid). Don't change this unless# -- you understand Netbios very well# option netbios-node-type 2;#DHCP地址池:从192.168.1.130到192.168.1.253.range dynamic-bootp 192.168.1.130 192.168.1.253;default-lease-time 21600;max-lease-time 43200;}10.关闭SELinux、防火墙[root@localhost ~]# setenforce 0[root@localhost ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' \ /etc/selinux/config[root@localhost ~]# service iptables stop[root@localhost ~]# chkconfig iptables off11.启动相关服务,设置开机自启动[root@localhost ~]# service httpd restart[root@localhost ~]# service dhcpd restart[root@localhost ~]# service xinetd restart[root@localhost ~]# chkconfig tftp on[root@localhost ~]# chkconfig httpd on[root@localhost ~]# chkconfig dhcpd on[root@localhost ~]# chkconfig xinetd on[root@localhost ~]# sed -i 's/disable = yes/disable = no/' \/etc/xinetd.d/tftp======配置完成-----配置完成后用网线接入交换机,客户机设置网络启动即可实现批量自动安装。
有关足球的词汇足球: football, soccer足球场: field, pitch中场: midfield中圈: kickoff circle,center circle中线: halfway line边线: touchline底线: goal line〔点球〕发球点: penalty mark禁区: penalty area小禁区: goal area开球: Kick-off倒钩球: bicycle kick, overhead kick半高球: chest-high ball角球: corner ball, corner球门球: goal kick地面球: ground ball, grounder手触球: hand ball头球: header点球: penalty kick罚点球: spot kick罚任意球: free kick连续传球: consecutive passes鱼跃顶球: diving header盘球,带球: dribbling〔守门员〕接高球: clean catching边线传球: flank pass高吊传球: high lobbing pass凌空传球: volley pass铲球: tackle地滚球: rolling pass, ground pass 射门: shoot贴地射门: grazing shot近射: close-range shot远射: long drive未射中: mishit越位: offside传球: pass the ball接球: take a pass球传到位: spot pass拦截球: intercept掷界外球: throw-in红牌: red card黄牌: yellow card正面抢截: block tackle阻挡: body check合理冲撞: fair charge。
号型号名称图片1C956i 商用智能跑步机Treadmills2EFX 576i 商用智能全功能训练器Cross-Trainer有氧健身设备(Cardio)号型号名称图片3C846i-R 顶级商用靠背式自行车Recumbent Exercise Bike4C776i商用智能登山器Climber ExperienceSeries力量健身设备(Strength)号型号名称图片5C005坐式大腿伸展训练器Leg Extension6C007坐式大腿屈伸训练器Leg Curl7408奥林匹克水平推举椅Olympic Bench8816垂直杠铃片挂架Vertical Plate Tree9119调节式训练椅Super Bench10113可调节式下斜及腹肌椅Adj. Decline Bench11202坐式二头肌练习椅Seat Preacher Curl号型号名称图片12812双层哑铃架Dumbbell Rack -10 pair13101训练平椅Flat Bench14116靠背式练习椅Multi PurposeBench15312背肌练习椅Back Extension16702提腿及训练架Vertical KneeUp/Dip产品介绍规格:224厘米 x 89厘米 x 163厘米重量:231公斤跑步面积:153厘米 x 51厘米马达:4.0匹功率:220V,11.5A速度:1—25.5公里/小时倾斜度:0%—15%,以0.5%为上升单位手感心率:有娱乐系统:可接驳Cardio Theater 和Ipod娱乐功能电子显示参数:26个IFT驱动控制器:该控制器与交流电的4匹马达综合展示了最佳的步伐整合技术,使皮带滚动速度与步伐速度自动调整,达到一种最自然、最舒适的跑步或步行效果。
控制地面冲击系统:在保持皮带与人的步伐速度相对应的前提下,该跑步机独一无二的悬挂系统的设计减缓了冲击并且在保持反弹的情况下控制了侧面的振荡,从而减轻了人的膝盖、小腿以及背部的压力。
The QuickStart FortiNAC ServiceService OverviewWhether deploying new devices into your environment or migrating fromanother vendor or legacy technology, it’s crucial to ensure the right features and functionalities are enabled when you’re integrating a new solution. When thetechnology is deployed correctly the first time, you get the best protection with all the necessary features, meeting your strategic and time-to-value needs. FortiNAC (network access control) QuickStart is a consulting service that helps you with the deployment of your FortiNAC solution into a new environment. The service aims to assist you in accelerating the time-to-adoption of your FortiNAC solution based on predefined, standardized phases. Having completed thousands of implementations, Fortinet follows a structured process to deploy your solution. Our Professional Service experts assess your requirements and then efficiently deploy your new FortiNAC while facilitating knowledge transfer and assisting in introducing the targeted FortiNAC into your environment.Service MatrixScope and DeliverablesFortinet will work with you and perform the following tasks:Review and PlanFortinet will review the project scope and milestones and capture all the necessary details of the proposed configuration and determine the timing to accommodate any change window. The final project scope will be reviewed and mutually agreed upon with you before moving to the next stage.Business Outcomesn Day-one threat mitigation n Expert assistance n Best-practice deployment n Faster time-to-value n Timely product adoptionThe following table describes the predefined deployment options:1QUICKSTART SERVICES GUIDEThe QuickStart FortiNAC ServiceQUICKSTART SERVICES GUIDEDesign and DeployThe Fortinet team will work on the FortiNAC configuration based on the requirements agreed upon during the planning phase. This includes basic network configuration, certificate installation, high availability setup, and more. Through these steps, FortiNAC enables devices and users access to necessary resources while blocking restricted and potentially malicious access. It also minimizes risks and the spread of malware by ensuring the integrity of devices before they connect to the network. The portal configuration will also help you monitor the network on an ongoing basis, giving you the tools to easily adjust access levels based on network traffic changes.Test and ValidateFortinet will perform an initial testing of the new FortiNAC product on the production system—this may include basic health checks, high-availability checks, and functional checks prior to turning the solution live. Fortinet will then provide support during your go-live deployment. Minor revisions or fine-tuning can be made if necessary.Documentation and Knowledge TransferFortinet will deliver an “as-built” document that describes key implementation elements of the deployed configuration and baseline system check results. Fortinet will then conduct a knowledge transfer session with you so that you’re familiar with your new FortiNAC environment.Hand-off and DisengageFortinet will then hand over all the documentation, get the project sign-off, and close the project.Please contact your Fortinet partner or your sales representative to order QuickStart Services.Copyright © 2023 Fortinet, Inc. All rights reserved. Fortinet, FortiGate, FortiCare and FortiGuard, and certain other marks are registered trademarks of Fortinet, Inc., and other Fortinet names herein may also be registered and/or common law trademarks of Fortinet. All other product or company names may be trademarks of their respective owners. Performance and other metrics contained herein were attained in internal lab tests under ideal conditions, and actual performance and other results may vary. Network variables, different network environments and other conditions may affect performance results. Nothing herein represents any binding commitment by Fortinet, and Fortinet disclaims all warranties, whether express or implied, except to the extent Fortinet enters a binding written contract, signed by Fortinet’s General Counsel, with a purchaser that expressly warrants that the identified product will perform according to certain expressly-identified performance metrics and, in such event, only the specific performance metrics expressly identified in such binding written contract shall be binding on Fortinet. For absolute clarity, any such warranty will be limited to performance in the same ideal conditions as in Fortinet’s internal lab tests. Fortinet disclaims in full any covenants, representations, and guarantees pursuant hereto, whether express or implied. Fortinet reserves the right to change, modify, transfer, or otherwise revise this publication without notice, and the most current version of the publication shall be applicable.June 16, 2023 11:33 AM2200275-0-0-EN。
健身器材相关词汇Chest press machine坐姿推胸机sover machine双臂交叉训练机(大飞鸟机)Military press肩部推举机Seated row machine坐姿划船机Rotary torso machine旋转训练机Multi-hip machine臂部复合训练机Outer thigh abductor machine腿部外弯机Inner thigh adductor machine腿部内弯机Vertical leg press垂直蹬腿练习器Decline Olympic bench奥林匹克下斜椅Incline Olympic bench奥林匹克上斜椅Roman chair/back hyperextension 罗马凳Hyperextension腹背训练凳2-tier horizontal dumbbell rack 哑铃架Standard weight tree铃片架Olympic weight tree铃片架Stretch corner伸拉角Stretch zone伸拉中心Leg press腿部推蹬机Leg extension腿部伸展机Standing tricep站式肱三头肌训练器Standing bicep站式肱二头肌训练器Dip chin ab单杠提膝器Preacher curl bench 屈臂训练凳Lat复合高拉机Row复合划船机Abdominal腹部训练器Cable column复合拉伸机Hamstring低拉机Utility bench三角椅Adjustable bench可调式哑铃椅Barbell杠铃架Double tier dumbbell双层哑铃架Recumbent cycle卧式健身车Treadmills踏步机Display stem: 显示器支撑杆External circlip:Display lower: 显示器下盖Flush head press in stud: 埋头大头钉Seat carriage 座位滑动架Pozi美国百老汇舞台的专业舞者,也是知名节目主持人更是健身专家IEC Free plug, shutter snap fit: 通用插头Caplug 盖塞End plaque cap 瓷花后盖End cap 后盖Pedal leaver arm: 踏板臂Rubber bump stop: 橡胶缓冲器Crutch tip:Nutsert 螺母Toothed belt idler plate: 皮带惰轮锯齿板(保留英文)PEC machine/butterfly蝴蝶机Incline press machine上斜推胸机Bicep curl machine二头肌训练机AB machine腹部前屈机Lat machine with mid row高拉训练机Leg curl machine/seated leg curl 屈腿训练机Leg press machine腿部推蹬机Leg press/hach squat machine倒蹬/斜蹬机Pro-smith machine安全杠铃练习机Counter-balanced smith machine 史密斯机Seated calf machine坐姿小腿练习机Dip station双杠练习器Military press肩部推举机Tricep press down machine三头肌训练机Arm curl二头肌推举器Standing hip/multi-hip machine 臂部复合训练机Abdominal腹部前屈机Bi-axial chest press双轴上斜推胸机Seated chest press坐工推胸机Dual cable column双臂训练机Bicep二头肌训练机Tricep复合三头肌训练机Functional lift复合抬举机Calf小腿训练机Cable cross复合飞鸟机Flat bench扁平椅Abdominal bench腹部训练椅Single tier dumbbell单层哑铃架Squat rack挂片式深蹲架Stepper台阶器Rubber earring moulding: 橡胶基座Allen wrench 通用扳手Cord bracket 夹线板Freeweight dumbbell 负重哑铃Freeweight 负重weight training 负荷训练strength training 力量训练endurance training 耐力训练path of motion 动作路径Overhead Tricep 三头肌高位训练机Sets 套Runner assembly 转动组件Roller member pivot: 辊构件枢轴Logo wheel: 轮子(带标识)Chest press胸部推举机Shoulder press machine肩部推举机Tricep press down machine三头肌训练机Back machine背部训练机Lat pull down高拉机训练机Leg extension machine腿部伸展机Flat bench哑铃平椅Flat/incline/decline bench可调式哑铃椅Flat Olympic bench奥林匹克平椅Vertical knee raise单杠提膝器Preacher curl bench屈臂训练凳Wab board腹肌板Seated calf machine小腿训练机Lateral shoulder raise肩部侧推机Hip abductor腿部外弯机Hip adductor腿部内弯机Chest mid-row滑船机Lat high row高位滑船机Roman Chair/ back hyperextension 罗马凳45 hyperextension 腹背训练凳Vertical knee raise 单杠提膝器Upper back背肌训练机Incline trainer上斜跑步机Squat蹲式复合训练机Chest复合胸部训练器Shoulder复合肩部训练机Step负重踏步机Quadricep复合腿部训练机Plate loaded squat 挂片式深蹲机Adductor夹腿机Upright cycle立式健身车Rubber boot: 橡胶支座6.3 Amp time Lag glass body: 6.3 Amp保险丝Wiring loom: 接线器Poly “V” drive pulley: V形驱动滑轮Full dog point socket set: 专用螺丝Reps. (repetition)组Weight stack 配重片Cycling equipment健骑机/ 健身车Ribbed insert: 扶手连杆Cover center section: 盖板中心部分Countersunk socket set screw: 埋头螺丝Step hole trim L/hand: 左踏板孔饰物Step hole trim retaining block: 踏板孔饰物固定块。
RHEL6+PXE+DHCP+FTP+Kickstart无人值守安装RHCE实验室环境原理和概念:1.1 什么是PXE严格来说,PXE 并不是一种安装方式,而是一种引导的方式。
进行PXE 安装的必要条件是要安装的计算机中包含一个PXE 支持的网卡(NIC),即网卡中必须要有PXE Client。
PXE (Pre-boot Execution Environment)协议使计算机可以通过网络启动。
协议分为client 和server 端,PXE client 在网卡的ROM 中,当计算机引导时,BIOS 把PXE client 调入内存执行,由PXE client 将放置在远端的文件通过网络下载到本地运行。
运行PXE 协议需要设置DHCP 服务器和TFTP 服务器。
DHCP 服务器用来给PXE client(将要安装系统的主机)分配一个IP 地址,由于是给PXE client 分配IP 地址,所以在配置DHCP 服务器时需要增加相应的PXE 设置。
此外,在PXE client 的ROM 中,已经存在了TFTP Client。
PXE Client 通过TFTP 协议到TFTP Server 上下载所需的文件。
1.2 什么是KickStartKickStart是一种无人职守安装方式。
KickStart的工作原理是通过记录典型的安装过程中所需人工干预填写的各种参数,并生成一个名为ks.cfg的文件;在其后的安装过程中(不只局限于生成KickStart安装文件的机器)当出现要求填写参数的情况时,安装程序会首先去查找KickStart生成的文件,当找到合适的参数时,就采用找到的参数,当没有找到合适的参数时,才需要安装者手工干预。
这样,如果KickStart文件涵盖了安装过程中出现的所有需要填写的参数时,安装者完全可以只告诉安装程序从何处取ks.cfg文件,然后去忙自己的事情。
等安装完毕,安装程序会根据ks.cfg中设置的重启选项来重启系统,并结束安装。
关于dhcp在kickstart中的研究【摘要】本文首先将介绍kickstart的基本信息,简单的描述kickstart的起源,kickstart的基本组成架构,使大家对其有初步的了解,在此基础之上我们将重点研究dhcp在kickstart中的应用,主要是有关dhcp的起源简介,讲述dhcp 的应用,dhcp配置的简单实例,dhcp在kickstart中配置时的相关参数以及注意事项,dhcp应用心得。
【关键词】无人值守安装;动态主机配置协议;配置在现实的工作环境中,作为网络维护人员或者是计算机维护人员,一般情况下我们需要对服务器进行操作系统的安装,并且不是一台两台,而是十几台或是数十台,那么如果我们按照常规的方法,一台一台的安装的话,会给我们带来很多的工作量,并且工作效率也大大的降低了,因此很多的操作系统都提供了无人值守安装的功能,关于windows的无人值守安装许多相关资料都有介绍在此我就不再多讲,那么下面我们将以Red Hat 的无人值守来作为切入点进行dhcp 的相关研究。
1.无人值守安装所谓的无人值守安装就是提前将安装过程中需要的信息放入一个文件,当安装时利用相应的参数录入文件信息,就可以进行自动安装。
它使我们不必全程跟踪计算机的系统安装进程,提高了我们的工作效率。
Red Hat 的无人值守安装是通过kickstart的程序完成的,由于网络安装可以使系统管理员更加便捷的自动化安装联网计算机,因此我们一般都使用kickstart 的网络安装,它的基本架构是DHCP+TFTP+NFS/HTTP/FTP。
要执行kickstart的网络安装必须有DHCP服务器,它可以给client提供联网信息以及kickstart文件的位置。
下面我们进入DHCP 的相关介绍与研究。
2.DHCP的简介2.1 DHCP的起源DHCP是为了减轻TCP/IP网络的规划与管理的负担,解决IP地址空间不足的问题而提出,由IETF研发。
4.1.1 Kickstart 運作原理Kickstart 運作的原理很簡單。
Anaconda 允許您事先把執行安裝程式的選項,儲存於一個文字檔中。
這個檔案,我們稱為 Kickstart 設定檔 (Kickstart Con fi gure File),或者稱為自動答應檔 (Answer File)。
97•災後復原:萬一您的電腦陣亡於慘烈的故障狀況下,您必須在急短的時間內,完成災後復原的工作。
此時,您可以利用 Kickstart 安裝的技術,為這個故障的電腦,自動的進行安裝作業。
甚至可以利用 Kickstart 設定檔,在安裝的後期自動進行系統的組態與還原。
98指令區段用來定義進行自動安裝、升級時,每一個步驟要設定的項目。
與其他區段不同的是,指令區段並沒有特別的識別符號,而且一定要提供的內容。
%packages區段用來定義要安裝與升級的套件 (Package) 或套件群組 (Package Group) 之名稱。
99且詳細的說明。
與 Shell 中的指令一樣,每一個 Kickstart 指令也許可以搭配額外的參數與引數,藉以來改變或指派相關的設定。
以下列這個 Kickstart 指令為例:rootpw[--iscrypted]PASSWORD100101此外,Red Hat Enterprise Linux 5 預設會自動安裝名為 Core 與 Base 的兩個套件群組。
%packages區段裡,一行代表一個要安裝的套件或者套件群組的名稱。
如果是套件群組,請在套件群組名稱前加上@符號;在指定套件或套件群組名稱時,您也可以搭配*萬用字元;若名稱的最前方加上-符號,則代表不要安裝該套件。
例如:102用來指定在開始安裝前要執行的動作內容。
加諸於%pre後的內容,便是要執行的指令。
預設為 Shell 指令,若要執行其他語言的指令,請配合--interpreter 參數來指定該語言之直譯器 (Interpreter)。
kickstart与preseed简介
在我们手动安装操作系统时,需要回答各种提示问题,而针对某种特定应用时,这种回答完全有章可循,如果我们能在安装操作系统时将其中出现的各种问题的应答内容提前写好,那么整个操作系统的安装就可以自动完成。
kickstart是Red Hat公司针对自动安装Red Hat、Fedora与CentOS这3种同一体系
的操作系统而制定的问答规范。
它一般会以.cfg作为文件后缀名,不仅可以自动应答一些
简单问题,还可以指定操作系统需要安装的各种软件包,更可以在操作系统完装完成后自动执行一些脚本,这些脚本可以让我们直接配置系统。
通常,kickstart配置文件通过命令行工具system-config-kickstart生成。
当然,我们更喜欢在CentOS图形界面环境下生成用于定制操作系统安装的配置文件。
preseed则是Debian/Ubuntu操作系统自动安装的问答规范,同样可以预定义Ubuntu
如何安装,其配置更多通过手动处理。