Note: Please be advised that changing the Disk ID of a volume hosting the OS is not recommended as it will cause the machine not to boot.
In some cases if a VM has the same Disk ID as the host, Microsoft VSS will fail and thus backups will not be successful. In such cases you will need to change the Disk ID as below.
To view the Disk ID:
- Open Command prompt
- Enter the command DISKPART and hit enter
- Enter the command LIST DISK and hit enter to list all available disks
- Enter SELECT DISK X (Substitute "X" for the number of the disk you wish to select) and hit enter
- Enter UNIQUEID DISK and hit enter
- A four byte disk ID will be returned, for example: "e9eb3aa5"
To change the Disk ID:
- Open Command prompt
- Enter the command DISKPART and hit enter
- Enter the command LIST DISK and hit enter to list all available disks
- Enter SELECT DISK X (Substitute "X" for the number of the disk you wish to select)
- Enter UNIQUEID DISK ID=a4e19dc0 and hit enter
- This will change the Disk ID to "a4e19dc0"
- Enter UNIQUEID DISK and hit enter to view the new Disk ID