• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

local storage vm's

Is there any easy way in vcenter or by other tools to identify all vm's on local storage (i.e. not your SAN)? Where could you check this if you have a large datacentre to review.
2 Solutions

If you have a naming convention for the host datastores then you could use PowerShell, via the PowerCLI, to query vCenter for a list of VMs and the datastores they use.

An example script can be found here: http://blogs.vmware.com/vipowershell/2009/08/how-to-list-datastores-that-are-on-shared-storage.html
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I would recommend and use the

VMware Community Pack

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.


One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now