VMware Cloud Community
flynmooney
Enthusiast
Enthusiast

Migrate vCAC Managed VMs from vCenter 5.5 (Windows install) to vCenter 6 (VCSA)

We're looking at moving to vSphere 6 appliances from vSphere 5.5 Windows installs.  We currently have machines built and managed by vCAC 6.2.  We've done infrastructure upgrades in the past by creating a new environment, disconnecting ESXi server from one vCenter and reconnecting to the new vCenter.  The problem now would be with vCAC managing the machines in what order do we do this?  Do we add the new vCenter as a new endpoint in vCAC with a new URL first and then migrate the VMs and will the inventory process recognize this?  Or do we take a small outage while we migrate to the new vCenter and then connect the new vCenter with the same URL as the old one as an endpoint to vCAC?

0 Kudos
7 Replies
sbeaver
Leadership
Leadership

Do we add the new vCenter as a new endpoint in vCAC with a new URL first?  Yes this needs to be your first step so they new vCenter can be inventoried. In my environment we have added quite a few vCenter appliances and have been migrating away from the windows version just like you are doing and what I have seen is vCAC is able to know that things have moved and have updated the inventory automatically.  I am not sure how many managed machines got migrated but from an administrative view I saw compute resources and reservations get updated automatically.

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
flynmooney
Enthusiast
Enthusiast

To completely make this work in my lab environment I had to change the reservations of the machines to get them to be fully managed by vCAC.  Did you have to do this?  Did you create anything in vCO to automate this process as it's a single VM at a time through the GUI and 1000 VMs wouldn't be very efficient.

0 Kudos
sbeaver
Leadership
Leadership

To completely make this work in my lab environment I had to change the reservations of the machines to get them to be fully managed by vCAC -  Just curious, once you made the move did you re-run the inventory tasks?  I am not sure if any of the managed machines were moved but can confirm that vCAC undated itself once the inventory was run


There are some workflows on mass moving virtual machines from one vCenter to another.  Take a look at in the vCenter folder of the library, I think it is tthere

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
flynmooney
Enthusiast
Enthusiast

I did rerun inventory tasks on both vCenters.  Everything worked just perfectly with the VMs being transferred and vCAC picking them up in the new vCenter.  Where I ran into a problem was when I tried to run any actions on the VMs.  The VMs were still part of the old reservation which pointed to the old vCenter.  When I ran a resource action it was trying to contact the VM in the old vCenter.  When I changed the VM to the new reservation which was pointed to the new vCenter the resource actions worked as expected.

For reference I am using vRA Automation 6.2.1

0 Kudos
sbeaver
Leadership
Leadership

That really actually makes sense.  So to automated this you could for loop an action to change reservations once complete

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
flynmooney
Enthusiast
Enthusiast

Here's my take on a workflow to change a single VM reservation. 

Inputs:

  • vCAC:VCACHost (vcacHost)
  • vCAC:Reservation (reservationName)
  • vCAC:VirtualMachine (vcacVM)

var entity = reservationName.getEntity();

var hostReservationID = entity.getProperty("HostReservationID");

System.log("HostReservationID: " + hostReservationID);

var vmEntity = System.getModule("com.vmware.library.vcac").getVirtualMachineEntity(vcacHost,vcacVM);

var properties = new Properties();

var name = new Array();

var value = new Array();

name[0] = "HostReservationID";

value[0] = hostReservationID;

if (name != null) {

    for (var i = 0; i < name.length; i++) {

        properties.put(name[i], value[i]);

        System.log(name[i] + " : " + value[i]);

    }

}

var links = null;

System.getModule("com.vmware.library.vcac").updateEntity(vmEntity,properties,links);

0 Kudos
AcuteSys
Contributor
Contributor

Can either of you post up all the steps required to accomplish this?

I am also in the midst of migrating VMs from an old vCenter endpoint to another vCenter endpoint and not sure of the steps required to get vRA to manage the machine again. Right now I have both vCenter endpoints setup in vRA. our vsphere team migrated the VM into the new vCenter but in vra its showing as Missing.

0 Kudos