VMware Cloud Community
itm_nakul
Contributor
Contributor

Command to get virtual disk size of a virtual machine in ESX 3.5

hi all..........

I am using ESX 3.5 server ...........

i am very new in ESX 3.5........

can any one tell me what is the command on service console to get the virtual disk size of virtual machine in ESX 3.5...........

Thanx.........

Reply
0 Kudos
3 Replies
Dave_Mishchenko
Immortal
Immortal

Are you looking to do this from the service console or with a script? You can see the size of a virtual disk in the VI client - right click on the VM, select edit settings and then select the hard drive. Then size of the VMDK will be displayed there.

Reply
0 Kudos
itm_nakul
Contributor
Contributor

I want to get vm disk size from service console......

Reply
0 Kudos
Dave_Mishchenko
Immortal
Immortal

This will show both the vmdk and flat.vmdk

find /vmfs/ -name *.vmdk -exec ls -lh {} \; | awk '{ print $9 ": " $5}'