Can we change the VMID of an Hyper-V VM? If yes, how?

jaril nambiar 41 Reputation points
2021-01-19T08:45:27.863+00:00

Hello there,

I have a VM in a cluster (Cluster-A) with the VMID- 20FBC134-7A86-44E0-8D72-2A7D35A27373.
I have backed-up the VM and restored it to another cluster (Cluster-B).
I want to use the restored VM (Cluster-B) as a new production server and to be backed-up. Its VMID is also the same as the original VM

Here I'm facing the issue while adding the restored to the backup tool. The cause is duplicate VMID.

Please let me know...

Can we change the VMID of a Hyper-V VM? If yes, how?

I got some steps to change the VMID. But, how can I choose the ID? If I chose an ID then will it impact the current VMs or the upcoming VMs?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,536 questions
0 comments No comments
{count} votes

Accepted answer
  1. Eric Siron 1,251 Reputation points MVP
    2021-01-19T18:18:54.13+00:00

    The VMID is immutable.
    You can:

    1. Turn off the duplicated VM
    2. Disconnect all virtual drives from the duplicated VM
    3. Export the duplicated VM
    4. Delete the duplicated VM
    5. Import from the export that you created in step 3, selecting "Copy"
    6. Reattach the drive files from step 2

    The article that you reference will only work on 2012R2 hosts and earlier, and is 0% supported.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Xiaowei He 9,871 Reputation points
    2021-01-20T08:55:59.047+00:00

    Hi,

    If you want to change the VM ID of the VM, we may simply use the VHDX file of the VM to create a new VM in Cluster B, the content in the VM won't change, just the configuration file of the VM be recreated.

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Yann Melvin TEMGOUA 1 Reputation point
    2021-01-21T09:35:05.377+00:00

    Hello @jaril nambiar
    Unfortunately we can not change the VMID of an Hyper-V VM. I have tried it in the past and it was only stinging failures :).
    i suggest you to firstly switch off the duplicated VM, disjoin the virtual drives and then export the duplicated VM , delete the duplicated VM. After that you are supposed to import from the previously export that we made before. In the pop_up windows select Copy. Finally reattach the virtual drives that we have disjoined before.

    Best Regards,

    0 comments No comments