How to Clone a Virtual Machine When Source VM Has Disks Too Large for any Storage
book
Article ID: 380651
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
When attempting to clone a virtual machine (VM) using vSphere Client, the operation may fail if any virtual disks in the source VM are larger than the available space in the target datastore, even if those disks are not intended to be part of the final cloned VM.
Environment
- VMware vSphere 6.x and later - vCenter Server - ESXi hosts
- The "Clone to Virtual Machine" wizard prevents proceeding at the storage selection step - Error message "Select a valid destination storage" appears - Unable to reach the disk customization step where unwanted disks could be removed
Cause
The vSphere cloning process validates available storage space before allowing disk customization. This validation checks space requirements for all virtual disks, regardless of whether they will be included in the final clone.
Resolution
Two methods are available to work around this limitation:
Method 1: ESXi Command Line (No VM Downtime Required)
Note the current VM's configuration details:
Take screenshots or document all VM settings
Record the source datastore path for the drives intended to be cloned
Note the target datastore path
Create a new VM in the destination datastore:
Configure settings to match the source VM
Do not create any virtual disks
Enable SSH on the ESXi host if not already enabled
Reference KB 312060 for SSH enablement steps
Connect to the ESXi host via SSH
List available datastores:
esxcli storage filesystem list
Use vmkfstools to clone only the desired virtual disk:
Reference KB 343140 for specific vmkfstools commands
Clone the C: drive to the new VM's location
Method 2: vCenter Server UI (Requires VM Downtime)
Document current virtual disk locations:
Right-click VM > Edit Settings...
Note paths for all virtual disks
Ensure no snapshots exist
Remove large disks during maintenance window:
Power off the VM
Edit VM settings
For each unwanted disk:
Click the three vertical dots next to the disk
Select "Remove device" (NOT "Remove device and delete files")
Click OK
Perform clone operation normally
Reattach original disks to source VM:
Edit source VM settings
Click "ADD NEW DEVICE"
Select "Existing Hard Disk"
Navigate to original disk locations
Add each disk back
Power on VM
Additional Information
- Method 1 requires SSH access and command line experience - Method 2 requires planned downtime - As a rough rule of thumb, estimate maintenance window duration based on the time it takes to backup the disks being copied - Double estimated time to account for complications - Consider testing process on non-production VM first