Skip to main content
Solved

Query regarding VM UUID

  • January 30, 2023
  • 8 replies
  • 1077 views

Forum|alt.badge.img+13

I have couple of questions related to VM UUID 

  1. we have huge amounts of VM backups, we were cross-checking whether UUID is getting matched on both commvault and vmware end. some of the UUID Are same but some are different, Same UUID VM are not restored VM’s so not sure why this diffrence is happening
  2. Is it possible to pull the report using API or something which shows the VM details with UUID from commvault end ? 

Best answer by Damian Andre

Hey @Allan0105 

Commvault does not use the VM GUID as located in the VMX file as it is not guaranteed to be unique. We use the UUID provided by vCenter (known as instanceUUID as well), and that is how VMs are matched and tracked as they move between hosts, get renamed etc.

Where you don’t see a match, make sure its not the VM GUID you are looking at.

In the case of a windows VM, here is some powershell code to show the instance UUID:

([guid]((Get-WmiObject win32_bios).SerialNumber -replace "[\s-]","").Substring(6)).ToString()

 

When restoring, if the UUID already exists as reported by vCenter then a new one will be assigned. This is common when you restore a copy of a VM.

There hasn't really be any issues relating to UUID or GUIDs since the V9 days - things are pretty solid here so I would not expect anything to go wrong. There is code that checks for duplicated, mismatches etc.

 

View original
Did this answer your question?

8 replies

Forum|alt.badge.img+13
  • Author
  • Byte
  • 115 replies
  • January 31, 2023
Allan0105 wrote:

I have couple of questions related to VM UUID 

  1. we have huge amounts of VM backups, we were cross-checking whether UUID is getting matched on both commvault and vmware end. some of the UUID Are same but some are different, Same UUID VM are not restored VM’s so not sure why this diffrence is happening
  2. Is it possible to pull the report using API or something which shows the VM details with UUID from commvault end ? 

Team, Any update on this! 


Damian Andre
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 1289 replies
  • Answer
  • February 1, 2023

Hey @Allan0105 

Commvault does not use the VM GUID as located in the VMX file as it is not guaranteed to be unique. We use the UUID provided by vCenter (known as instanceUUID as well), and that is how VMs are matched and tracked as they move between hosts, get renamed etc.

Where you don’t see a match, make sure its not the VM GUID you are looking at.

In the case of a windows VM, here is some powershell code to show the instance UUID:

([guid]((Get-WmiObject win32_bios).SerialNumber -replace "[\s-]","").Substring(6)).ToString()

 

When restoring, if the UUID already exists as reported by vCenter then a new one will be assigned. This is common when you restore a copy of a VM.

There hasn't really be any issues relating to UUID or GUIDs since the V9 days - things are pretty solid here so I would not expect anything to go wrong. There is code that checks for duplicated, mismatches etc.

 


Forum|alt.badge.img+13
  • Author
  • Byte
  • 115 replies
  • February 1, 2023
Damian Andre wrote:

Hey @Allan0105 

Commvault does not use the VM GUID as located in the VMX file as it is not guaranteed to be unique. We use the UUID provided by vCenter (known as instanceUUID as well), and that is how VMs are matched and tracked as they move between hosts, get renamed etc.

Where you don’t see a match, make sure its not the VM GUID you are looking at.

In the case of a windows VM, here is some powershell code to show the instance UUID:

([guid]((Get-WmiObject win32_bios).SerialNumber -replace "[\s-]","").Substring(6)).ToString()

 

When restoring, if the UUID already exists as reported by vCenter then a new one will be assigned. This is common when you restore a copy of a VM.

There hasn't really be any issues relating to UUID or GUIDs since the V9 days - things are pretty solid here so I would not expect anything to go wrong. There is code that checks for duplicated, mismatches etc.

 

Thanks Damian, 

For example, one vm, on commvault end UUID shows as “50019c63-9741-be7e-5251-f3b449c18cb2 but on the VMware end. it shows as “42019194-xxxxx-xxxx-xxxxxx”, and the uuid is not matching. not sure why  

 


Damian Andre
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 1289 replies
  • February 1, 2023

Where are you seeing the UUID in Commvault? logs?

I think there is a table app_vminfoprop that might store it - but need to double check


Forum|alt.badge.img+13
  • Author
  • Byte
  • 115 replies
  • February 1, 2023
Damian Andre wrote:

Where are you seeing the UUID in Commvault? logs?

I think there is a table app_vminfoprop that might store it - but need to double check

under VM properties 

 

 


Forum|alt.badge.img+5

Hi @Allan0105 

 

In the CS DB you can compare the values for GUID and vmGUID

 

 


Forum|alt.badge.img+13
  • Author
  • Byte
  • 115 replies
  • February 1, 2023
Remi Sprangers wrote:

Hi @Allan0105 

 

In the CS DB you can compare the values for GUID and vmGUID

 

 

Thanks Remi, GUID and VMGUID is showing same on our commserve end but on the VM side uuid is showing different? 


Forum|alt.badge.img+13
  • Author
  • Byte
  • 115 replies
  • February 20, 2023
Damian Andre wrote:

Hey @Allan0105 

Commvault does not use the VM GUID as located in the VMX file as it is not guaranteed to be unique. We use the UUID provided by vCenter (known as instanceUUID as well), and that is how VMs are matched and tracked as they move between hosts, get renamed etc.

Where you don’t see a match, make sure its not the VM GUID you are looking at.

In the case of a windows VM, here is some powershell code to show the instance UUID:

([guid]((Get-WmiObject win32_bios).SerialNumber -replace "[\s-]","").Substring(6)).ToString()

 

When restoring, if the UUID already exists as reported by vCenter then a new one will be assigned. This is common when you restore a copy of a VM.

There hasn't really be any issues relating to UUID or GUIDs since the V9 days - things are pretty solid here so I would not expect anything to go wrong. There is code that checks for duplicated, mismatches etc.

 

Thanks Damian, 

it looks like our is VC.uuid is the one which commvault pull from the vcenter and we have used API to get the information from commvault. 

 

uuid.bios = "42 07 91 7c 22 6a a4 dc-1d 74 aa 67 65 34 05 75"
vc.uuid = "50 07 3f e7 83 16 26 65-bc d9 c7 c4 f2 8a f1 af"
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings