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

Add bulk of VMs to vCenter Inventory

How can I add a bulk of VMs to vCenter inventory? they sit on a datastore t, I search and I found couple of scripts that uses VM folder, in my case i have the VMs set on the LUN or the datastore directly , but the script, powerCLI,  keep referencing VMfolder which I dont have. Please help
0
Doors75
Asked:
Doors75
  • 5
  • 3
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
These VMS are currently not assigned or registered to any host?

This would have to be scripted.
0
 
Doors75Author Commented:
yes, they are not in the inventory,
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
this script will allow you to add them from a csv file to the inventory

http://cavarpe.wordpress.com/2011/06/17/vsphere-inventory-import-script/

LuCDs script here is probably a better one, as he is the king of PowerCLI

https://communities.vmware.com/thread/419531
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Doors75Author Commented:
they reference the folder name, which I dont have, all my VMs sit on directly under the LUN
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
so all VMs are together with no folder?

it is usual and recommend to have a folder for each VM?

where have the VMs come from to be like this?
0
 
Doors75Author Commented:
I figured it out, thanks
0
 
Doors75Author Commented:
Thanks
0
 
Doors75Author Commented:
Thanks
0
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

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

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