guy314567
Enthusiast
Enthusiast

OVF deployment error

Jump to solution

Hi

Thanks for your help

We have couple environment of esx's clusters

on one  of our environment  we get  error message when deploying OVF using api

"The provided network mapping between OVF networks and the system network is not supported by any host."

we use Vcenter 6U3 with standard switch

do you have any idea where to start?

Thanks shai

1 Solution

Accepted Solutions
guy314567
Enthusiast
Enthusiast

I fixed it by creating a new portgroup and move all the vm's and ten change  the name.

Thanks

View solution in original post

0 Kudos
6 Replies
daphnissov
Immortal
Immortal

Provide some more information about your OVF and the properties it contains. It's a manual deployment via the Flex client successful or not?

admin
Immortal
Immortal

if you share some more information about error so will help to resolve the problem

Gaurav_Baghla
VMware Employee
VMware Employee

I have seen this problem when the portgroup Names are not consistent things like you have changed the Standard Switch port group's names.

Try this

Edit the interfaces and change the Connected To field to use the new name of the Standard Switch port group.

Regards Gaurav Baghla Opinions are my own and not the views of my employer. https://twitter.com/garry_14
0 Kudos
guy314567
Enthusiast
Enthusiast

Hi

manual deployment work normal

only when we work with vim dll to vcenter

its works well on other environment that we have

We are using vmware.vim v4.0.30319:

private OvfCreateImportSpecResult createOvfImportSpec(

            string vmName,

            string ovfDescriptor,

            string defaultOvfNetwork,

            string datacenterName,

            WindowsIdentity userIdentity,

            List<string> ignoredDataStores,

            string targetResourcePool,

            HostSystem hostSystem,

            ResourcePool resourcePool,

            OvfManager ovfManager)

        {

            Datacenter datacenter = FindDataCenterByName(datacenterName);

            if (datacenter == null)

                throw new Exception(string.Format("CreateMachine failed: failed to find datacenter by name {0}", datacenterName));

            Datastore dataStoreWithMostFreeSpace = FindDataStoreWithMostFreeSpace(datacenterName, userIdentity, ignoredDataStores);

            if (dataStoreWithMostFreeSpace == null)

                throw new Exception(string.Format("CreateMachine failed: failed to find accessible datastore for user {0}", userIdentity.Name));

            OvfCreateImportSpecParams importSpecParams = new OvfCreateImportSpecParams();

            importSpecParams.DiskProvisioning = OvfCreateImportSpecParamsDiskProvisioningType.thin.ToString();

            importSpecParams.EntityName = vmName;

            importSpecParams.HostSystem = hostSystem.MoRef;

            importSpecParams.Locale = "US";

            importSpecParams.DeploymentOption = string.Empty;

            importSpecParams.NetworkMapping = createNetworkMapping(ovfDescriptor, defaultOvfNetwork, ovfManager);

            //returning the import specification

            return ovfManager.CreateImportSpec(ovfDescriptor, resourcePool.MoRef, dataStoreWithMostFreeSpace.MoRef, importSpecParams);

        }

0 Kudos
guy314567
Enthusiast
Enthusiast

Thanks a lot
i didn't understand well..

on all our esxi's we have STD switch with the same portgroup name.

0 Kudos
guy314567
Enthusiast
Enthusiast

I fixed it by creating a new portgroup and move all the vm's and ten change  the name.

Thanks

View solution in original post

0 Kudos