Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@asvignesh
Created May 9, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asvignesh/e981d1c2b06921d01135be036e52da6f to your computer and use it in GitHub Desktop.
Save asvignesh/e981d1c2b06921d01135be036e52da6f to your computer and use it in GitHub Desktop.
Deploy Nimesa OVA
Connect-VIServer -Server vcenter.asvignesh.in -Credential
$ovfPath = "C:\Users\asvig\Downloads\nimesa.ova"
$ovfConfig = Get-OvfConfiguration -Ovf $ovfPath
$ovfConfig.Common.ip.Value="10.10.x.x"
$ovfConfig.Common.netmask.Value="255.255.0.0"
$ovfConfig.Common.gateway.Value="10.0.0.1"
$ovfConfig.Common.dns1.Value="8.8.4.4"
$ovfConfig.Common.dns2.Value="8.8.8.8"
$ovfConfig.NetworkMapping.VM_Network.Value="VM Network"
$VMName="nimesa-base_6_222"
$VMHost="esx1.asvignesh.in"
$DiskFormat="Thin"
$Datastore ="datastore"
Import-VApp -Source $ovfpath -OvfConfiguration $ovfConfig -Name $VMName -VMHost $VMHost -DiskStorageFormat $DiskFormat -Datastore $Datastore -Confirm:$false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment