OVF deployment using a script from PowerShell fails with "CategoryInfo : InvalidOperation: (:) [Import-VApp], OvfNoHostNic"
search cancel

OVF deployment using a script from PowerShell fails with "CategoryInfo : InvalidOperation: (:) [Import-VApp], OvfNoHostNic"

book

Article ID: 402514

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

OVF deployment using a 3rd party script fails with "CategoryInfo : InvalidOperation: (:) [Import-VApp], OvfNoHostNic"

These are the variables used for the script.  

# Server config
#
[server]
server_port = 20002
image_expire_days = 2
instance_expire_days = 999
image_dir = /Ab1/ova_downloads/XYZ
instance_dir = .XYZ
instance_pool = XYZ

#
# vCenter config
#
[vmware]
username = [email protected]
data_center = 
resource_pool = ABC-XYZ-Resource
v_center = VCSA_FQDN
#v_host = ESXi_FQDN.local
v_host = ESXi FQDN
location = ABC-XYZ
#datastore = XYZ_DEF_ssd02
datastore = ABC_ssd01
vm_network = VLAN-LABLE-10.1.0.0/22

Cause

Deployment fails as it is unable to find VM portgroup on the ESXi

 

Resolution

Keep the VM_network in double quotes under configuration file if we have special characters included in the name.  

Example: "VLAN-LABLE-10.1.0.0/22"