Installing the VIB to a Running ESXi Host To install the custom VIB to a running ESXi host follow these steps: Copy the to the vSphere host: # scp MyRule.ZIP root:/tmp Set the host’s Acceptance to CommunitySupported # esxcli -s esx01.company.local software acceptance \ set –level=CommunitySupported Install the VIB # esxcli -s esx01.company.local software vib install \ -d /tmp/MyRule.ZIP -n MyRule Adding the Custom VIB to an Image Profile Use the ESXi Image Builder CLI to add the custom VIB to a custom image profile. Copy the depot to a host where you have PowerCLI installed. MyRule.zip Start PowerCLI and connect to the vCenter Server: PowerCLI C:\> Connect-VIServer <ip> Import the ESXi 5.0 software depot (from the ESXi 5.0 bundle): PowerCLI C:\> Add-EsxSoftwareDepot Import the MyRule.zip software depot: PowerCLI C:\> Add-EsxSoftwareDepot C:\ESXi-Depot\MyRule.zip Create a new image profile. In this example I am creating a new image profile by cloning one of the default image profiles included with the ESXi 5.0 offline depot. Note that because I’m adding a custom VIB I need to set the acceptance level to “CommunitySupported”. PowerCLI C:\> New-EsxImageProfile ESXi-5.0.0-469512-standard –CloneProfile –Name MyCustomProfile Custom –Vendor –AcceptanceLevel “CommunitySupported” Add the custom VIB: PowerCLI C:\> Add-EsxSoftwarePackage MyCustomProfile –ImageProfile MyCustomRule
Installing the VIB to a Running ESXi Host To install the custom VIB to a running ESXi host follow these steps: Copy the to the vSphere host: # scp MyRule.ZIP root:/tmp Set the host’s Acceptance to CommunitySupported # esxcli -s esx01.company.local software acceptance \ set –level=CommunitySupported Install the VIB # esxcli -s esx01.company.local software vib install \ -d /tmp/MyRule.ZIP -n MyRule Adding the Custom VIB to an Image Profile Use the ESXi Image Builder CLI to add the custom VIB to a custom image profile. Copy the MyRule.zip depot to a host where you have PowerCLI installed. Start PowerCLI and connect to the vCenter Server: PowerCLI C:\> Connect-VIServer <ip> Import the ESXi 5.0 software depot (from the ESXi 5.0 bundle): PowerCLI C:\> Add-EsxSoftwareDepot Import the MyRule.zip software depot: PowerCLI C:\> Add-EsxSoftwareDepot C:\ESXi-Depot\MyRule.zip Create a new image profile. In this example I am creating a new image profile by cloning one of the default image profiles included with the ESXi 5.0 offline depot. Note that because I’m adding a custom VIB I need to set the acceptance level to “CommunitySupported”. PowerCLI C:\> New-EsxImageProfile –CloneProfile ESXi-5.0.0-469512-standard –Name MyCustomProfile –Vendor Custom –AcceptanceLevel “CommunitySupported” Add the custom VIB: PowerCLI C:\> Add-EsxSoftwarePackage –ImageProfile MyCustomProfile MyCustomRule
vibauthor-how-to-v0.1.docx