"disks with same UUID should not be assigned to a VM" error adding a virtual disk to a virtual machine
search cancel

"disks with same UUID should not be assigned to a VM" error adding a virtual disk to a virtual machine

book

Article ID: 341653

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • If the virtual machine is running and if you save the change on the virtual machine settings, you see a message similar to:
[msg.disk.duplicateUUID] Virtual disks "/vmfs/volumes/<DatastoreName>/<VMName>/<vDiskName.vmdk>" and "/vmfs/volumes/<DatastoreName>/<VMName>/<vDiskName.vmdk>" have the same UUID 60 00 C2 97 55 c1 8d 49-cd 59 4f 55 6e d9 0f 31. Virtual disks with same UUID should not be assigned to a VM since this can lead to problems when the guest boots. Please make sure virtual disks have unique UUIDs. Do you want to continue?
Note: The complete message is visible in the vmware.log file in the virtual machine folder.
  • If the virtual machine is running and you answer no, the virtual disk is not added to the virtual machine and the virtual disk gets locked


Environment

VMware vSphere ESXi 7.0.0
VMware vSphere ESXi 6.0
VMware vSphere ESXi 6.7
VMware vSphere ESXi 6.5

Cause

You cannot add a virtual disk to a virtual machine that already has a disk with the same UUID.

Resolution

To resolve this issue, perform one of the following resolutions:
  1. Power off the virtual machine to unlock the disk
  2. Run this command to get the virtual disk UUID.
vmkfstools -J getuuid /vmfs/volumes/datastore/VM/vm.vmdk
 
Example:
vmkfstools -J getuuid New\ Virtual\ Machine.vmd
UUID is 60 00 C2 95 4c 37 b9 35-9f 11 05 fb e5 93 f4 ca
  1. Run this command to set or modify the UUID:
vmkfstools -J setuuid /vmfs/volumes/datastore/VM/vm.vmdk

Example: 
vmkfstools -J setuuid New\ Virtual\ Machine.vmdk
UUID is 60 00 C2 9c d7 4e d9 70-de 1f 59 d2 f0 e0 20 ac

A new UUID is returned after the command executes.


Additional Information