Unable to Add Additional Disk to a VM in VMware Cloud Director 10.x with Error: 'No Valid Storage Containers Found for VirtualMachine'
search cancel

Unable to Add Additional Disk to a VM in VMware Cloud Director 10.x with Error: 'No Valid Storage Containers Found for VirtualMachine'

book

Article ID: 390807

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

When attempting to add an additional disk to a virtual machine (VM) in VMware Cloud Director, the operation fails with a storage placement error. The system is unable to locate a valid storage container that satisfies the required storage policy and datastore configuration.

This issue occurs when the VM's current storage policy is mismatched or unsupported across available storage containers, or when the required datastore is not part of the eligible list during provisioning.

  • The UI or API throws an error referencing missing required storage containers and rejected resource groups.

  • The following messages are observed in the /opt/vmware/vcloud-director/container-debug.log file:

3 hubs eliminated because: Does not contain required storage container(s): [[moref://###################################/Datastore#datastore-########]] Rejected hubs: resgroup-######, resgroup-########, resgroup-###### 1 hub eliminated because: No valid storage containers found for VirtualMachine "###########". All 6 available storage containers were filtered out as being invalid. Rejected hubs: resgroup-#######Storage containers were rejected for the following reasons: 1 storage container rejected because: They do not support the required storage policy: #########. Rejected storage container:  5 storage containers rejected because: They are not in the list of required datastores. The required datastore is [name: #####, moref: datastore-########] Rejected storage containers: #############, ############,##########

Environment

VMware cloud Director 10.5.x

VMware cloud Director 10.6.x

Cause

This issue typically occurs when the VM home directory and the associated virtual disks (VMDKs) are assigned to different storage policies. In scenarios where multiple hard disks exist, if even one of them is not aligned with the VM's configured storage policy, Cloud Director's placement engine fails to identify a valid storage container during operations such as adding a new disk.

To ensure successful provisioning, all components of the VM must conform to a consistent and compatible storage policy and datastore configuration.

 

Resolution

To resolve this issue, ensure that all virtual disks of the VM are aligned with a consistent and compatible storage policy. This can be achieved by updating the disk storage policies to match the VM's default policy, and then modifying the VM's storage policy to the desired one.

Please follow the steps below:

  1. Navigate to the affected VM in the VMware Cloud Director UI.

  2. Locate the "Hardware" section of the VM's details page.

  3. Under "Hard Disks", click "Edit".

  4. For each listed disk, select the appropriate storage policy from the dropdown menu.

    Tip: To ensure consistency, select the VM's current default policy.

  5. Click "Save" to apply the changes.

Once all disks are aligned under the same storage policy, you may proceed to update the VM's storage policy as needed.