Use TFTPD32 to build a PXE server-download kernel and INITRD files from FTP server

Source: Internet
Author: User

Essential Tools

tftpd32-4.5.0

syslinux-6.0.3

VMware Workstation

The above tools can be downloaded from the Internet, the version can be used up-to-date.

Detailed steps

1, create a folder such as d:/pxe_boot/, decompression syslinux source package, in the source package search Find Ldlinux.c32, lpxelinux.0, pxelinux.0 and copied to the d:/pxe_boot/directory.

2, create a pxelinux.cfg folder under D:/pxe_boot/, here to put similar to isolinux.cfg configuration file, in fact, can copy the system image isolinux.cfg, renamed to Default.

3. Open tftpd32 with administrator privileges, as shown in the configuration. Where the startup file can be pxelinux.0 or lpxelinux.0, the difference between lpxelinux.0 supports downloading kernel files from FTP or HTTP server vmlinuz and INITRD files.

4, configure the TFTP service as shown, mainly to modify the base directory for D:/pxe_boot.

5, modify the D:/pxe_boot/pxelinux.cfg/default file startup items, mainly modify the kernel parameter specify Vmlinuz, append parameter initrd FTP address, as shown below.

Display boot.msgprompt 1timeout 5default Installlabel quit localboot 0label install kernel append in Itrd=ftp://10.0.0.2/initrd.lzlabel Rescue Kernel vmlinuz Append rescue initrd=initrd.img

The above boot.msg is a text file that will be displayed on the screen at startup, not required, and boot.msg should be placed under d:/pxe_boot/.

The following can be created in VMware Virtual machine, virtual network card is best set to bridge mode, my computer has two network cards, a wireless network card is connected to WiFi, a wired network card and another laptop wired network card directly connected to form a local area network, so I put my virtual machine Nic Bridge to the wired network card, The tftpd32 DHCP service then binds to the wired network card, which does not affect the distribution of the wired IP. Then I set up an FTP server in my notebook to modify the installation system of the relevant files.

My PXE server address is 10.0.0.1,FTP Server 10.0.0.2, the IP of the virtual machine is assigned by the DHCP server on the TFTPD32 on the 10.0.0.1.

In fact, the FTP server can also be placed on the 10.0.0.1 above, this does not affect.

Use TFTPD32 to build a PXE server-download kernel and INITRD files from FTP server

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.