ksstart远程安装Linux系统

一起动服务器:

1.dhcp服务:

dhcpd.conf

max-lease-time 7200;

server-name "bootserver";

default-lease-time 600;

allow booting;

allow bootp;

subnet 192.168.138.0 netmask 255.255.255.0 {

range 192.168.138.1 192.168.138.254;

deny unknown-clients;

}

group pxe {

filename "pxelinux.0";

host testserver { hardware ethernet 00:0C:29:70:24:5B; fixed-address

192.168.138.30; }

}

2.tftp服务

service tftp

{

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

disable = no

}

/tftpboot为根目录:

(as4的第一张盘)

[root@bsvr]#mkdir /mnt/iso

[root@bsvr]#mount -o loop,ro RHEL4-U2-i386-AS-disc1.iso /mnt/iso

[root@bsvr]#cp /mnt/iso/isolinux/initrd.img /tftpboot

[root@bsvr]#cp /mnt/iso/isolinux/vmlinuz /tftpboot

[root@bsvr]#mv /tftpboot/initrd.img /tftpboot/initrd-rhel4u2-i386.img

[root@bsvr]#mv /tftpboot/vmlinuz /tftpboot/vmlinuz-rhel4u2-i386

pxelinux.0复制到TFTP服务器根目录(在syslinux包中)

/tftpboot/pxelinux.cfg/存放pxe配置文件

相关推荐