Converting VMware vCenters
Transition to VM Squared
Transitioning from VMware vCenter to VM Squared is straightforward and can be implemented on existing hardware. Even with limited resources the process can be accomplished by incrementally moving a few hosts at a time, migrating VMs in batches to free up resources and repeating.
This article discusses possible ways to locate candidate hosts in your VMware environment and how to transition them to VM Squared while minimizing disruption.
Our plan will be to:
Locate candidate vSphere hosts (minumum 3), while:
- maintaining safe levels of resource availability,
- avoiding workload disruption, and
- continuing to provide resilience during migration.
Use the candidate hosts to build a VM Squared cluster, which will:
- enable migration of VMs to VM Squared and
- provide resilient VM Squared cluster as a migration target.
Migrate VMs from vSphere to VM Squared, which will in turn:
- reduce the resource usage in vSphere
Grow the VM Squared cluster by repeating steps 1, 2 and 3 until all the VMs have been migrated onto the VM Squared cluster.
Finally, we will be able to shut down our vSphere cluster and have all the hosts managed by VM Squared.
VM Squared is able to support much larger cluster sizings than vSphere and 100+ hosts is not a problem. Larger clusters are more efficient which means less wasted capacity when allocating VMs. We recommend consolidating hosts into a single cluster as long as these hosts are connected by the same high-speed LAN network.
Selecting and removing VMware ESXi hosts
Identifying ESXi hosts to remove
Environments in VMware are partitioned into vCenters. Within each vCenter, the hosts are partitioned into clusters.
VMware VMs are assigned to clusters within the vCenter, so the cluster size dictates the availability of CPU and RAM resources.
Smooth running of a VMware environment requires clusters meet VM CPU and RAM demands, as well as provide a safety margin for VMs to reschedule on alternate hosts in the event that a host fails.
VMware recommends a minimum of 3 hosts in each cluster. This means that in larger clusters we can safely remove hosts, depending on the workload levels.
Begin by looking at your available VMware clusters and selecting hosts from those that have spare capacity.
To determine what the workload demands we must look at the current workload usage and the HA Admission Control settings.
- Measure cluster-wide RAM and CPU allocations using the Cluster performance charts.
- Refer to the detailed cluster Memory (MB) chart showing Consumed, Granted and Total memory.
- Note cluster CPU usage and make sure it isn’t in the red. This is less important as CPU overcommitment is very flexible.
- Measure the difference between Granted and Total memory:
- Count the difference in per-host units.
- For example, with 2048GB total, 896GB consumed and 128GB memory on each host:
- 16 host cluster, 7 hosts consumed, 9 hosts spare.
- Calculate your requirements based on chosen HA policy.
- If using Percentage Admission Control take your granted RAM resources and calculate the failover capacity percentage.
- If using Slot Policy Admission Control determine your slot size and how many hosts are needed to provide failover slots.
- If using Dedicated Failover Hosts Admission Control make sure you have sufficient spare hosts based on current workload.
- Determine the lowest number of hosts that could be used to provide your desired failover capacity percentage.
- HA requirements satisfied, we can now see how many vSphere hosts are surplus to requirements and can be used for migration.
- Write a list of these hosts that are surplus to requirements and proceed to the next step.
Removing ESXi - vCenter only
If your environment uses vSphere with vCenter but without vSAN or NSX, then removing a host is relatively simple.
This process is documented by VMware for vSphere 8 and other versions.
- Right-click selected host and choose Enter Maintenance Mode.
- Wait for any VMs to migrate away from the host.
- Remaining VMs can block maintenance mode.
- Ensure vMotion is setup and DRS is enabled.
- Check for VMs with mapped USB devices.
- Check for VMs with raw disk mappings (RDM).
- Check for VMs with CPU Affinity.
- On releases earlier than vSphere 7, mapped VM console CD ROM devices could also prevent vMotion.
- If in doubt, power off the VMs and temporarily remove CPU Affinity or hardware passthrough devices.
- Wait for the host to enter maintenance mode.
- Right-click the host and choose Remove from Inventory.
- Select Yes in the confirmation dialogue.
Removing ESXi - vCenter with VSAN
If you also use VSAN and the host is part of a VSAN cluster, then you should perform a data migration before executing the steps above.
- When entering maintenance mode you will see an additional option, vSAN data migration.
- Select Full data migration to safely re-replicate all data on the host’s disks to other hosts.
- Wait for the host to enter maintenance mode.
- Right-click the host and choose Remove from Inventory.
- Select Yes in the confirmation dialogue.
Removing ESXi - vCenter with NSX or NSX-T
NSX creates additional API linkages with vSphere and you may need to remove hosts from NSX before removing them from vCenter to ensure a clean uninstall.
- NSX-T provides this article on removing NSX-T hosts from managed hosts.
- NSX provides this article on removing NSX from managed hosts.
Once NSX is removed the hosts can be removed from vCenter or vSAN as described above.
Create a VM Squared deployment
Follow the steps outlined in Installation to install your first VM Squared hosts and then install at least two more additional hosts for resilience.
VM Squared is now operational and able to act as a destination for your VMware migration.
Catalyst VM migration
VM Squared is now ready to take VMs from VMware and run them. To migrate the VMs, use the Catalyst migration tool. Deploy Catalyst, then go to the web UI to select VMs for migration. Ensure the VMs are powered off - we will need to convert the VM disks - and begin the migration.
You can run multiple Catalyst instances simultaneously to increase the speed of your migration.
Once the VMs are migrated, start the VMs and validate that items like network configuration are updated and correct.
Do not migrate the VMware appliances such as vCenter and NSX.
Growing your VM Squared environment.
After we have migrated the initial batch of VMs to VM Squared we can remove the VMs and their VMDK files from VMware. This frees resources on the vCenter.
We have now reduced the CPU, RAM and disk requirements in the VMware environment and we can repeat the steps to select additional ESXi hosts to transition and add these new hosts to the VM Squared cluster.
Now we can select a new batch of VMs to migrate from VMware to VM Squared and go back to Step 1.
Moving a VMware environemnt to VM Squared requires repeated loops of:
- removing physical servers from VMware.
- adding these physical servers to VM Squared.
- migrating VMs to VM Squared.
The overall move will be faster if we move multiple physical servers hosts at in each step.
- If VMware clusters have sufficent spare capacity then migrate multiple hosts from each cluster.
- If VMware vCenter contains multiple clusters then consider migrating hosts and VMs from multiple clusters at the same time.
- Once we have a VMware cluster of only 3 hosts, we should try to move all remaining VMs to VM Squared.
- If you are left with multiple 3-node VMware clusters and do not have sufficient space to migrate, then amalgamate these clusters into a larger VMware cluster:
- Move the ESXi hosts into the same cluster after ensuring that all ESXi can access all required datastores and networks.
Finalising the conversion
When the only VMs left in your VMware environment are the VMware Appliances, the last few ESXi hosts can be powered off from their BMC (HP ILO or Dell iDRAC) and re-installed with VM Squared.