手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网站运营>建站经验>列表

Fedora Core 3 (Linux) Installation PXE

来源:互联网 作者:west263.com 时间:2008-04-16
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

You can verify that your DHCP server is working by going to your Soekris box and typing boot f0 at the comBIOS. The process will of course fail after a point because we haven't set up the other necessary things yet, but you should clearly see the IP address printed on the screen. However, you must make absolutely certain that your Soekris box is pulling the IP address from your newly configured DHCP server and NOT from an existing DHCP server on your network.

For example, if you have an existing Linksys/Netgear DHCP server on your network, your Soekris box might get its IP address from the wrong DHCP server. If that happens, your Soekris will never get past this point because it will never contact the TFTP server.

If you have multiple DHCP servers on your network, you will have to either disable the old one at least until your Soekris box gets its IP address from the proper server, or you will have to physically move your Soekris box and new DHCP server to another network.

On my own network, I have my primary day-to-day DHCP server configured so that it ignores MAC addresses that I haven't explicity entered in. So my Soekris box has no problem getting an IP address from the correct DHCP server because my other DHCP server simply ignores my Soekris box when it requests an IP address.

Again. Make certain your Soekris is getting an IP address from the correct DHCP server before you move on or else you are just going to be banging your head into the wall in frustration.

Fedora Core 3 (Linux) Installation: Services [TFTP]

The next thing to do is enable TFTP. TFTP is part of the base installation for FreeBSD and OpenBSD. But if you are using Linux as the host machine, you will have to install tftp if it wasn't part of your distribution. Gentoo users can simply use emerge.

emerge tftp-hpa

Once tftp-hpa is installed, look at your /etc/conf.d/in.tftpd file. It will look something like this:

# Config file for /etc/init.d/in.tftpd
# Remove the -l if you use [x]inetd

INTFTPD_PATH="/tftpboot"
INTFTPD_OPTS="-l -s $"

Make note of the INTFTPD_PATH entry above. In my example, it is /tftpboot. Either change your /etc/conf.d/in.tftpd so that it also says /tftpboot or write down what it says instead as you will need that next.

Now, create a directory on your file system that matches the INTFTPD_PATH entry.

mkdir /tftpboot.

Next, go to the Fedora website and choose the the best download mirror for your area. Then download initrd.img and vmlinuz from the /pub/fedora/linux/core/3/i386/os/images/pxeboot directory. Save those files to /tftpboot

The download site for Fedora doesn't have a pxelinux.0 so you will need to download it at this web site. Save the file to your home directory (or somewhere else), extract the file, and then copy (or move) it to /tftpboot. I recommend renaming it.

gunzip /home/user/pxelinux.0.gz
mv /home/user/pxelinux.0 /tftpboot/soekpxe.0

Now you have to create a configuration file that tells Linux how to boot.

mkdir /tftpboot/pxelinux.cfg

Now create a file called default inside of /tftpboot/pxelinux.cfg. We only need a few lines inside this file. They are as follows:

DEFAULT soekris
SERIAL 0 9600

label soekris
kernel vmlinuz
append vga=normal initrd=initrd.img ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw text console=ttyS0,9600n81 --

You should now start your tftpd daemon.

/etc/init.d/in.tftpd start

If you want your tftpd daemon to run all the time, you should make it part of your boot process.

rc-update add in.tftpd default

Running daemons (services) is a security risk. Every daemon running on your system is a potential "back door" into your system. I would advise against running the daemon full time unless you absolutely have to. However, if that is the case, I would recommend setting up some IP and port filtering rules to minimize access to the daemon.

Fedora Core 3 (Linux) Installation: Installing Fedore Core 3

Everything should be in place now. Reboot your Soekrix box, type boot f0 at the comBIOS to boot from the Network and then you should see something like this.

> boot f0

NSC DP83815/DP83816 Fast Ethernet UNDI, v1.03
Copyright (C) 2002, 2003 National Semiconductor Corporation
All rights reserved.

Pre-boot eXecution Environment PXE-2.0 (build 082)
Copyright (C) 1997-2000 Intel Corporation

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!