PXE+KickStart 安装Ubuntu 10.04


名词解释
PXE
PXE(preboot execute environment)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持来自网络的操作系统的启动过程,其启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中并执行,由这个启动软件包完成终端基本软件设置,从而引导预先安装在服务器中的终端操作系统。PXE可以引导多种操作系统,如:Windows 95/98/2000/xp/2003/vista/2008,linux等。
KickStart
KickStart是一种无人职守安装方式。KickStart的工作原理是通过记录典型的安装过程中所需人工干预填写的各种参数,并生成一个名为ks.cfg的文件;在其后的安装过程中(不只局限于生成KickStart安装文件的机器)当出现要求填写参数的情况时,安装程序会首先去查找KickStart生成的文件,当找到合适的参数时,就采用找到的参数,当没有找到合适的参数时,才需要安装者手工干预。
 
准备工作
1.安装KICKSTART 
star@Ubuntu:~$ sudo apt-get install system-config-kickstart
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
 hwdata isoquery libxml++2.6-2 localechooser-data
The following NEW packages will be installed:
 hwdata isoquery libxml++2.6-2 localechooser-data system-config-kickstart
0 upgraded, 5 newly installed, 0 to remove and 277 not upgraded.
Need to get 1,139kB of archives.
After this operation, 5,063kB of additional disk space will be used.
Do you want to continue [Y/n]?
 
 
1.1在 “应用程序\系统工具”中打开kickstart
 


设置好以后,保存配置文件为ks.cfg
 
注意: package selection 选项不能选择,具体原因不详(网上查询有人说是BUG问题),这时可以直接修改ks.cfg文件添加要安装的软件包,在最后行添加%packages
如笔者的配置文件如下
 
Generated by Kickstart Configurator
#platform=x86
 
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone Asia/Chongqing
#Root password
rootpw --disabled
#Initial user
user star --fullname "star" --iscrypted --password $1$TELmpWrC$yPElivw5xnKjAGqxBi50T/
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://192.168.10.21/ubuntu
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext4 --size 256
part swap --size 1024
part / --fstype ext4 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled --ssh
#X Window System configuration information
xconfig --depth=24 --resolution=1024x768 --defaultdesktop=GNOME
%packages
@ubuntu-desktop
 
红色字体部队为手动添加的

  • 1
  • 2
  • 下一页

相关内容