Skip to content
ImagineWorld

Migrating from VMware to Harvester

node_idnode-book_mastering-suse-harvester_chapter-11-migrating-from-vmware-to-harvester
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num11
chapter_titleMigrating from VMware to Harvester
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 11: Migrating From VMware To Harvester

Section titled “Chapter 11: Migrating From VMware To Harvester”

VMware has been the default choice in many enterprises for years. A move to Harvester is rarely a simple technical swap. You are shifting from a proprietary hypervisor and vCenter driven model to a Kubernetes based HCI platform built on KubeVirt, Longhorn and Rancher. At the same time vendors, licensing and commerce strategies change and that forces a lot of teams to evaluate alternatives seriously rather than as side projects.

A good migration treats VMware and Harvester as two platforms that can run in parallel for a while. Production systems do not tolerate abrupt moves. You need a clear picture of what runs where, what is critical, which workloads are good first candidates, and what risk you are taking each time you move something. You also need to decide which migration path to use for each workload. Some systems are best handled with direct V2V migration from vSphere to Harvester using the official vm import controller. Others should be rebuilt from templates on Harvester because their VMware VMs are already messy. A few may stay on vSphere indefinitely if hardware dependencies or vendor support make that the only realistic option.

The good news is that Harvester provides concrete tooling for VMware migration. The vm import controller can pull VMs directly from vCenter, using VmwareSource and VirtualMachineImport custom resources to describe sources and target mappings. This controller supports VMware, OpenStack and OVA packages and handles export, disk conversion and re creation of VMs inside Harvester automatically.

The rest of the migration story is about preparation, network and storage design, careful cutover plans and the discipline to keep VMware and Harvester interoperable while you move workloads in phases.

11.1: Inventory, Assessment And Risk Analysis For VMware Environments

Section titled “11.1: Inventory, Assessment And Risk Analysis For VMware Environments”

If you start by asking how to convert a specific VMDK to qcow2, you will miss the bigger risk questions. VMware environments often grow in unstructured ways. Teams clone templates, keep old VMs alive because nobody is sure if they are still used, and layer more and more network constructs into portgroups and distributed switches over years. Before you even touch a Harvester cluster, you should build an inventory and a classification of what you have.

Basic raw data is easy to obtain. vCenter can export lists of VMs, hosts, datastores and networks. Tools like RVTools or custom PowerCLI scripts have been used for years to pull VM configuration, disk sizes, network attachments and VMware tools status into spreadsheets or databases. Commercial migration guides and tools for VMware talk extensively about these inventory and assessment steps because they are equally necessary when you move to cloud or to another hypervisor.

From that inventory, you want a few slices that are specifically useful for Harvester. One slice is application criticality. Which systems are customer facing or revenue related, which are internal but important, and which can tolerate longer outages or more aggressive experiments. That classification will dictate the order in which you move workloads. Another slice is platform suitability. Some VMs have unusual hardware dependencies such as special PCI cards or licensed drivers that expect VMware. Those will either need PCI passthrough with equivalent hardware on Harvester or they will remain on vSphere.

You should also identify which VMs are database servers, application servers, which are middleware such as message queues, and which are support functions like monitoring and logging. Databases are usually more sensitive to IO latency and consistency guarantees, so they depend heavily on how you design Longhorn storage networks in Harvester. Stateless application tiers are often the easiest first candidates for migration because you can scale them horizontally and cut them over behind a load balancer.

Networking deserves its own view. In vSphere, VMs connect to portgroups that map to VLANs or VXLANs through standard or distributed switches. Those portgroups often carry names that encode environment, VLAN, purpose or security posture and there may be overlaps and inconsistencies after years of changes. You should map portgroups to real VLAN IDs and IP ranges and then design an equivalent or cleaner mapping in Harvester, where VM networks are defined explicitly with VLAN aware Linux bridges on each host. VMware and networking documentation emphasize that VLAN tagging policy and portgroup layout control how virtual traffic connects into the physical network; you need to translate that model to Harvester networks without breaking assumptions that applications have about IP ranges and reachability.

Storage inventory is next. Identify which datastores hold which VMs, what their performance characteristics are, and how full they are. Thick provisioned disks, large monolithic VMDKs and old snapshots all have consequences when you migrate. Many VMware migration references note that V2V moves are easier when snapshots are flattened and disks are in a tidy state, while P2V moves from physical hardware require separate filesystem cleanup.

You also want to understand VMware tools usage. The Harvester vm import controller can perform graceful shutdowns on VMware based VMs when VMware Tools is present. If it is not, documentation notes that the controller may not shut down the VM and that you may need to set forcePowerOff explicitly or shut down the VM yourself before import. That is not a minor detail. For some workloads, an unplanned power off might corrupt data or violate process requirements, so VMware Tools status belongs in your risk assessment.

Once the data is gathered, you can do a first risk pass. Critical transactional systems with heavy storage usage and complex networking are high risk for early migration. Lightweight workloads with simple networking, stateless APIs and standard OS versions are low risk. VMs with unsupported OS versions or unknown ownership are high risk for different reasons: nobody may be able to fix them if something goes wrong, and their security posture is often poor.

Risk analysis is not meant to delay action. It is a way to pick migration candidates that will give you maximum learning with acceptable impact. Early migrations should target systems where you can accept moderate downtime, where there is a clear owner who can test thoroughly, and where your Harvester cluster runs in a similar network and storage environment to vSphere.

Finally, treat constraints as first class data. Licensing end dates for VMware products, hardware refresh windows, and data center contracts all influence how quickly you must move. If a VMware contract is expiring in a year, you cannot rely on ad hoc migrations. You need a timetable that assigns portions of the inventory to quarters, with clear space for testing and fallbacks. Some SUSE migration materials for VMware to SUSE virtualization emphasize exactly this kind of planning, including dates when you stop provisioning new workloads on vSphere and start sending all new deployments directly to the new platform.

By the time you finish assessment and risk analysis, you should know three things. First, which workloads are in scope for Harvester migration in the near term. Second, which migration patterns are suitable for them from a technical standpoint. Third, what business and technical risks are attached to each batch, and which mitigations you will use. That gives you a solid base before touching any new tooling.

11.2: VM Image Migration Patterns P2V, V2V Template Based Rebuilds

Section titled “11.2: VM Image Migration Patterns P2V, V2V Template Based Rebuilds”

Harvester supports more than one way to bring workloads over from VMware. At a high level, there are three patterns. One is P2V, where a physical machine becomes a VM on VMware or directly on KVM and then moves into Harvester. Another is V2V, where an existing VMware VM is imported intact into Harvester. The third is template based rebuilds, where you do not migrate the VM at all but instead recreate the application on a clean VM using Harvester templates, configuration management and automation.

P2V is mainly relevant if you still have physical servers that were never virtualized. VMware vCenter Converter and similar tools have long supported P2V migration of Windows and Linux systems into vSphere, with options for hot or cold migration depending on how much downtime you can accept and how sensitive the data is. Once those systems are running as VMware VMs, you can treat them like any other VM for V2V moves into Harvester. The main caution is that P2V often preserves quirks from the physical system such as unusual partition layouts or outdated drivers, so a subsequent clean rebuild on Harvester may still be a better long term option.

For V2V into Harvester, the official mechanism is the vm import controller. This addon is available starting with Harvester 1.1 and supports VMware, OpenStack and OVA sources. You enable the addon in the Harvester UI, configure scratch storage (PVC backed space that is about twice the size of your largest VM, as the documentation advises) and then define source clusters and import jobs using CRDs.

The first CRD describes a VMware source.

apiVersion: migration.harvesterhci.io/v1beta1
kind: VmwareSource
metadata:
name: vcenter-prod
namespace: default
spec:
endpoint: "https://vcenter-prod.example.com/sdk"
dc: "ProdDC"
credentials:
name: vcenter-prod-credentials
namespace: default
---
apiVersion: v1
kind: Secret
metadata:
name: vcenter-prod-credentials
namespace: default
stringData:
username: "svc-harvester-migrate"
password: "S3cur3P4ss"

When this source is created, the vm import controller logs into vCenter and verifies that the configured datacenter exists. If the check passes, the VmwareSource status is marked as ready and you can reference it from VirtualMachineImport objects.

Next, you define the actual VM import.

apiVersion: migration.harvesterhci.io/v1beta1
kind: VirtualMachineImport
metadata:
name: acct-app-01-import
namespace: default
spec:
virtualMachineName: "acct-app-01"
folder: "Production/Accounting"
sourceCluster:
name: vcenter-prod
namespace: default
kind: VmwareSource
apiVersion: migration.harvesterhci.io/v1beta1
storageClass: "longhorn"
defaultDiskBusType: "scsi"
networkMapping:
- sourceNetwork: "DVPG-Prod-Web"
destinationNetwork: "default/vlan-web"
- sourceNetwork: "DVPG-Prod-DB"
destinationNetwork: "default/vlan-db"
networkInterfaceModel: "e1000e"
defaultNetworkInterfaceModel: "virtio"
skipPreflightChecks: false
forcePowerOff: false
gracefulShutdownTimeoutSeconds: 60

This manifest tells Harvester to locate the VMware VM named acct-app-01 in the Production/Accounting folder on the vCenter defined by vcenter-prod, export its disks, convert them into raw images stored as VirtualMachineImage resources using the longhorn storage class, map its network interfaces from VMware portgroups to Harvester VM networks, and then create a new VM in Harvester based on that. The controller performs preflight checks on storage classes and network mappings and exposes status fields that show progress, from export through conversion to VM creation.

Two configuration knobs matter for service continuity. gracefulShutdownTimeoutSeconds controls how long the controller waits for a clean shutdown on the VMware side when VMware Tools is present. If the VM does not shut down in time and forcePowerOff is false, the import will fail without forcing power off, which is often what you want for critical systems, because it avoids abrupt termination. For less sensitive VMs, you can set forcePowerOff to true so that import proceeds even if a clean shutdown does not work. Documentation notes a known issue in some Harvester versions where imports of VMware VMs without VMware Tools installed can hang; workarounds are to shut down the VM manually, enable forcePowerOff, or install open vm tools.

Not every environment wants to use vm import controller from the start. Some administrators prefer more manual control and a slower introduction of new components. In that case you can use more traditional V2V techniques. Export the VMware VM as an OVA or retrieve its VMDK, then convert the disk image to a format that Harvester and KVM handle well such as qcow2 or raw using qemu img. Community threads on moving from VMware to Harvester describe exactly that approach and show basic qemu commands.

Terminal window
# On a conversion host with qemu-img installed
qemu-img convert -f vmdk -O qcow2 acct-app-01.vmdk acct-app-01.qcow2
# Optionally pre-allocate or compress
qemu-img convert -p -f vmdk -O qcow2 -o preallocation=metadata acct-app-01.vmdk acct-app-01.qcow2

After conversion, you upload the qcow2 file into Harvester as an image. The documentation describes three supported methods: upload via URL, upload via local file from your browser, or create images from existing volumes. When you import via URL, Harvester downloads the image from a reachable location and creates a VirtualMachineImage in the specified namespace.

Once the image exists in Harvester, you create a new VM that uses this image as its root disk. You may still need to adjust drivers, network configuration or bootloaders inside the guest, particularly when moving from VMware virtual hardware to virtio based devices on KVM. This manual V2V pattern is slower per VM but gives you more granular control and straightforward rollback: the VM on vSphere is unaffected until you cut traffic over.

The third pattern, template based rebuild, is often the best long term approach for managed applications. Instead of cloning the entire VM from VMware, you define a clean golden image in Harvester, maintain application configuration in Ansible, cloud init or similar tools, and recreate the services in new VMs. The old VMs become reference points until you are confident that the new ones behave as required. Many migration guides from VMware to other platforms recommend this approach for application servers and stateless services, reserving direct V2V only for systems where rebuild cost is high or where vendor support requires a precise environment.

In practice, a VMware to Harvester program will use all three patterns. P2V might appear rarely now, used only for a few remaining physical servers. V2V using vm import controller or manual conversion handles medium complexity cases and offers faster wins. Template based rebuilds are reserved for strategic applications where you want to clean up technical debt while you migrate.

11.3: Network And Storage Cutover Strategies Without Excessive Downtime

Section titled “11.3: Network And Storage Cutover Strategies Without Excessive Downtime”

Migrating disk images is only part of the work. You also need to plan how traffic reaches the new VMs and how data is protected during and after the move. Network and storage cutover strategies determine how much downtime you incur and how easy it is to go back if something goes wrong.

On the network side, the cleanest strategy is to keep IP ranges and VLANs consistent across VMware and Harvester. If your production application segment is on VLAN 200 with a certain subnet, you configure Harvester VM networks to attach to that VLAN using Linux bridges that map to trunk ports on your switches. VMware networking documentation for distributed switches makes clear that portgroup VLAN tags essentially serve as policies for how traffic is tagged or untagged on uplinks. In Harvester, you mirror those policies on the host bridges and switch configuration.

Practically, that means configuring physical switches so that Harvester host interfaces carry the same trunk VLANs that ESXi hosts do. Then you define Harvester virtual machine networks that bind to those uplinks and specify the correct VLAN ID.

apiVersion: network.harvesterhci.io/v1beta1
kind: Network
metadata:
name: vlan-200-web
namespace: harvester-public
spec:
description: "Production web VLAN 200"
clusterNetwork: "mgmt"
vlan:
vlanId: 200

This kind of definition, combined with switch trunks, lets Harvester VMs obtain IP addresses on the same segment that VMware VMs used previously. During migration, you keep both platforms connected to the same VLANs. That gives you flexibility to move individual VMs or application tiers without changing client routing.

You should also consider how live migration and background traffic behaves inside Harvester. There is a dedicated setting named vm-migration-network that controls whether VM migration traffic uses the management network or a separate VLAN. Harvester documentation describes how enabling this setting constructs a Multus NetworkAttachmentDefinition behind the scenes and isolates migration traffic onto a separate network. This is particularly useful if you have large VMs with plenty of memory and disk and if you want to avoid saturating the same network used by application traffic during Harvester maintenance or migration activity.

Configuring the VM migration network can be done directly through the Setting object.

apiVersion: harvesterhci.io/v1beta1
kind: Setting
metadata:
name: vm-migration-network
namespace: harvester-system
value: |
{
"vlan": 310,
"clusterNetwork": "vm-migration",
"range": "10.50.10.0/24",
"exclude": ["10.50.10.200/32"]
}

With this configuration in place, VM migration traffic in Harvester flows over VLAN 310 and IP range 10.50.10.0/24 instead of sharing the management network. This can significantly reduce the risk of timeouts for migrations of large VMs and prevents noisy neighbor effects when migrations run during vSphere to Harvester moves or Harvester upgrades.

Cutover itself can follow a few patterns. One common approach is DNS based switching. You provision the target VM on Harvester with the same hostname and IP as the VMware VM but keep it offline initially. You replicate data using database replication, application level synchronization or rsync while DNS still points to the VMware instance. At cutover time, you stop traffic to the old VM, do a final sync, switch DNS or load balancer configuration to the Harvester instance and monitor. Because the IP remains the same or is at least reachable within the same VLAN, client changes are minimal.

Another approach is IP takeover where a shared virtual IP is used. This can be done with keepalived or load balancers that sit above both platforms. Clients talk to a virtual IP, and during cutover you change the backend pool from VMware to Harvester nodes. This is common for web frontends and stateless services. The important part is that you test failover both ways before actual migration day.

For storage, the primary concern is keeping data consistent and protected while you move. When using vm import controller, disk data flows from VMware to scratch storage on Harvester, then into Longhorn volumes. The documentation emphasizes that the scratch PVC should be sized to twice the largest VM you plan to import, because it needs space for downloads and disk conversion. If this guidance is ignored, nodes can run out of space on /var/lib/kubelet or the scratch PVC, causing scheduling failures and broken imports.

If you choose manual V2V or template rebuild patterns, you usually handle storage replication at the application layer. For example, a PostgreSQL database might be replicated from VMware to Harvester using streaming replication. You bring up a standby on Harvester, let it synchronize, and then perform a controlled switchover. MySQL or MariaDB can use similar replication schemes. Fileservers might sync data from VMware to Harvester VMs using rsync or storage gateway products.

You also need to think about storage cutover on the network side. Longhorn traffic should have its own storage network or at least a sufficient bandwidth allocation. Official guidance suggests using separate network interfaces and VLANs for storage where possible, and Longhorn documentation shows how a dedicated storage network reduces latency and improves rebuild times.

In some cases, you may keep shared external storage that both VMware and Harvester can access during a transition. For example, NFS or iSCSI targets may be mounted by VMs on both platforms. You can then migrate VMs while keeping data on the same backend, then later move data into Longhorn volumes once workloads have stabilized. This is not always ideal because it increases architectural complexity, but it can be useful when storage teams are not ready to migrate all storage off VMware aligned arrays.

Downtime management comes down to preparation and realistic expectations. Complex payloads such as large databases may need maintenance windows measured in hours, especially if data synchronization and schema migrations are involved. Simpler application servers might be moved with only a brief blip while load balancer pools change. In every case, rehearsing cutover in a non production environment or with non critical systems is essential before touching core services.

Harvester and vSphere can coexist on the same physical network provided you plan VLANs, routes and firewall rules carefully. That coexistence is what makes staged network and storage cutovers feasible. If you segregate Harvester behind completely new networks and storage backends, every migration becomes a larger networking and security exercise instead of a focused VM move.

11.4: Phased Migration Plans, Rollback Paths And Coexistence With vSphere

Section titled “11.4: Phased Migration Plans, Rollback Paths And Coexistence With vSphere”

No serious VMware to Harvester move should proceed as a single event. Phased plans are your main protection against surprises. At a high level you want a sequence that starts with lab validation, moves to low risk production adjacent systems, and only then touches critical services. Each phase needs a clear rollback path and a defined way to handle systems that cannot migrate easily.

Lab work starts on a non production Harvester cluster. There you validate core functions such as vm import controller, network mappings, Longhorn performance and integration with Rancher. You run through a couple of full V2V migrations from vSphere to Harvester, including DNS or load balancer cutover and, ideally, failures that require going back to VMware. You also use this time to develop standard Terraform modules or YAML templates for Harvester VMs so that your production cluster does not become a pile of one off definitions.

Once lab patterns are repeatable, you define a first production migration wave. That wave typically includes internal services such as build agents, proxy servers, or small internal applications with clear owners. They give you real user traffic but tolerate some disruption. For each service, you document how cutover will work and how you will revert to VMware if the Harvester instance misbehaves. The easiest rollback is to leave the VMware VM powered off but untouched after a successful migration, so that starting it again is as simple as powering it on and pointing traffic back.

Rollback strategy must be clear particularly when using vm import controller. The import process exports and converts disks but does not alter the source VM, except for shutdown behavior. That means you can power the VMware VM back on later if you decide that the Harvester copy is not ready, as long as you handle any data divergence. For workloads that changed data while running on Harvester, you need a conscious decision about which side is authoritative before switching back.

There are also cases where you need long term coexistence rather than one way migration. Some vendors certify only VMware and may not support KVM based hypervisors formally. Some appliances rely on VMware specific APIs or features. In those situations, you should not force migration. Instead, you keep vSphere around for a shrinking set of workloads while gradually moving everything else to Harvester. SUSE materials on moving to SUSE virtualization often call out this kind of coexistence as a realistic target in the medium term, rather than promising that every workload can move.

Coexistence planning includes operational concerns. Both platforms need monitoring, backup and patching. You may choose to consolidate tooling by exporting metrics from Harvester into the same observability stack that monitors vSphere. For backups, you can use products that understand both VMware snapshots and KVM based VMs or you can run separate pipelines until more of your estate is on Harvester. Either way, you should avoid letting vSphere become a forgotten corner just because the migration has started.

A mature phased plan often uses environment boundaries as milestones. Development and test environments move first, sometimes through rebuilds against Harvester templates. That flushes out issues in CI pipelines, artifact handling and configuration management. Pre production and staging environments follow. Production migrates last, often in multiple waves aligned with business calendars. For example, finance systems might only move outside financial close periods, and customer facing services might avoid peak seasons.

Throughout these phases, communication with stakeholders matters. Application owners need to know when their systems are moving, what tests they must run, and how rollback will be handled if they are not satisfied with behavior on Harvester. Operations teams need clear roles about who manages VMware during the coexistence period and who owns Harvester and Rancher. Security teams will want to revisit hardening and compliance posture on the new platform.

Over time, the goal is to reduce vSphere to a smaller footprint that eventually can be retired if business and technical constraints allow. Until then, you treat VMware and Harvester as two pillars of the same infrastructure, linked by network connectivity, DNS, possibly shared storage and common monitoring. Migration then becomes a continuous process: any new workload is considered for Harvester first; only if it truly needs VMware does it go to vSphere. That ensures the direction is clear, even if the final state remains a mixed environment for years.