linux初探

首页

应用服务器

Linux技巧

中文文档

Linux初级

服务器源代码

命令详解

Linux技术应用

Linux安全应用

Linux业界新闻

UniX技术文章

Linux编程与内核

Linux数据库

Linux服务器

Linux安装指导

Linux论坛

首页>>Linux服务器>>文章正文

使用PXE协议远程安装LINUX操作系统

OS: REDHAT AS 3.X

1 安装tftp和dhcp服务器

# rpm -ivh tftp-server-0.39-0.EL3.1.c0.i386.rpm
# rpm -ivh dhcp-3.0.1-10_EL3.i386.rpm

2 配置tftp和dhcp服务器

# vi /etc/xinetd.d/tftp
=============+==========+===========+============+============
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -u nobody -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
=============+==========+===========+============+============

# cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf
# vi /etc/dhcpd.conf
=============+==========+===========+============+============
option domain-name "systeng.net";
default-lease-time 6000;
max-lease-time 11400;
authourtative;
ddns-update-style ad-hoc;
log-facility local7;

subnet 192.168.10.0 netmask 255.255.255.0{
range 192.168.10.150 192.168.10.155;
option domain-name-servers 202.99.160.68;
option domain-name "systeng.net";
option netbios-name-servers 192.168.10.1;
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
default-lease-time 6000;
max-lease-time 11400;
filename "/pxelinux.0";
}
=============+==========+===========+============+============

3 配置支持PXE

# mkdir /tftpboot
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot

把LINUX第一张安装光盘上/image/pxeboot/initr.img和vmlinux 以及isolinux/*.msg考到/tftpboot目录下

# cd /tftpboot
# mkdir pxelinux.cfg

# vi default
=============+==========+===========+============+============
default
prompt 1
timeout 30
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label local
localboot 0
label linux
kernel vmlinuz
append initrd=initrd.img devfs=nomount ramdisk_size=9216
label text
kernel vmlinuz
append initrd=initrd.img text devfs=nomount ramdisk_size=9216
label expert
kernel vmlinuz
append expert initrd=initrd.img devfs=nomount ramdisk_size=9216
label ks
kernel vmlinuz
append ks initrd=initrd.img devfs=nomount ramdisk_size=9216
label nofb
kernel vmlinuz
append initrd=initrd.img devfs=nomount nofb ramdisk_size=9216
label lowres
kernel vmlinuz
append initrd=initrd.img lowres devfs=nomount ramdisk_size=9216
kernel vmlinuz
=============+==========+===========+============+============

4 配置NFS服务

# vi /etc/exports
/home/iso/ 192.168.10.0/24(ro,sync)

# mkdir /home/iso

拷贝安装LINUX的ISO文件到这个目录

5 需要开启的系统服务

/dhcpd/network/nfs/portmap/syslog/tftp/xinetd/

6 硬件需求

网卡上需要添加PXE远程启动芯片

相关文章

·Red Flag Linux NFS 网络安装的筹备工作
·在安装Linux过程中创建扩展分区
·哪个linux版本支持双核的一些讨论
·[推荐]不装虚拟机也能玩LINUX
·安装vmware tools
·Debian On Slug的安装笔记
·重装windows后无法进入ubuntu?看这里
·网络安装Ubuntu
·linux下 mplayer的安装笔记

热门文章

·求助,急,安装fc6后无法启动
·FC6 安装NVIDIA显卡驱动
·安装vmware tools
·Debian On Slug的安装笔记
·重装windows后无法进入ubunt
·网络安装Ubuntu
·linux下 mplayer的安装笔记
·linux下 amule的安装笔记
·fedora 5 下的qemu安装使用
·red flag 4.0安装提示硬件配

Copyright@2005 www.linuxGoo.com All Right Reserved