Error "'Conserve space when possible is not supported" when trying to import a VM from vCenter to Cloud Director
search cancel

Error "'Conserve space when possible is not supported" when trying to import a VM from vCenter to Cloud Director

book

Article ID: 370235

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Importing a VM from vCenter to vCD fails with an error:

The operation is not supported on the object.

  • From VMware Cloud Director logs/opt/vmware/vcloud-director/logs/vcloud-container-debug.log,  the following entries are seen:

message = 'Reserve space' to 'Conserve space when possible' is not supported. 'Conserve space when possible' allocation type to 'Fully initialized' and 'Reserve space' to 'Fully initialized' are supported.

Environment

VMware Cloud Director for Service Provider 10.x

Cause

This issue occurs when VMFS rules is set to "Conserve space when possible" under vCenter's VM Storage Policy.

Resolution

  1. Go to vCenter UI click Menu > Policies and Profiles.
  2. Under Policies and Profiles, click VM Storage Policies and edit.
  3. Under VMFS rules > Placement > Volume allocation type, change the value from "Conserve space when possible" to "fully initialized" for the respective VMFS Datastore.

  4. Then import the VM from vCenter to VCD.

Additional Information

Complete error stack can be found below:

2024-06-18 06:00:12,342 | DEBUG    | Backend-activity-pool-303 | ContainerState                 | Item 'f4XXXXXX-ac4e-XXXX-XXXX-XXXXXXXXXXXa7' requires 96,256 MB on container 'moref://ceXXXXXX-XXXX-XXXX-XXXXXXXXXX81/Datastore#datastore-73' | requestId=59XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXa7,request=POST https://vcdfqdn/api/admin/extension/vimServer/ceXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX81/importVmAsVApp,requestTime=1718690410179,remoteAddress=##.##.##.##:61897,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+json;version 38.0.0-alpha vcd=b5XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX15,task=13XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXed activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:13XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXed) activity=(com.vmware.vcloud.vdc.impl.ImportSingletonVAppActivity,urn:uuid:73XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX09) activity=(com.vmware.vcloud.vdc.impl.CopyContentsActivity,urn:uuid:f7XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX9f)

2re.ssdc.util.exceptions.NotSupportedException: The operation is not supported on the object.

        at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:291)

        at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:497)

        at com.vmware.vcloud.val.taskmanagement.TaskWaiterInvRecord.CheckForError(TaskWaiterInvRecord.java:176)

        at com.vmware.vcloud.val.internal.impl.VcVimHandle.waitForTask(VcVimHandle.java:122)

        at com.vmware.vcloud.val.internal.impl.ReconfigureVmActivity$ReconfigureVmInVcPhase.reconfigureVm(ReconfigureVmActivity.java:279)

        at com.vmware.vcloud.val.internal.impl.ReconfigureVmActivity$ReconfigureVmInVcPhase.invoke(ReconfigureVmActivity.java:176)

        at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)

        at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)

        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

        at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: (vmodl.fault.NotSupported) {

   faultCause = null,

   faultMessage = (vmodl.LocalizableMessage) [

      (vmodl.LocalizableMessage) {

         dynamicType = null,

         dynamicProperty = null,

         key = com.vmware.vim.vslm.vStorageObjectManager.allocationTypeConversionNotSupportedNew,

         arg = (vmodl.KeyAnyValue) [

            (vmodl.KeyAnyValue) {

               dynamicType = null,

               dynamicProperty = null,

               key = origAllocType,

               value = Reserve space

            },

            (vmodl.KeyAnyValue) {

               dynamicType = null,

               dynamicProperty = null,

               key = targetAllocType,

               value = Conserve space when possible

            }

         ],

         message = 'Reserve space' to 'Conserve space when possible' is not supported. 'Conserve space when possible' allocation type to 'Fully initialized' and 'Reserve space' to 'Fully initialized' are supported.

      }

   ]

}

        at jdk.internal.reflect.GeneratedConstructorAccessor1318.newInstance(Unknown Source)