找回密码
 注册

QQ登录

只需一步,快速开始

查看: 531|回复: 0

PXE Boot the ESXi Installer by Using PXELINUX and an isolinux.cfg PXE Configu...

[复制链接]
发表于 2012-9-20 15:44:18 | 显示全部楼层 |阅读模式
本帖最后由 demo 于 2012-9-21 07:47 编辑

PXE Boot the ESXi Installer by Using PXELINUX and an isolinux.cfg PXE Configuration File

You can PXE boot the ESXi installer using PXELINUX, and use the isolinux.cfg file as the PXE configuration file.

Prerequisites
Verify that your environment has the following components:
                        ■                     
The ESXi installer ISO image downloaded from the VMware Web site.
                        ■                     
TFTP server that supports PXE booting with PXELINUX. See About the TFTP Server, PXELINUX, and gPXE.
                        ■                     
DHCP server configured for PXE booting. See Sample DHCP Configuration.
                        ■                     
PXELINUX
                        ■                     
Server with a hardware configuration that is supported with ESXi 5.0. See the Hardware Compatibility Guide at http://www.vmware.com/resources/compatibility/search.php.
                        ■                     
Network security policies to allow TFTP traffic (UDP port 69)
                        ■                     
(Optional) Installation script, the kickstart file. See About Installation and Upgrade Scripts.
                        ■                     
Network adapter with PXE support on the target ESXi host
                        ■                     
IPv4 networking. IPv6 is not supported for PXE booting.
Use a native VLAN in most cases. If you want to specify the VLAN ID to be used with PXE booting, check that your NIC supports VLAN ID specification.

Procedure
1
Create the /tftpboot/pxelinux.cfg directory on your TFTP server.
2
On the Linux machine, install PXELINUX.
PXELINUX is included in the SYSLINUX package. Extract the files, locate the file pxelinux.0 and copy it to the /tftpboot directory on your TFTP server.
3
Configure the DHCP server.
The DHCP server sends the following information to your client hosts:
                        ■                     
The name or IP address of your TFTP server.
                        ■                     
The name of your initial boot file. This is pxelinux.0.
4
Copy the contents of the ESXi installer image to the /var/lib/tftpboot directory on the TFTP server.
5
(Optional)  For a scripted installation, in the boot.cfg file, add the kernelopt option on the next line after the kernel command, to specify the location fo the installation script.
In the following example, XXX.XXX.XXX.XXX is the IP address of the server where the installation script resides.
  1. <pre class="codeblock" id="GUID-B5B94727-3B79-45C0-90DB-5EB6FC4905C3__CODEBLOCK_C858501E271246BBB1EF37F646BAADDA">kernelopt=ks=http://<var class="varname" style="font-style:italic">XXX.XXX.XXX.XXX</var>/esxi_ksFiles/ks.cfg</pre>
复制代码
6
Copy the isolinux.cfg file from the ESXi installer ISO image to the /tftpboot/pxelinux.cfg directory.
The isolinux.cfg file contains the following code, where XXXXXX is the build number of the ESXi installer image:
  1. <pre class="codeblock" id="GUID-B5B94727-3B79-45C0-90DB-5EB6FC4905C3__CODEBLOCK_FCFC7E4F7EFD4587B544DE5F00699699">DEFAULT menu.c32
  2. MENU TITLE ESXi-5.0.0-XXXXXX-full Boot Menu
  3. NOHALT 1
  4. PROMPT 0
  5. TIMEOUT 80
  6. LABEL install
  7.   KERNEL mboot.c32
  8.    APPEND -c <var class="varname" style="font-style:italic">location of boot.cfg</var>
  9. MENU LABEL ESXi-5.0.0-XXXXXX-full ^Installer
  10. LABEL hddboot
  11. LOCALBOOT 0x80
  12. MENU LABEL ^Boot from local disk</pre>
复制代码
7
Rename the isolinux.cfg file with the MAC address of the target host machine: 01-mac_address_of_target_ESXi_host. For example, 01-23-45-67-89-0a-bc
8
Boot the machine with the network adapter.


Related tasks
PXE Boot the ESXi Installer Using gPXE
PXE Boot the ESXi Installer by Using PXELINUX and a PXE Configuration File

http://pubs.vmware.com/vsphere-5 ... B-5EB6FC4905C3.html






您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )

GMT-8, 2026-4-10 02:24 , Processed in 0.015261 second(s), 16 queries .

Supported by Weloment Group X3.5

© 2008-2026 Best Deal Online

快速回复 返回顶部 返回列表