VMware Cloud Community
guy314567
Enthusiast
Enthusiast
Jump to solution

OVF deployment error

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
Jump to solution

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
7 Replies
daphnissov
Immortal
Immortal
Jump to solution

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
Jump to solution

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

Gaurav_Baghla
VMware Employee
VMware Employee
Jump to solution

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
Jump to solution

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
Jump to solution

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
Jump to solution

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

Thanks

0 Kudos
uday_singh
Contributor
Contributor
Jump to solution

In my case, I was using dvs port groups and the hosts were not added to that dvs switch. I added all esxi hosts of the cluster and then it worked.

0 Kudos