Automation

 View Only
  • 1.  Scripts to migrate to a new vcenter

    Posted Apr 12, 2019 07:58 AM

    Hello All

    We have a situation, where a client wants to migrate from a Windows 6.0 vCenter to VCSA 6.7.

    In this instance, they do not want to use the native migration method, which works well.

    Instead, they want a new vCenter created and we have to manually replicate the following into the new vCenter.

    So looking for scripts which will recreate the following on the new vCenter.

    Datacenter

    Clusters

    DRS Rules

    HA Settings

    Roles

    Permissions

    Folders

    Alarms

    We will manually remove each host from the old vCenter and add it to the new vCenter, into the respective cluster.

    But will need a script to move VM's into the original folders.

    I have searched the net, but have been unable to locate any new scripts, therefore I am wondering if anyone has any such scripts, which could help in this scenario.

    Any assistance would be appreciated.

    Jitla



  • 2.  RE: Scripts to migrate to a new vcenter

    Broadcom Employee
    Posted Apr 12, 2019 09:10 AM

    I am not sure of a script that will do this workflow for you - there is a fling for InventorySnapshot , but its for a non prod environment



  • 3.  RE: Scripts to migrate to a new vcenter

    Broadcom Employee
    Posted Apr 12, 2019 09:17 AM

    I did see Gabrie's Cheap disaster recovery, it has scripts there for importing/exporting....



  • 4.  RE: Scripts to migrate to a new vcenter
    Best Answer

    Posted Apr 12, 2019 09:25 AM

    There will not be a single script that does all of that afaik.

    There are several scripts that export-import a specific component on your list.

    Do a search on export - import in this community.

    There are a few blogs that present a collection fo such scripts.

    See for example Cheap disaster recovery and vCenter PowerCLI Migration Script

    These posts are quite old, but should give you a some basics and how to tackle such a project.



  • 5.  RE: Scripts to migrate to a new vcenter

    Posted Apr 14, 2019 02:09 PM

    thank you all for all your help.

    I will do a search for export and check out the posts Luc has mentioned.



  • 6.  RE: Scripts to migrate to a new vcenter

    Posted Apr 14, 2019 02:11 PM

    If you have issues with exporting/importing specific components, please feel free to ask here.