Sources: image, root, SSH
Every extraction command (inventory, drift, migrate, and readiness per line) accepts a source three ways. They are mutually exclusive.
--image <file> — a cold disk image
Vrtmv detects the format from magic bytes and mounts it read-only. Supported formats:
| Format | Notes |
|---|---|
| raw | attached via losetup |
| qcow2 | attached via qemu-nbd |
| vmdk | attached via qemu-nbd |
| OVA | a tar bundle of a VMDK — extract first |
| ploop | needs ploop tools — extract first |
Mounting needs root and the relevant tooling (see Installation). LVM-backed roots are activated automatically; btrfs subvolumes and multi-device/RAID are not yet handled. The attach is read-only at the block layer, so a journal replay can never modify the source.
vrtmv assess <image>mounts the image read-only in the same way, so it needs root and the same tooling. It is local only: no API call and no account.
--root <dir> — an already-mounted filesystem
Point Vrtmv at a directory that is the root of the source filesystem (a loop mount you manage, a snapshot, a sidecar-attached volume). No privileges beyond read access are required.
A symbolic link in the root is followed inside the root, as the machine it came from would follow it: /var/run -> /run is the root's /run, not the /run of the machine running vrtmv, and a relative link with more .. than the root is deep stops at the root. This holds for --image and --ssh as well, for every command that reads the source, and for vrtmv identity --root, which writes its stamp inside the root. A link written with the path the root is mounted at (/mnt/rebuild/opt/job) leads nowhere and is read as that.
--ssh user@host — a running Linux VM or bare-metal server
Collect state from a live host over SSH into a local bundle, then analyse it exactly as if it were an image. This is how Vrtmv reverse-engineers workloads that can't be imaged:
- Running Linux VMs — a live guest you can't or don't want to snapshot.
- Legacy bare-metal servers — physical machines that predate the virtualization estate, with no disk image to hand. Vrtmv treats them as first-class migration sources: collect over SSH, translate, and rebuild the workload on a modern VM or target OS.
Options:
| Flag | Purpose |
|---|---|
--ssh-port <n> | Non-default SSH port. |
--ssh-key <file> | Identity file (otherwise agent / ssh_config). |
--jump user@bastion | ProxyJump / bastion. |
--sudo | Wrap the remote read in sudo (needs passwordless sudo). |
vrtmv runs sudo as sudo -n, so it never waits on a password prompt. A host where sudo asks for a password is not read: the error says sudo refused on <host>, quotes sudo's own line and says what to do, and the read is not retried as if the host were unreachable. The same holds for sudo-rs (Ubuntu 26.04), which says interactive authentication is required, and for a host with no sudo installed. Another line from sudo, such as its warning that it cannot resolve the host's own name, is not taken for a refusal. The same goes for every command that reads an SSH source with --sudo, or with sudo=yes on a manifest line.
A login that is not root is metered like any other: the host keeps the identity a read as root finds, so reading it both ways takes one seat. If the login cannot read /etc/vrtmv/instance-id, /etc/machine-id or a directory or link on the way to them, the read cannot show which identity the host holds, and migrate and the other commands that write a migration refuse it. Read it as root or with --sudo. --preflight is free and still runs.
Host and jump arguments are validated against argument-injection before any process is spawned.
The collection fetches /etc, the package database and the other files the analysis reads. Where a reader needs only names and sizes, the host sends a listing rather than the files: /boot (its kernels and initramfs images), the container logs under /var/lib/docker/containers and podman's container storage, the kernel-module trees and /opt, /usr/local and /srv. A host with large kernels or busy containers costs the same to collect as one without.
Which to use
Cold image (--image) is the most audit-defensible: the source is never booted and cannot change during analysis. --root is operationally simplest when you already have the filesystem mounted. --ssh is for running hosts you cannot take offline.
New to vrtmv? Sign up free for 10 migrations, or get a free assessment: run it on one hard host and we review the parity report with you.