利用kickstart,制作无人值守安装光盘.doc_第1页
利用kickstart,制作无人值守安装光盘.doc_第2页
利用kickstart,制作无人值守安装光盘.doc_第3页
利用kickstart,制作无人值守安装光盘.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

目地:利用kickstart,制作无人值守安装光盘作用:对于一些不熟悉linux系统安装的,用自制的无人值守安装光盘,完成整个系统的安装.1、准备安装源#mount /dev/cdrom /mnt#mkdir /data #建立自建ISO源目录#cp -a /mnt/. /data/ #注意不要用*,要用.号代替,如果用*,隐藏文件将不会拷贝2、修改启动加载设置#vim /data/isolinux/isolinux.cfgdefault test installprompt 1timeout 50display boot.msgF1 boot.msgF2 options.msgF3 general.msgF4 param.msgF5 rescue.msglabeltestinstallkernel vmlinuzappend ks=cdrom:/ks.cfg initrd=initrd.imglabel linuxkernel vmlinuzappend initrd=initrd.imglabel textkernel vmlinuzappend initrd=initrd.img textlabel kskernel vmlinuzappend ks initrd=initrd.imglabel locallocalboot 1label memtest86kernel memtestappend -1)设置默认启动为test install2)设置开机后等候5分钟3)新增的操作系统,代号为test install4)kickstat配置文件的定义,利用这个参数,可以让Anaconda从安装光盘顶层目录中的ks.cfg作为kickstart配置文件。注:kickstart的配置文件,可以放在其它目录,比如isolinux目录下,如果在顶层目录,文件名必须为ks.cfg,放在其他位置,可以自己指定.3.kickstart 配置文件的制作:可以对/root/anaconda-ks.cfg文件进行修改,生成自己所需要ks.cfg,也可以利用system-config-kickstart图形化生成#cat ks.cfg#platform=x86, AMD64, or Intel EM64T# System authorization informationinstalltextcdromlang en_US.UTF-8keyboard usrebootkey -skipauth-useshadow-enablemd5# System bootloader configurationbootloader -location=mbr# Partition clearing informationclearpart -drives=hda -initlabel# Use graphical install#graphical# Firewall configurationfirewall -disabled# Run the Setup Agent on first bootfirstboot -disableskipx# Installation logging levellogging -level=info# Use network installation# Reboot after installationreboot#Root passwordrootpw -iscrypted $1$jcKDPffl$8uVOA.SIV39O67W0HOM7G.# SELinux configurationselinux -disabled# System timezonetimezoneAmerica/New_York# Install OS instead of upgrade# X Window System configuration informationxconfig-defaultdesktop=GNOME -depth=8 -resolution=640x480part /boot -fstype ext3 -size=100 -ondrive=hdapart / -fstype ext3 -size=5000 -ondrive=hdapart swap -size=2000 -ondrive=hdapart /home -fstype ext3 -size=5000%packagesdevelopment-libsdevelopment-toolssystem-toolsadmin-tools4、产生自制安装光盘1)删除各目录中的TRANS.TBL文件#find /data -type f -name TRANS.TBL|xargs rm -f2)删除isolinux/boot.cat文件#rm /data/isolinux/boot.cat3)将isolinux/中所有文件设为可写入chmod +w /data/isolinux/*4)制作ISO#mkisofs-o /centos.iso-J -r -v -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V centos install DVD/data (光盘源目录)5)产生检验码默认情况下,系统是没有安装implantisomd5工具,需要单独安装两个rpm包:anaconda-11.1.2.195-1.el5.centos.i386.rpmanaconda-runtime-11.1.2.195-1.el5.centos.i386.rpm安装完以后,将会在/usr/lib/anaconda-runtime生成一批文件#/usr/lib/anaconda-runtime/implantisomd5 -force /centos.iso6)在linux下刻录光盘#growisofs -dvd-compat -Z /dev/cdrom=/centos.iso完成刻录!制作过程中出现的问题:1)启动过程中,提示cd-rom 没有找到解决方法:注意检查ISO顶级目录是否存在.discinfo文件,如果这个文件不存在,将导致初始化过程中找不到光盘。2)在安装包的过程中,提示一些包,不能被打开解决方法:这有可

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论