In the previous post we discussed consideration and steps to be taken for successful bulk import of VMs. In this post I would like to explain the procedure of importing VMs into vRA. A word of caution “The unmanaged machines are recorded during last successful data collection. Any new machines on the endpoint will not appear until next successful data collection”. By default inventory collection happens only once in a 24 hours.
Procedure to import VM is quite straight forward but must understand the impact of it.
Step: 01 Generate Virtual Machine CSV Data File
Go to Infrastructure tab –> Infrastructure Organizer –> Bulk Import –> Generate CSV File
In below figure select Unmanaged under Machines drop down menu.
Select the Business group from the drop menu. You have to choose which Business group these VMs should be part of or which VMs you wish to import into this business group. I suggest you leave the Owner blank here. As it is very unlikely there will be one owner for multiple VMs. Under Blueprint drop down menu select the blueprint relevant to this business group. Before you make this choice please read my previous post on this.
As seen above, under Filters you have choice of filtering Resources at Compute Resource level or at entire end point level (Endpoint in my case is vCenter) This is very handy when you know location of VMs to import. After all choices are made, press OK button. You will be presented with an option to download csv file.
Step: 02 Edit CSV Data File
Below is the sample of CSV file. I have highlighted in yellow, VMs I would like to import. I have specifically mentioned Yes in Column A. It allows me to choose VM to import. Apart from that I made changes in Column G for VM owner. This will be quite tedious process if you are to import large number of VMs . It is must to have VM Owners at handy.
Step: 03 Import CSV Data File
After CSV file is edited, lets go back to same screen but this time we will select Bulk Import i.e. Go to Infrastructure tab –> Infrastructure Organizer –> Bulk Import –> New Bulk Import
After you press New Bulk Import you get below screen, where I’ve explained most of the parameters
Here are the remaining parameters which needs to be reviewed.
Ignore managed machines: In case you get any errors while importing bulk VMs, you can select this checkbox, it will skip the one which have been successfully imported.
Skip user validation: If you select this checkbox, import process will be faster as it won’t check if owner exists.
After you press OK, you see screen where status of importing VM is displayed
Navigate to Infrastructure -> Machines Managed Machines and you would see the VMs recently imported and you can cross check if they are as expected.
You can also see similar information in log section
It is good idea to check how the resource allocation looks like post import activity. In my case I’ve already over allocated storage. It is allocation and not usage. Since I’m using thin provisioning import was successful or it would have failed.
Finally ask the end user to check if he is able to see his VM, and he is able to do requisite action on the VM. I have pointed few important things especially in the screen below Description of VM and Date created please take a note of it.
Hope it helps.