用debian作FC6的安装server

1
apt-get install tftpd-hpa dhcp3-server syslinux

2
add follow item to /etc/dhcp3/dhcp3.conf

group {
next-server 192.168.1.100;
host tftpclient {
# tftp client hardware address
hardware ethernet 00:08:0d:dd:a4:d1;
filename "pxelinux.0";
}
}

3
modify /etc/default/tftpd-hpa

Defaults for tftpd-hpa
RUN_DAEMON="yes"
#OPTIONS="-l -s /var/lib/tftpboot"
OPTIONS="-l -s /tftpboot"
4
cp -av /usr/lib/syslinux/pxelinux.0 /tftpboot/
cp $cd_iso_Fedora_6/images/pxeboot/vmlinuz /tftpboot/
cp $cd_iso_fedora_6/images/pxeboot/initrd.img /tftpboot/
mkdir pxelinux.cfg
chmod 755 pxelinux.cfg

touch default

DFAULT install
PROMPT 1
LABEL install
KERNEL vmlinuz
APPEND initrd=initrd.img devfs=nomount ramdisk_size=16384


Directory layout Should look like this
./initrd.img
./pxelinux.0
./pxelinux.cfg
./pxelinux.cfg/default
./vmlinuz

5
apt-get install vsftpd
mkdir -p /home/ftp/net_install
sudo mount -o loop ~/FC-6-i386-DVD.iso /home/ftp/net_install/

相关推荐