FInding location of the physical disk being used by a HyperVM

matmos
matmos used Ask the Experts™
on
Have a HyperV 2016 Host running 5 Server 2012 VMs - recently installed. I thought Id take some checkpoints - all worked apart from one which states  Cannot take checkpoints because one or more pass through disks are attached.
Which I see means that VM is attached to a physical disk . I can see articles on how to convert physical disk to VHDX but how can I find where this physical disk is ? All the VMs are located on seperate physical drives as VHDX ? I cant see how this one is any different ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Solutions Provider
Commented:
Via powersshell you could use:
Get-VMHardDiskDrive -VMName TestVM

Author

Commented:
Thank you for the quick response. If i run that on the different VMs I get different responses - All are using Controller Number 0 only, apart from the VM in question which has a listing under controller 1 - but nothing to the right of it.

VMName    ControllerType ControllerNumber ControllerLocation DiskNumber Path
------    -------------- ---------------- ------------------ ---------- ----
VMNAME SCSI           0                0                             E:\XXXXX
VMNAME SCSI           1                0
Distinguished Expert 2018

Commented:
To connect a physical disk, it needs to be marked offline at the host, so that will be another easy way to locate it. Either open disk management at the host (unless it's a core server, then you will need to open disk management in RSAT), or use the diskpart commands
diskpart
list disk

Open in new window

there you see which disk is marked as offline.
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

MaheshArchitect
Distinguished Expert 2018

Commented:
When pass through disks are used, you can go to VM properties and there you should find it as attached physical disk

same time you can navigate to hyper-v host disk management and there you should see reserved / offline disk which is nothing but pass through disk

U should not make it online or modify it anyway
Kenza CohenIT Solutions Provider

Commented:
I believe it may be E:\ from the look of it.

If you right click the VM, go to settings then look for harddrive it should tell you what drive.

I would use Paragon Virtualization manager for p2v personally.

Author

Commented:
Brilliant powershell command made me see the VM in question was an additional controller to the others - checking in settings i saw that it was connect to a blank physical VM so changed to virtual
Kenza CohenIT Solutions Provider

Commented:
Perfect,
If your issue is closed feel free to mark the relavent solution :)

Glad to be of help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial