Disk images as a source
This guide covers migrating a machine that you have exported to a VHD or VHDX file into a host managed by Awanio Vapor or a fleet managed by Awanio Cockpit. The file can be a Hyper-V export, or a physical server exported with a tool such as Disk2vhd. The same files can also go to Awanio CEP, as before.
The migration is cold: you export the machine, upload the file to Condensa, and migrate it. Nothing runs on the source while Condensa copies.
Tested so far in Condensa 2.2.0
This path has been tested with Linux guests going to Vapor. A Windows export from Disk2vhd, an image that boots only with UEFI, and a Cockpit target have not been tested on a host yet. Check each migrated VM before you rely on it, and keep the source machine until you have.
Before you start
- Sign in to Condensa from the overview, as an admin. Only an admin can add a provider and upload files.
- Add the target as a provider: Add the Vapor provider or Add the Cockpit provider.
qemu-imgmust be installed on the Condensa host (sudo apt install qemu-utils). It is already on the Condensa appliance.
Export the machine
Export each machine to one .vhd or .vhdx file that holds its boot disk. A machine with several disks cannot be uploaded yet; that comes in a later release.
- Hyper-V: stop the VM, remove its checkpoints, and copy or export its VHDX (
Export-VM, orCopy-Itemof the disk the VM uses). - A physical Windows server: export the system disk to a VHDX with a tool such as Disk2vhd.
- A Linux disk in another format: convert it with
qemu-img convert -O vhdx <disk> <name>.vhdx.
Note the machine's CPU count, memory and operating system. The file carries none of them, so you enter them when you upload.
Add the provider and upload the file
- Go to Providers and press Add Provider. Pick VHD File.
- Name the provider.
- Choose the
.vhdor.vhdxfile, then fill in the machine's name, CPU, memory and operating system. The disk size is read from the image. - Press Create Provider and Upload. Condensa creates the provider, then uploads the file under it. Keep the drawer open until the upload is done. The upload is resumable, so a dropped connection carries on where it stopped. If the upload fails, the provider stays and you can add the file from it.
The provider detail then lists the file as Ready to migrate, with its size and operating system.
What Condensa accepts
Condensa accepts only a disk that opens no other file: a fixed or dynamic VHD, or a VHDX. It checks the file when it arrives and again right before each copy. These are refused, and the refused file is deleted:
- a differencing disk (a VHD or VHDX that depends on a parent);
- a file whose content does not match its extension, such as a qcow2 renamed to
.vhdx; - any other format.
The form shows the reason, for example disk image refused: not a VHDX: no file signature.
Create the migration
Create the migration as for any other source, with the disk image provider as the source and Vapor or Cockpit as the target. A few steps differ:
- The VM list shows each file as Uploaded file, with the operating system you entered.
- There is no warm migration and no manual cutover: the source is a file.
- The image has no network interfaces. Add them in the wizard. Each one gets a new MAC address, so the guest may name its interface differently from the original machine.
- The storage pool can stay on Default. The wizard names the pool the target will use.
How the disks move
- Condensa checks the file again and asks
qemu-imgwhat it holds, with the format named, so nothing is guessed from the content. - The target opens a writable export of a new volume, at the image's virtual size, over mutual TLS.
qemu-imgon the Condensa host converts the image straight into that export.- Condensa creates the VM: the disk on SATA, firmware (BIOS or UEFI) read from the boot disk's partition table, CPU and memory as you entered them, and the interfaces you added.
Uploaded file on Condensa ──▶ qemu-img on Condensa ──▶ writable export on the target host (mutual TLS) ──▶ new volumeThe target needs no route to Condensa. Condensa must reach the target host on the migration port range, as for Amazon EC2 as a source; see What must reach what.
If the copy fails, the open export is aborted and any volume already finished for that VM is removed. The uploaded file stays on Condensa, so you can retry.
After the migration
- A disk on SATA boots without virtio drivers, which suits a Windows guest that has never run on KVM.
- If the target would not power the VM on, for example because an interface is on a network that is not active, the migration ends as Completed with warnings. Fix the cause, then press Start VM. See Migration status.