Skip to main content

Chris Engelbert Chris Engelbert

ovftool After the vSphere Exit: What Exports and Imports a VM Now

Nov 3, 2026  |  7 min read

ovftool After the vSphere Exit: What Exports and Imports a VM Now

After the VMware® vSphere exit, ovftool still exports a VM to an OVA file, but nothing in it deploys that file onto Kubernetes. The Migration Toolkit for Virtualization (MTV) takes over on Red Hat® OpenShift® Virtualization: it imports the OVA, converts the disks, and its storage map sends them to the StorageClass you pick.

ovftool is the VMware OVF Tool, a command-line utility that imports and exports OVF packages for VMware products. This post maps each ovftool step in a runbook or CI job to its successor, names the tool that converts the disk, and shows where the disk goes. It does not cover downloading the binary. Disk-level commands are in the vmkfstools replacement post, and image catalogs are a separate decision.

What each ovftool command becomes after the exit

An ovftool step is either an export out of vSphere or a deploy into a VMware target, and each one has a different successor. The vSphere 8.0 OVF Tool guide (check the guide for your ovftool release) describes an OVF package as a descriptor plus optional manifest, certificate, disk and resource files, and an OVA as a TAR archive that contains an OVF package. The descriptor is the OVF file; the disks sit beside it or inside the archive.

An export needs a powered-off VM. The guide says to power off a VM or vApp before exporting it, and its --powerOffSource option ensures the VM is powered off before the export. Example syntax, adapted from the guide and not tested here:

Terminal window
ovftool --powerOffSource vi://<vcenter>/?dns=<vm-dns-name> <vm-name>.ova

A deploy goes the other way. The guide’s deploy examples target an ESXi host, vCenter Server, pull mode, vCloud Director and a vApprun workspace. Every target is a VMware product; none is Kubernetes. A deploy through vCenter Server names a datastore with -ds and a VM name with -n.

The guide’s format-change examples convert between package formats: OVF to OVA, OVA to OVF, and VMX to either. It does not describe converting a disk for KVM: its --diskMode option only selects among VMware disk types such as thin, thick and sparse. Disk conversion therefore belongs to the migration tooling. In MTV, cold migration converts each VM to be compatible with OpenShift before transferring it, and MTV’s conversion uses virt-v2v. Per the libguestfs documentation, that tool can modify a guest to make it bootable on KVM and install virtio drivers.

ovftool stepAfter the exitWho does the work
Export a VM to OVA with --powerOffSourceThe same command, if you take the OVA path; or no export at all with the MTV vSphere providerovftool, or MTV reading from vSphere
Deploy an OVF or OVA, with -ds and -nA migration plan that names a destination StorageClass instead of a datastoreMTV
Probe an OVF or OVAProbe mode shows what a source contains; use it to check disks and networks before you planovftool
Convert between OVF and OVANot needed: MTV accepts compressed .ova packages and extracted OVF packagesNobody
Convert the disk for KVMGuest conversion before the transfer in cold migrationvirt-v2v, used by MTV

Table 1: each ovftool step, its successor after the exit, and who runs it

Choose the path that replaces your export and import

Three paths replace an ovftool export-and-deploy pair, and the right one depends on where the VM runs today and who built the image.

  • MTV with the vSphere provider. Choose it when the VM still runs on a vCenter or ESXi host the cluster can reach. No OVA exists, so ovftool drops out. Red Hat’s MTV 2.12 planning guide says that using MTV without the Virtual Disk Development Kit (VDDK) “is not recommended and could result in significantly lower migration speeds.” Warm migration is available only for VMware vSphere and Red Hat Virtualization sources.
  • MTV with the OVA provider. Choose it when the OVA already exists or the source is out of reach for the cluster. MTV supports only OVA files created by VMware vSphere. Files that only claim compatibility might succeed, but MTV does not support them. ovftool is one way to produce the file.
  • A manual import with the Containerized Data Importer (CDI). Choose it for a single disk image. Extract the VMDK from the OVA and import it as a DataVolume. The CDI project’s supported-operations page lists qcow2, VMDK, VDI, VHD, VHDX and raw as importable formats and says it converts all of them to raw. The KubeVirt user guide lists only raw and qcow2, so check the format list for your CDI version. OVA is not on that list, and the list describes image format conversion only. Modifying the guest to boot on KVM and installing virtio drivers is something virt-v2v can do.

Vendor appliances are the exception to all three. The MTV 2.12 guide warns that converting a vendor OVA may invalidate vendor support agreements. It prefers the vendor’s native QCOW2 image, imported through the OpenShift Virtualization upload or import-from-URL workflow. In a CI job that deployed appliances with ovftool, that image is the replacement.

Run the OVA path with MTV, step by step

The OVA path has five steps, from export to a verified VM. It assumes OpenShift Virtualization and MTV are already installed on the cluster.

  1. Export each VM while it is powered off. Run the export command from the previous section. Keep the source VM and its datastore until step 5 passes.
  2. Place the files on an NFS share. The MTV 2.12 guide sets these rules:
    • Compressed packages need the .ova extension, and MTV scans the root folder and first-level subfolders.
    • Extracted packages may hold only one .ovf file per folder, and MTV scans down to second-level subfolders.
    • For browser upload, the share must be writable by the QEMU group (GID 107) and each .ova filename must be unique.
  3. Create the OVA provider. Create the provider in the MTV console or CLI with the NFS share as its source, as the MTV guide describes.
  4. Map networks and storage. An OVA has no datastore to translate, so the plan maps the OVA’s disks to one destination StorageClass that you choose once. MTV applies default volume and access modes per provisioner, and a PVC’s volume mode cannot be changed after creation, so check the defaults for your provisioner in the planning guide before you start.
  5. Start the plan and verify. When the plan finishes, confirm the PVC is Bound, the VM boots, and its disks and network interfaces match the OVF descriptor. Testing migrated VMs before cutover goes further. If a check fails, power the source VM back on and rerun the plan after you fix the cause.

What the converted disk lands on

The destination StorageClass has to exist before the plan runs, because the storage map points the OVA’s disks at it. simplyblock does not export, import or convert anything in this chain. Its part starts when MTV writes the disk.

In the 26.3 documentation, the simplyblock operator creates a StorageClass named simplyblock-<namespace>-<clusterName>-<poolName> once a StoragePool resource becomes active, served by the csi.simplyblock.io provisioner. Its parameters cannot be changed afterward, so a pool with different defaults needs a new StoragePool. Choose the class before you start the first plan.

The class’s csi.storage.k8s.io/fstype parameter defines the filesystem used to format the logical volume. If it is not set, the container gets a raw block device. Compare that with the volume mode MTV will apply before you run the plan.

simplyblock provisions each PVC as a thin provisioned logical volume: space is allocated only when needed, and a requested size is rounded up to the next full GiB. The documentation covers both filesystem and raw block volumes. For how a thick or thin source disk maps onto that, see thin vs thick provisioning on Kubernetes.

Once the disk has landed, a snapshot is instant and copy-on-write, and a new PVC can be created from it through dataSource. That gives you a rollback point before the first boot, without a second import.

You may also like:

Replacing vSAN Storage When Moving to OpenShift or Kubernetes
Replacing vSAN Storage When Moving to OpenShift or Kubernetes

Most VMware migration guides focus on the compute layer — but vSAN is the storage layer, and it does not migrate. Here is what platform teams need to plan when replacing vSAN as part of an OpenShift or Kubernetes transition.

KVM vs VMware: Architecture, Cost Model, and the Exit Question
KVM vs VMware: Architecture, Cost Model, and the Exit Question

KVM and VMware ESXi solve the same problem with opposite models: an open hypervisor inside the Linux kernel versus a proprietary integrated suite. How they differ in architecture, operations, and cost, and what a migration involves.

KubeVirt vs VMware – When to Use Each Tool
KubeVirt vs VMware – When to Use Each Tool

KubeVirt vs VMware helps you see how each handles VMs, workloads, and hybrid environments in modern infrastructure setups.