Vapor to Nutanix AHV
This guide covers migrating guests from a host managed by Awanio Vapor into a Nutanix AHV cluster. It is the reverse of Nutanix AHV as a source, and it is cold only.
Preview in Condensa 2.1.0
This path has been tested with a single-disk BIOS guest without a network interface, on AOS 6.5. Guests with UEFI firmware, several disks or network interfaces have not been tested on it yet. Check each migrated VM before you rely on it, and keep the source guest until you have.
Before you start
- Sign in to Condensa from the overview.
- The source host must run a Vapor release with disk export. Earlier Vapor releases fail the migration at the export step, before anything is created on the cluster.
- Add the Vapor host as a provider, as in Add the Vapor provider.
- Add the Nutanix cluster as a provider, with the AHV host login filled in, as in Add the Nutanix provider. Here the Prism account also has to be able to create and delete VMs.
- Power off each guest you intend to migrate, on Vapor. Condensa does not shut a guest down.
How the disks move
- Condensa creates the VM on the cluster through Prism, powered off, with empty disks of the source sizes in the storage container you choose.
- Vapor exports each of the guest's disks read-only, over NBD with mutual TLS. Every disk is exported before the first byte is read, and the exports stay open until the last disk is done. While they are open, Vapor refuses to start the guest, so it cannot change between one disk and the next.
- On one AHV host,
qemu-imgreads each export and writes it into the new vdisk through the host's own iSCSI redirector. Only the parts of a disk that hold data cross the network. - When every disk is copied, the exports are closed. The VM is powered on if you asked for it.
Vapor host (read-only export, mutual TLS) ──▶ qemu-img on the AHV host ──▶ iSCSI redirector ──▶ new vdiskNothing lands on Condensa, and no image, snapshot or clone is made on the cluster.
If the copy fails, Condensa deletes the VM it created, found by the UUID its own create task returned. No other VM or resource on the cluster is changed, powered on or deleted. The source guest on Vapor is left as it was.
Which guests can move
| Guest | Result |
|---|---|
| Powered off | Can be selected |
| Running | Cannot be selected. Power it off on Vapor first |
| Disks that are files in qcow2 or raw format | Copied |
| A disk that is not a file, or in another format | The migration is refused when it is created |
Machine type pc (i440fx) | Created as is |
Machine type q35 | Refused when the migration is created. Prism's v2 API creates only pc VMs |
Each disk keeps its controller family:
- virtio-blk becomes a PCI disk;
- virtio-scsi becomes a SCSI disk;
- SATA stays SATA.
Create the migration
Click the Migrations tab, then Create Migration.
Step 1: Basic info and target
Fill in the Migration Name and choose the Nutanix provider as Target Provider. There is no host to choose: Prism places the VM. Choose the Storage Container the new disks go into.
Step 2: Source provider
Select the Vapor provider. There is no datacenter to pick.
Step 3: Select guests
Only powered-off guests can be selected.
Step 4: Mapping
- Target Network sends every interface of every guest to one AHV network. The Vapor host lists a guest's interfaces only when the migration is created, so they cannot be mapped one by one here. With no Target Network, the VM arrives with no interfaces.
- New MAC addresses gives the copy fresh addresses. Turn it on when the copy will run next to the original on the same network. Without it, each interface keeps its source MAC.
- Verify the copied disks compares each disk with its source right after the copy, before the VM is powered on. See Check the copied disks.
- Untick Power on after migration to leave the VM off until you have checked it.
Step 5: Review
Check the target, the storage container, the network and the guest list, then click Create Migration.
Start and monitor the migration
Open the action menu (three dots on the right of the row) and select Start Migration. The migration log lists the VM's creation in Prism, each disk as it is copied, and the closing of the exports.
As a reference, a powered-off CentOS 7.9 guest with one 50 GiB disk holding 2.3 GiB of data migrated in 1 minute 31 seconds, 5 seconds of it to create the VM.
Check the copied disks
An AHV host can compare a copied disk with its source byte for byte (qemu-img compare).
- During the migration: with Verify the copied disks on, each disk is compared right after its copy, before the VM is powered on. A disk that differs, or that cannot be compared, is copied again under the usual retry, so a disk never reaches a running VM unchecked. The check reads both disks once more, so it takes about as long again as copying the data they hold.
- After the migration: open the migration and press Check the disks on a VM. Both VMs must be off. Vapor exports each disk read-only in turn.
Identical to the source is proof. Differs from the source comes with whatever Condensa knows of either VM having run since the copy: its own power-on, or Prism's task history. If either VM has run, a difference says nothing about the copy.
What must reach what
| From | To | Port | Why |
|---|---|---|---|
| Condensa | Prism Element | 9440 | Creating, checking and, after a failure, deleting the VM |
| Condensa | The AHV host you entered | 22 | Running the copy on the host |
| Condensa | The Vapor host | The Vapor API port | Inventory, disk exports |
| The AHV host | The Vapor host | The port Vapor opens for each export | The host reads each disk from its export |
The AHV host dials the Vapor host at the provider's Disk stream address when one is set, and otherwise at the host name of the provider's API URL. Before it reads a disk, Condensa asks the AHV host whether it can reach the export, so a blocked port stops the migration with the address and port it tried.
The client certificate for each export is placed on the AHV host in a 0700 directory under /run and removed once that disk is done.
Verify on the target
In Prism, open the new VM. It is named as on Vapor, plus any prefix you set. Start it, or let Condensa start it, and check inside the guest that it booted and that its interfaces came up on the right network. The guest on Vapor is left off and unchanged.
For credit-based licensing and how migrations consume credits, see Licensing.