ajkbond
Contributor
Contributor

OVA deployment Powercli

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
4 Replies
LucD
Leadership
Leadership

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

0 Kudos
ajkbond
Contributor
Contributor

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

 

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
ajkbond
Contributor
Contributor

Thanks LucD!

0 Kudos