VMware Cloud Community
prabhurj
Contributor
Contributor

VM Drive to Disk stats

Hello LucD

Can you help me in getting the details from VM hard disk to Drive at OS level some thing like below... (only for Windows VM Smiley Happy)

Name of the VMDriveHarddiskHarddisk SizeDatastore locatedDatastore free space %
XXXC:Harddisk 150 GBPRD0520

Thanks in Advance

Prabhu

Tags (2)
0 Kudos
4 Replies
prabhurj
Contributor
Contributor

Can any one help me in this...

0 Kudos
LucD
Leadership
Leadership

This question has been asked many times in this forum I'm afraid.

You are looking for a link between the partitions in the guest OS (Drive) and the virtual disk (Harddisk).

There is no foolproof way to do this at this moment.

For example a virtual disk can hold several partitions and there is no way to find that link.

There are some exceptions in special cases where the report you are looking for can be produced.

For example, when your VMs only have 1 virtual disk and 1 OS partition.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
prabhurj
Contributor
Contributor

Thanks for the Info LucD, in our infra we have all our VM's created with separate disk for each drive.. 

0 Kudos
LucD
Leadership
Leadership

In that case Arnim's script from PowerCLI: Match VM and Windows harddisks – Part 2 should produce some results.

And there is an improved version of that script in our book.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos