locked
Hyper-V Server 2016 VM UUID All Zeros - Need to Change UUID RRS feed

  • Question

  • We have an application that is dependent on a valid UUID for licensing purposes.

     

    Newly created VMs all have the UUID set to all zeros:

    • wmic path win32_computersystemproduct get uuid
    • UUID
    • 00000000-0000-0000-0000-000000000000 

    How can we change the VM UUID?

    We are able to change the VM BIOS GUID, however the UUID is still all zeros.

    Hyper-V host: Dell PowerEdge R720 | Windows Server 2016 Core (fully patched) with Hyper-V Role.

    The host does have a valid UUID:

    • wmic path win32_computersystemproduct get uuid
    • UUID
    • 4C4C4544-0058-3610-8037-CAC04F4D4E32

     


    Tuesday, October 23, 2018 1:30 PM

All replies

  • Hi Bruce,

    Have you tried the following?

    Get-VM "VMname" | % { (gwmi -Namespace root\virtualization\v2 -Class msvm_computersystem -Filter ('ElementName="{0}"' -f $_.Name)).GetRelated('msvm_virtualsystemsettingdata') | select BIOSGUID }

    Here's also a very good article about this:

    https://www.altaro.com/hyper-v/free-powershell-script-change-bios-guid-hyper-v-virtual-machine/

    And here's a great tool for editing advanced settings like BIOS GUID for Hyper-V virtual machines:

    https://www.altaro.com/hyper-v/free-tool-advanced-settings-editor-hyper-v-virtual-machines/

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:


    • Edited by Leon Laude Tuesday, October 23, 2018 3:21 PM spelling
    Tuesday, October 23, 2018 2:26 PM
  • Hi Leon,

    Yes, we have tried all of the tools mentioned. We are able to change the BIOS GUID, however the UUID is still queried as all zeros.

    The VMs were originally created at Version 5.0 (to be compatible with our Hyper-V replication server running Win 2012R2). Powershell: New-VM -Name UUIDTest -NoVHD -Version 5.0 -Generation 2

    Upgrading a VM from version 5.0 to 8.0 results in a valid UUID being queried, however we lose the ability to replicate & run the VM from our Hyper-V replication server.

    Seems like some type of issue with using PowerShell to manually create a version 5 VM on Win 2016 - the UUID does not get created correctly.

    Still looking for a way to edit the UUID on a Version 5.0 VM running on Win 2016.

    Thanks,

    Bruce

    Tuesday, October 23, 2018 3:06 PM
  • The tool that I provided in the link above works for changing the UUID on a version 5.0 VM running on Windows Server 2016, tested it myself, it will randomly generate a new UUID.

    Blog: https://thesystemcenterblog.com LinkedIn:

    Tuesday, October 23, 2018 3:22 PM
  • Hi,
    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

    Best Regards,

    Frank

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, October 30, 2018 8:58 AM
  • Hi,

    Was your issue resolved? 

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
    If no, please reply and tell us the current situation in order to provide further help.


    Best Regards,
    Frank

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, November 2, 2018 6:55 AM