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

"Virtual 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 8.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 6.x

Cause

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

Resolution

  • In order to create a new UUID for the disk:

       1. Power off the virtual machine to unlock the disk.

       2. Run this command to get the virtual disk UUID.

       vmkfstools -J getuuid <vmname>.vmdk

       Example:

   # vmkfstools -J getuuid 

   /vmfs/volumes/datastore/VM/vm.vmdk

   UUID is 60 00 C2 95 4c 37 b9 35-9f 11 05 fb e5 93 f4 ca

       3.Run this command to set or modify the UUID

   vmkfstools -J setuuid  <vmname>.vmdk

       Example: 

   #vmkfstools -J setuuid  /vmfs/volumes/datastore/VM/vm.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.

  • Alternatively when you clone a vmdk, a new disk will generally have a different UUID (Universally Unique Identifier). This UUID is used by the hypervisor to uniquely identify the disk. 

Additional Information