?
Solved

Add bulk of VMs to vCenter Inventory

Posted on 2013-11-15
8
Medium Priority
?
463 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 124
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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 

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
 
LVL 124
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

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Question has a verified solution.

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

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: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
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…
Suggested Courses

839 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