With the release of vShere 5.0 and the introduction of the new ESXi Image Builder CLI there’s naturally been a good deal of interest in how to create and maintain custom ESXi images. Although Ι’ve always understood a “VIB” to be the basic building block of an ESXi image, Ι’ve never really understood what exactly a VIB is. However, the more Ι work with vSphere 5.0 the more Ι have come realize that to be successful Ι need more than a cursory knowledge of VIBs. It’s important to understand the trang điểm of a VIB, how VIBs are created, and how VIBs are packaged and distributed. As such Ι thought it would be good to write a blog bài viết discussing the elusive ESXi “VIB”.
VIB stands for vSphere Installation Bundle. At a conceptual level a VIB is somewhat similar to a tarball or ZIP archive in that it is a collection of files packaged into a single archive to facilitate distribution. If we look under the covers we will find that a VIB is comprised of three parts:
- A file archive
- An XML descriptor file
- A signature file
The file archive, also referred to as the VIB payload, contains the files that trang điểm the VIB. When a VIB is added to an ESXi image, the files in the VIB payload will be installed on the hosting. When a VIB is removed from an ESXi image these files are removed.
The XML descriptor file describes the contents of the VIB. Included with the description is important information about the requirements for installing the VIB, to include any dependencies, any compatibility issues, and whether the VIB can be installed without rebooting.
The signature file is an electronic signature used to verify the level of trust associated with the VIB. The acceptance level not only helps protect the integrity of the VIB, but it also identifies who created the VIB and the amount of testing and verification that has been done. There are four acceptance levels:
- VMwareCertified: VIBs created and tested by VMware. VMware Certified VIBs undergo thorough testing by VMware.
- VMwareAccepted: VIBs created by a VMware đối tác that are approved by VMware. VMware relies on đối tác to perform the testing, but VMware verifies the results.
- PartnerSupported: VIBs created and tested by a trusted VMware partners. The partners performs all testing. VMware does not verify the results.
- CommunitySupported: VIBs created by individuals or đối tác outside of the VMware partners program. These VIBs do not undergo any VMware or trusted partners testing and are not supported by VMware or its đối tác.
All VMware and partners supported VIBs must be signed by a VMware trusted authority, this helps ensure the security of the VIB by preventing any unauthorized tampering of its contents. Community supported VIBs do not need to be signed, but they are still required to have an empty signature file. Be careful when using CommunitySupported VIBs as their contents are not tested, monitored or controlled.
Coinciding with the VIB acceptance levels, ESXi Image Profiles also have an acceptance level. When the image is created it is assigned one of the four acceptance levels. Any VIBs added to the image must be at the same acceptance level or higher. This helps ensure that non-supported VIBs don’t get mixed in with supported VIBs when creating and maintaining ESXi images.
How are VIBs created and distributed?
VMware provides its đối tác with PM tools they can use to create VIBs. Once VIBs are created they are packaged into one of two user consumable formats.
Vendors can publish individual VIBs. Users can use the ESXCLI command to add and remove individual VIBs to/from their ESXi hosts. However, distributing individual VIBs has a major drawback – the only user-level tool that supports working with individual VIBs is the ESXCLI command. Cập nhật Manager and Image Builder cannot work with individual VIBs as they require additional metadata that only comes when VIBs are added to a PM bundle.
VIBs are more often distributed as part of a PM bundle. PM Bundles include additional metadata that allows the VIBs to be managed not only with the ESXCLI command, but also with Cập nhật Manager and the Image Builder CLI. PM bundles can be distributed as a ZIP archive that users download (referred to as an offline bundle or offline depot), or they can be hosted on a website server and accessed remotely using HTTP/FTP (referred to as an online bundle or online depot).
How do Ι add or remove VIBs from an active ESXi hosting?
You can use the ESXCLI command to interactively query and manage the VIBs installed on a hosting. In addition, you can also import a PM bundle into Cập nhật Manager and use it to manage the VIBs installed on the hosting.
How do Ι create a custom ESXi 5.0 image that Ι can use to install new hosts?
To create a custom ISO image that can be used to install new ESXi hosts you will need to use the ESXi Image Builder CLI. The Image Builder CLI is bundled as part of the vSphere PowerCLI and provides several commands (referred to as cmdlets) that can be used to modify the VIBs that trang điểm an ESXi Image profile, which can then be saved as ISO image.
The typical workflow involves:
- Download the default ESXi offline bundle from VMware.
- Downloading any additional offline bundle(s) from any đối tác or 3rd party vendors.
- Use the Image Builder CLI to combine the vendor VIBs together with the VIBs provided by VMware.
- Save/Export the resultant Image Profile as a custom ISO file.
- Use the custom ISO to install new ESXi hosts.
As you can see there is a lot that goes into the making of a VIB, and while most of us will never actually create a VIB it is helpful to understand the underlying components. Of particular importance are the VIB’s XML descriptor file, as this is where we find information about any dependencies or compatibility requirements, and the VIB acceptance level as this is how we now if a VIB is supported. In addition, it’s important to understand the distribution format of the VIB as different tools (ι.e. ESXCLI, Cập nhật Manager, Image Builder) have different requirements.