Pxe启动CentOS livecd 6.0 & Fedora 15 livecd 实战
测试平台
Pxe 服务器
dell r610 志强5640*2 48G 300G*2
操作系统 centos 5.4 64位
Pxe 客户端 服务器
1 ibm 3650M3志强5620*2 24G 146G*8
2 ibm 3550M3志强5504*2 8G 146G*2
3 dell r710 志强5620*2 12G 146G*4
操作步骤:
1) 编辑pxe服务器yum配置文件
Vim /etc/yum.repos.d/centos-livecd.repo
添加如下内容
# Name: CentOS LiveCD repository
[livecd]
name = CentOS $releasever - LiveCD
baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
enabled=1
protect=0
gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay2010
2) 安装行用组件
# yum install livecd-tools syslinux anaconda-runtime –y
3) 拷贝centos 6.0 livecd ISO镜像文件到临时目录
mkdir /pxeliivecd
cd Mkdir /pxeliivecd
Wget http://mirrors.btte.net/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-LiveCD.iso
mv CentOS-6.0-x86_64-LiveCD.iso ct60.iso
4) 生成live cd pxe 相关启动文件
# livecd-iso-to-pxeboot ct60.iso
Your pxeboot p_w_picpath is complete.
Copy tftpboot/ subdirectory to /tftpboot or a subdirectory of /tftpboot.
Set up your DHCP, TFTP and PXE server to serve /tftpboot/.../pxeboot.0
Note: The initrd p_w_picpath contains the whole CD ISO and is consequently
very large. You will notice when pxebooting that initrd can take a
long time to download. This is normal behaviour.
5) 将相关的文件拷贝到/tftpboot下面,注意包括ct60.iso。
注意:生成的default文件,必须修改下,在root前面加上live,要不不能正常启动!
LABEL pxeboot
MENU LABEL centos 6livecd boot
KERNEL vmlinuz0
APPEND initrd=initrd0.img root=live:/ct60.iso rootfstype=iso9660 rootflags=loop
用相应的方法也可以制作Fedora 15的pxe启动
启动后界面如下
参考文档 :