PXE network boot

Source: Internet
Author: User
Tags get ip

Http://bbs.chinaunix.net/thread-2112551-2-1.html

Http://www.cnblogs.com/wanyao/archive/2011/09/23/2186572.html

Event Playback

Because there is an old-fashioned notebook to install the system, CD-ROM disc trouble, U-disk boot is not supported, see can PXE boot, so to implement, also calculate a review of the PXE project

PIII cpu,256m Memory

Two machines

Server side: Cenots6.6-64-minimal tftp,dhcp,

Client side: PXE

Close Iptables
Chkconfig--level 2345 iptables off
Turn off SELinux
Vi/etc/sysconfig/selinux
Restarting the server
Reboot

If you install the package in HTTP mode, you do not need NFS, otherwise you will need NFS

When using HTTP mode, fill in two content

1.ping mirror.symnds.com Get IP address 63.245.196.124

2. Fill in this path/distributions/centos-vault/4.5/os/i386/

Yum Install DHCP
Yum Install Nfs-utils
Yum Install Tftp-server
Vi/etc/xinetd.d/tftp
Service xinetd Start

Cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf
Vi/etc/dhcp/dhcpd.conf
cd/var/lib/tftpboot/
mkdir pxelinux.cfg
Yum Install Mlocate
Yum Install Syslinux
UpdateDB
Locate pxelinux.0
cp/usr/share/syslinux/pxelinux.0./

Be sure to copy the 32-bit source files, at first do not know, get a 64, the result in the boot: interface, the error prompt to know. The selection is the source of the centos-4.5, the new source, some drivers may not be supported.

http://mirror.symnds.com/distributions/CentOS-vault/4.5/os/i386/CentOS/base/


Cp/mnt/isolinux/vmlinuz./
Cp/mnt/isolinux/initrd.img./
Cp/mnt/isolinux/isolinux.cfg Pxelinux.cfg/default

Change disable to No
Vi/etc/xinetd.d/tftp

Comment out these two lines
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;

Change to the following
# A slightly different configuration for A internal subnet.
Subnet 192.168.1.0 netmask 255.255.255.0 {
Range 192.168.1.6 192.168.1.8;
Option routers 192.168.1.3;
Allow BOOTP;
Allow booting;
Next-server 192.168.1.112;
FileName "/pxelinux.0";
}

FileName must be/pxelinux.0, there can be no other, otherwise the following error may appear

Stay here
Could not find kernel boot image
Boot

Normal to boot here, enter can be

Otherwise, even if the input vmlinuz, after a period of time, or the following error occurred, the final crash can not start.
Vfs:cannot Open root device "null (0)" or Unknown-block (253,0)
Please append a correct "root=" boot option; Here is the available partitions:
Kernel Panic-not syncing:VFS:Unable to mount Root fs on Unknown-block (253,0)

PXE network boot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.