Error while trying to import VM from vCenter to vCD: The operation could not be performed because the argument is invalid.
search cancel

Error while trying to import VM from vCenter to vCD: The operation could not be performed because the argument is invalid.

book

Article ID: 424345

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Attempting to import a Virtual Machine from vCenter into VMware Cloud Director (vCD) resulted in the following error: 
The operation could not be performed because the argument is invalid. A specified parameter was not correct: configSpec.numCPUs
vCenter Server task (moref: task-######) failed in vCenter Server 'vCenter-Server' (#######-####-####-########).

Environment

VMware Cloud Director 10.6.x

Cause

There is no default placement (compute) policy set for that specific Org VDC.

Resolution

A VM placement policy defines the placement of a virtual machine on a host or group of hosts. Below are the steps to check and set the default placement policy:

  • From the Provider portal primary left navigation panel, select Resources, and from the page top navigation bar, select Cloud Resources.
  • From the secondary left panel, select Organization VDCs.
  • Select an Organization VDC and click the VM Placement Policies tab.
  • Select a VM placement policy and click Set as default to make that policy appear as the default choice for the tenants during a VM and vApp creation and VM edit. If there is more than one VM placement policy published for an organization VDC, the tenant can select a different policy from the default one.

Additional Information

References:
Understanding VM Sizing, VM Placement, and vGPU Policies in VMware Cloud Director
Create a VM Placement Policy within a Provider VDC in VMware Cloud Director
Add a VM Placement Policy to an Organization VDC in VMware Cloud Director