VMware Cloud Community
ajkbond
Contributor
Contributor
Jump to solution

OVA deployment Powercli

i can deploy OVA using powercli  but how to add distributed portgroup to it and chnage source to a path inside datastore? 

Import-VApp -Name test -Datastore Datastore-xxx -VMHost serverxxx -Source F:\123.ova -DiskStor
ageFormat Thick

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

A path inside a Datastore is currently not supported.

If the OVA doesn't have a property to set the Portgroup, you will have to connect the imported VM after the Import-VApp


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

A path inside a Datastore is currently not supported.

If the OVA doesn't have a property to set the Portgroup, you will have to connect the imported VM after the Import-VApp


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
ajkbond
Contributor
Contributor
Jump to solution

oh ok, i tried with OVF tool and it do support from local datatsore using http link.

 

OVA support  network configuration, what command to add ?  saw this in some article but getting error value dont exit 

-OvfConfiguration $ovfConfig

$ovfConfig.NetworkMapping.Network.Value = vlan111

 

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Like I said earlier, if that OVA is not created with the option that allows you to specify a Portgroup, that "Config" property is not there.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
ajkbond
Contributor
Contributor
Jump to solution

Thanks LucD!

Reply
0 Kudos