VMware vSphere

 View Only
  • 1.  Exporting a list for Virtual Machines

    Posted Oct 26, 2017 11:15 AM

    I am looking to export a .csv list of virtual machines attached to LUNS. I need to see what machine is on what LUN.



  • 2.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 12:00 PM

    If you only need VMs vs Datastore you can create a vCenter inventory report with  RVTools

    Or use PowerCLI scripting -> VMware PowerCLI

    Notes:

    A VM can have files on multiple datastores.

    A vSphere Datastore can have multiple extents on different LUNs.



  • 3.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 12:16 PM

    PowerCLI does that work when Lockdown mode is enabled?

    Also cant use RVtools



  • 4.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 12:29 PM

    PowerCLI is an extension of Powershell.

    I think Get List of VMs, Datastores and Folder name per Cluster may do what you want ?



  • 5.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 12:33 PM

    Connect to your vcenter server with web client, then go to datastores, open datastore and go to releated objetcs tab and open virtual machines list.

    Than there should be export button in the right bottom corner of the screen. This will export list of virtual machines into CSV format.



  • 6.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 12:40 PM

    That list will not tell you what LUN connection



  • 7.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 03:23 PM

    Actually VM can be attached to RDM only.

    However this list will show all VMs related to Datastore where this list has been generated.

    I don't see any problem here.



  • 8.  RE: Exporting a list for Virtual Machines

    Posted Oct 26, 2017 06:40 PM

    What format do you want / need ? Datastore extent naa id ?