Solved

Add bulk of VMs to vCenter Inventory

Posted on 2013-11-15
8
448 Views
Last Modified: 2013-11-17
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
Comment
Question by:Doors75
  • 5
  • 3
8 Comments
 
LVL 118
ID: 39652112
These VMS are currently not assigned or registered to any host?

This would have to be scripted.
0
 

Author Comment

by:Doors75
ID: 39652127
yes, they are not in the inventory,
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39652155
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
 

Author Comment

by:Doors75
ID: 39652186
they reference the folder name, which I dont have, all my VMs sit on directly under the LUN
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 118
ID: 39652679
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
 

Author Closing Comment

by:Doors75
ID: 39655431
I figured it out, thanks
0
 

Author Comment

by:Doors75
ID: 39655432
Thanks
0
 

Author Comment

by:Doors75
ID: 39655433
Thanks
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now