官术网_书友最值得收藏!

Testing Auto Deploy

Now that we have deploy rules created, let's boot up an ESX Server in the subnet and check if it is able to fetch and load the image from the Auto Deploy server.

How to do it…

Start the machine intended to host the ESXi server. If everything has been configured correctly then it will PXE-boot and will start loading the VIBs into from the cache to the server's memory.

Once it is done, it will load all the VIBs to the memory and it will finish booting up the ESXi server.

As per the deploy rule, it should add the host to the Cluster-21-25 cluster. You should also, see it applying the Host Profile to the ESX Server.

How it works…

Now that we learned how to Auto Deploy an ESXi server, it will be beneficial to understand what happens in the background during the first and the subsequent server boot-up operations.

First boot

When a machine chosen to be provisioned with ESXi is powered-on, it does a PXE boot by fetching an IP address from the DHCP server. The DHCP scope configuration option 66 and 67 will direct the server to contact the TFTP server and load the bootable gPXE image and an accompanying configuration file. The configuration will direct the server to send an HTTP Boot Request to the Auto Deploy server. The HTTP Boot Request will contain the server attributes such as the IP address, MAC address, vendor details, and so on.

On receipt of the HTTP Boot Request, the Auto Deploy server will check its rule engine to see if there are any rule criteria that match with the host attributes. If it finds a corresponding rule then it would use that rule from the active rule set to load an appropriate ESXi Image from an Image Profile.

Subsequent boot

After the host is provisioned and added to the vCenter Server, the vCenter Server holds the details of the Image Profile and the Host Profile associated with the host object, in its database. Hence during a subsequent reboot, the Auto Deploy server doesn't have to leverage its Rule Engine again. Instead, it would use the information from the vCenter database.

If for whatever reason the vCenter Server is unavailable then the Auto Deploy Rule Engine is engaged to determine the Image Profile and the Host Profile to be used. Since vCenter is unavailable, the Host Profile cannot be applied to the server.

主站蜘蛛池模板: 上饶市| 双峰县| 鄯善县| 嘉义县| 沂南县| 宝兴县| 乌苏市| 伊春市| 那坡县| 陇川县| 阜康市| 桦南县| 高淳县| 高淳县| 昌图县| 连城县| 平度市| 车致| 河北省| 阿拉善左旗| 兴业县| 贞丰县| 永顺县| 通城县| 临颍县| 舒城县| 凤阳县| 高清| 荥经县| 依安县| 青河县| 松阳县| 衡山县| 怀宁县| 台南市| 永城市| 广平县| 大余县| 康马县| 锦州市| 商城县|