Solved

Add bulk of VMs to vCenter Inventory

Posted on 2013-11-15
8
449 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 119
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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all 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 119
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

825 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