This procedure will describe how to relocate Bosh created VMs from one cluster to another, between vCenters if necessary.
It is recommended to test in a lab environment before making any changes in production.
This process describes how to move the Harbor tile and does not cover service instance tiles, such as TPCF data services or TKGI clusters.
This step uploads the stemcell to the shared datastore, re-creates the VMs with ephemeral snapshots from the shared datastore, attaches the persistent new disks from the shared datastores to copy persistent data and finally detach the source persistent disk.
This step configures Ops Manager with the target infrastructure and re-creates all the VMs on the target infrastructure. For a highly available system such as TPCF, this process will be online, unless there are any singletons such as built in blob store or static IP addresses are defined, as they will need to be temporarily unset.
sudo -i
cp /var/tempest/workspaces/default/deployments/bosh-state.json /var/tempest/workspaces/default/deployments/bosh-state.json.bak
...
"stemcells": [
{
"id": "d00c524b-998d-49ff-67ef-200938f8565f",
"name": "bosh-vsphere-esxi-ubuntu-jammy-go_agent",
"version": "1.572",
"api_version": 3,
"cid": "sc-25fcc87d-eaf0-4a81-8d6c-7aa4072ced0d"
}
],
...
Target:...
"stemcells": []
...