Assigning unique BIOS UUID to VMs sharing the same BIOS UUID (duplicate UUIDs)

You are here:
  • Main
  • Troubleshooting
  • Assigning unique BIOS UUID to VMs sharing the same BIOS UUID (duplicate UUIDs)
< All Topics

If multiple VMs in the same vCenter have the same BIOS UUID (duplicate UUIDs), then VirtuCache disallows Write-Back caching policy on these VMs and only allows Write-Through caching policy. However duplicate UUIDs are rare and are caused by VMs that were provisioned in non-standard ways.

To fix this problem, and force a unique BIOS UUID to one of the VMs that has the duplicate UUID, you could either full clone the VM (Option 1 below) or recreate the VMs .vmx file (Option 2 below).

Option 1. Create a clone of the VM.

Here is a link to VMware documentation which explains how to clone a VM.

This might be the easiest way. However for very large VMs, cloning might take a long time, instead, you could recreate the .vmx file as described below.

Option 2. Removing and recreating the .vmx file for the VM.

  • Remove the VM from inventory (Be careful not to select ‘Delete from disk’)
  • Login to the ESXi host through SSH and delete the .vmx file of the VM by going to the VM folder in the datastore.
  • Now we will create a new virtual machine configuration file and point it to the existing virtual disk (.vmdk) file.

Note: This process creates a new MAC address for the network card(s) and may cause issues with software that is dependent on the virtual machine’s MAC address. To create a new virtual machine configuration file and point it to the existing .vmdk file, follow the steps below:

  1. Login to the vSphere web client as an administrator
  2. Right-click the affected virtual machine and click ‘Remove from Inventory’
  3. Right-click an ESXi host
  4. Click ‘New Virtual Machine’
  5. Go through the Create New Virtual Machine wizard until you reach the ‘Customize Hardware’
  6. Click ‘Add New Device’
  7. Select ‘Existing hard disk’ and browse to the .vmdk file
  8. Complete the Create New Virtual Machine wizard

This procedure recreates the configuration file (.vmx) and other supporting files for the virtual machine. You can now turn on the virtual machine and it will now get a Unique BIOS UUID.

Once the VM is created, you will see a new folder <vmname>_1 in the datastore, if you are using the same datastore and the same VM name.

Note:  The above steps are for ESXi 6.7 using the HTML5 vClient GUI. Although there are differences between ESXi versions in how you do this from the vClient GUI, the same logic can be used in older ESXi versions.

 

Tags:
Table of Contents
Download Trial Contact Us