How to Extract OVA file config parameters | Deploy OVA file using powercli

For Extracting the OVA config parameters follow below steps:


1) From vSphere PowerCLI connect to vCenter


        Connect-VIServer <Vcenter IP>  


2) Define $ovfPath as the .OVA file PATH


      $ovfPath = "c:\ranjith.ova"

3) Get Get-OvfConfiguration :$ovfConfig = Get-OvfConfiguration -Ovf $ovfPath

4) Now from $ovfConfig we can extract by converting to hash table as below.

$ovfconfigHashTable = $ovfconfig.ToHashTable()

$ovfconfigHashTable.Keys | Sort-Object

 
>> will list all the parameters.





No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...