Create a PXE startup in VMLinux

Source: Internet
Author: User
We all know how to use a USB flash drive to create boot guide, but most people may not know the concept of PXE boot. Of course, I did not know it before. I have just come into contact with it, through repeated exercises, I finally learned how it works. Here I made a small experiment to record my study notes. Experimental Platform: One VMLinux hairstyle version is CentOS5.5 [root

We all know how to use a USB flash drive to create boot guide, but most people may not know the concept of PXE boot. Of course, I did not know it before. I have just come into contact with it, through repeated exercises, I finally learned how it works. Here I made a small experiment to record my study notes.

Experimental Platform: One VM Linux adopts CentOS5.5.

[Root @ localhost ~] # Yum-y install dhCpTFtp-Server // install required suites

[Root @ localhost ~] # Vi/etc/dhcpd. conf

DdNs-upDate-Style interim;

Ignore client-updates;

 

SuBnet 192.168.1.0 netmask 255.255.255.0 {

 

# --- Default gateway

Option routers 192.168.1.1;

Option subnet-mask limit 255.0;

 

Option nis-domain "domain.org ";

Option domain-name "domain.org ";

Option domain-name-servers 202.102.240.65;

 

OptionTime-OffSet-18000; # Eastern Standard Time

 

Range dynamic-bootp 192.168.1.128 192.168.1.254;

Default-lease-time 21600;

Max-lease-time 43200;

 

NExT-server 192.168.1.193;

FileName "/grldr"; // The focus is here

}

[Root @ localhost ~] # Vi/etc/xinetd. d/Tftp// Enable tftp-server

Service tftp

{

Socket_type = dgram

ProtoCol= Udp

Wait = yes

User = root

Server =/usr/sbin/in. tftpd

Server_args =-s/tftpboot

Disable = no

Per_source = 11

CPIs = 100 2

Flags = IPv4

}

The next step is to create the Startup menu.

[Root @ localhost ~] #Cd/Tftpboot/

[Root @ localhost tftpboot] # wget http://download.gna.org/grub4dos/grub4dos-0.4.4.Zip

[Root @ localhost tftpboot] #UnzipGrub4dos-0.4.4.zip

[Root @ localhost tftpboot] # cp grub4dos-0.4.4/menu.LsT. // This is the configuration file of the menu option.

[Root @ localhost tftpboot] # cp grub4dos-0.4.4/grldr.

[Root @ localhost tftpboot] #Rm-Rf grub4dos-0.4.4 * // remove unnecessary files

[Root @ localhost tftpboot] #MkdirTools/

Below are the settings for the boot menu file. The settings here are very important. The options here are the options in the menu during system boot, including. img,. IMA ...... And so on. The path here is./Tools.

[Root @ localhost tftpboot] # vi menu. lst

# This is a sample menu. lst file. You shoshould make some changes to it.

# The old install method of booting via the stage-files has been removEd.

# Please install GRLDR boot sTrAp code to MBR with the bootlace.com

# Utility under DOS/Win9x or Linux.

 

Color blue/green yellow/red white/magenta

Timeout 30

Default/default

# Timeout 30

# Splashimage/map.gz

Title [01] pmagic Linux // pxe linux System

Clear

Kernel/pmagic/bzImage edd = off noapic load_ramdisk = 1 prompt_ramdisk = 0 rw loglevel = 0Sleep= 10 vga = 791 livemedia noEjectKeymap = us

Initrd/pmagic/initramfs

 

Title [02] GHOST v8-11

Clear

Map -- mem/Tools/GHOST. img (fd0)

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

 

Title [03] Dwarf DOS V5.3

Clear

Map -- mem/Tools/ARDOS53.IMG (fd0)

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

 

Title [04] hy dos V27

Clear

Map -- mem/Tools/hy27.IMG (fd0)

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

 

Title [05] MaxDOS V7.0

Clear

Map -- mem/Tools/MaxDOS9_Setup.exe (fd0)

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

Boot

Title [06] DiskGenius V3.2.2010

Map -- mem/Tools/DG. IMG (fd0)

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

 

Title [07] Clear Win2K/XP/2003 PassWord

Clear

Map -- mem/Tools/PASSWORD. IMA (fd0) // here is the DOS tool for changing the system PASSWORD

Map -- hook

Chainloader (fd0) + 1

Rootnoverify (fd0)

Boot

 

Title [08] Boot Disk

Map (hd0) (hd1)

Map (hd1) (hd0)

Root (hd1, 0)

Chainloader (hd1, 0) + 1

Boot

Rootnoverify (hd1, 0)

Chainloader + 1

 

Title [09] Reboot

Clear

Reboot

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.