Hyper-V: Move .vhdx (Virtual harddisk) to another location.
This example. The VM name DEMO has two drives (C and D) in separate .vhdx files. We will move the .vhdx file of the D drive to another location (For example disk space for this VM is full or slow, So we will move some or all .vhdx to a new location).
Step to move
- Open hyper-v and select VM to move. Right-click > Select "Move.."

- Move wizard will show an option for moving .vhdx file.


2.1 Move all of the virtual machine's data to a single location.


2.2 Move the virtual machine's data to a different location.




2.3 Move only the virtual machine's virtual hard disks.



- For this example choose option 3. And move .vhdx file to C:\VHD.
(Original location is C:\ProgramData\Microsoft\Windows\Vurtaul Hard Disks).




- Before moving the file location.

- When you click "Finish" the .vhdx file will perform moving.

- When it is complete the file will moved to the new location.

- Check in VM Hyper-V "Settings". File location has changed.


- Try to start VM to check the drive on VM is working.

- VM successful to start. All done to move .vhdx file.
