reloca.toby XServer

Move your Linux server with one command. Everything included.

reloca.to migrates a running Linux server from any provider to XServer over the network: partitions, RAID and LVM, filesystems, the bootloader and the network configuration. You run one command and get the same server on new hardware.

Runs on the new server, booted into XServer Live OS. The old server is only read: booted into the Live as well (off-line relocation), or still running its own system (on-line relocation: copied in passes while it serves, frozen for the last seconds).

Read the guide

curl -fsSL reloca.to | bash

Two ways to move: with a window, or almost without one

The same tool, the same phases, the same plan you can read. The one difference is where the old server is while it is being copied: shut down into the Live OS, or still serving its users.

Off-line relocation

Both machines in the Live OS
  • The old server is booted into the Live first, so nothing on its disks is mounted and nothing changes while it is read.
  • Every volume is copied once, as fast as the disks and the link allow.
  • It is out of service from the moment it leaves its own system until the new one has booted: half an hour to a few hours, depending on the data.
  • The straightforward case. Pick it when a maintenance window is not a problem.

On-line relocation

Only the new server needs the Live
  • The old server keeps serving its users. reloca-agent copies the volumes while they are being written to, and watches every write as it goes.
  • Pass after pass only the changed blocks follow, until what is still pending would take a few seconds.
  • Then the filesystems are frozen for exactly those seconds, the last delta passes, and the new server comes up. The system was never down for the copying, only for the switch.
  • Needs root on the running server and a kernel that can track writes: eBPF, or ftrace as far back as CentOS 7.

Either way the old server is only ever read. It stays exactly as it was and remains your rollback until you wipe it yourself.

How it works

This is not a disk image. reloca.to understands what is on the server, plans the layout for the new hardware and brings the system to a bootable state by itself.

  1. 1

    Inventory

    The tool records disks, partitions, md RAID, LVM, filesystems with their features, fstab, kernels, bootloader and network — on both sides, reading the old server either from the Live or from the system it is still running.

  2. 2

    Plan

    Two inventories become a text plan: the new layout, what is copied block by block and what file by file, which UUIDs are kept. You can read and edit it before anything is written.

  3. 3

    Partitioning

    The new disk is laid out from the plan; swap and filesystems are created with the same UUIDs, labels and feature sets as the source, so fstab and grub keep working.

  4. 4

    Transfer

    Off-line: volumes stream over the network with partclone and tar, lz4-compressed, over an encrypted channel, with progress and ETA; a failed volume is retried alone. On-line: reloca-agent tracks every write on the old server, copies the volumes, then only the changed blocks pass after pass, and freezes the filesystems for the last delta.

  5. 5

    Fix-up

    Inside a chroot: fstab, mdadm, an initramfs with the drivers of the new controller, grub for BIOS or UEFI; the network interface is renamed to eth0.

  6. 6

    Verify and cut over

    Dozens of checks before the reboot: boot entry, initramfs, cmdline, network. Only after a green verify does the old server leave the network and the new one boots.

Prepare the source

The new server always runs XServer Live OS: pick Live OS in its boot menu in the panel and it boots over the network. For an off-line move the old server joins it there — and it is usually at another provider, so bring it into the Live one of these ways. An on-line move needs none of this: the old server keeps running its own system.

From the running system, with kexec

curl -fsSL reloca.to/live | bash
  • Run it as root on the old server.
  • The script takes the address, gateway, DNS and MAC of the main interface, downloads and verifies the Live, and reboots straight into it with kexec: no BIOS, no boot order, disks untouched.
  • A minute later the server is back on the same address as source.reloca.to. The root password is printed before the reboot.
  • bash -s -- -n only shows what would happen; -a ~/.ssh/id_ed25519.pub puts your key in.
  • Needs root, 1 GiB of RAM, a kernel with kexec and a plain physical interface (no bond, no VLAN). Hyper-V, Azure and some QLogic or Realtek cards: take the ISO.

From an ISO, through the provider’s console

  • Attach it as virtual media (iDRAC, iLO, IPMI) or as the boot ISO of a VPS panel, Proxmox or VMware. Hybrid BIOS and UEFI; Secure Boot off.
  • In the menu choose full.
  • DHCP by default. Static address: press e and replace ip=dhcp with ip=ADDRESS::GATEWAY:NETMASK:HOSTNAME::none:DNS.
  • Add password=… on the same line: the root password for ssh.
  • Carries the Hyper-V, Xen and VMware drivers and common NIC firmware: the way for clouds where kexec cannot run.

Already at XServer

Client panel → server → Boot menu → Live OS
  • Client panel → server → Boot menu → Live OS, exactly as for the new server.
  • The panel sets the root password; the address stays.
  • Any XServer server, physical or virtual.

Whichever way: the old server now runs the Live from RAM, is reachable over ssh as root, and nothing on its disks changes until you decide to wipe it after the move.

Install and quick start

The new server (the recipient) is booted into XServer Live OS; the old one is in the Live as well, or still serving. Over ssh on the new server:

install the tool (it fetches missing packages itself)

curl -fsSL reloca.to | bash

dry run: the plan and every command, nothing is written

reloca.to -n 10.0.0.12

full migration: plan → confirmation → partition → transfer → fix-up → verify → cutover

reloca.to 10.0.0.12
  • 10.0.0.12 is the old server’s address in the Live.
  • One disk in the new server: picked by itself. Several: -d /dev/sdb.
  • The tool names the machines source.reloca.to and destination.reloca.to, so the prompt and the log always say which side you are on.
  • The source is open: github.com/Vitalium/reloca.to. A command that writes to your disks is worth reading first.

Install and run in one go:

curl -fsSL reloca.to | bash -s -- -s plan 10.0.0.12

What the tool never does

  • Never writes to the old server: no fsck, no resize. It stays your rollback.
  • Never wipes a disk before you have read what is on it now and typed its name and size from the screen.
  • Never formats with defaults: every filesystem is created with the source’s features and verified right after mkfs.
  • Never reboots the new server without a green verify.
  • Never touches the other disks of the new server. They are read-only while it works.

Migration guide

The full cycle, phase by phase. Each phase can be run on its own: finished work is skipped by markers, and a dropped ssh session costs nothing (the tool lives in tmux: reloca.to -s attach).

# 1. inventory of both sides and the plan → /run/reloca.to/plan
reloca.to -s plan 10.0.0.12
$EDITOR /run/reloca.to/plan      # edit if you like
reloca.to -s check               # re-validate the edits

# 2. partitioning, LVM, swap, mkfs, after you confirm what will be wiped
reloca.to -s apply

# 3. transfer the volumes (retry a failed one: -o redo=4 -s transfer)
reloca.to -s transfer

# 4. chroot: fstab, mdadm, initramfs, grub, network (-n shows the diffs only)
reloca.to -s postfix

# 5. checks before the reboot; exit 3 = do not reboot, fix first
reloca.to -s verify

# 6. old server off the network, new one into the migrated OS
reloca.to -s cutover             # -o cutover=netdown (default) | poweroff | kexec | none
Exit codeMeaning
0done
1runtime failure, see /run/reloca.to/log
2environment: not the full Live, apt or ssh failed, the donor is this very machine
3verify failed: the disk is written, do not reboot; fix and re-run -s verify
4the plan is infeasible or was rejected; nothing was written

Useful options: -o root=files copies the root file by file when it does not fit; -o compress=none for 10 GbE; -o converge=5 asks an on-line move for a shorter freeze. Every key is in the option reference.

What is supported

Moving “as is” between different hardware: from software RAID to a hardware controller, from big disks to smaller ones, from physical to virtual.

FromToStatus
Debian 10–13, Ubuntu 18.04–26.04any XServer server: dedicated with a hardware RAID, a single disk, a VPSready
CentOS 7–10, Rocky / Alma / RHEL 8–10the sameready
md RAID of any level, LVM, LVM on md, plain MBR/GPT partitionsone disk or a controller’s RAID volume, GPT above 2 TBready
ext2/3/4, XFS; swap partitions, LVs and swap files; ESPblock clone or file copy with the same UUIDs and featuresready
BIOS → BIOS, UEFI → UEFIUEFI ↔ BIOS either way (physical ↔ VM): Debian/Ubuntu with grub from the Live, the RPM family with its own grub2 packages via dnfready
source disk bigger or smaller than the new onethe root grows or is copied file by fileready
the old server keeps running (on-line relocation)copied in passes under load, frozen for the last delta; the downtime is seconds plus one rebootready
ifupdown, netplan, systemd-networkd, ifcfg, NetworkManagerthe interface becomes eth0, the MAC is updatedready
Windows—separate tool

Why move to XServer

We built reloca.to for our own moves between data centres, and give it away for free to everyone moving to us.

Free, and no weekend-long downtime

A move takes from half an hour to a few hours depending on the data. The old server keeps working right until the cutover; on-line it keeps serving through the whole copy, and the downtime is the last delta plus one reboot.

The same server, new hardware

The same UUIDs, fstab, packages, configs and services. Only what has to change does: controller drivers, the bootloader, the network interface name.

Transparent and verifiable

Every command is printed and logged; the plan is the runbook. Dozens of checks before the reboot, and the old server stays untouched for a rollback.

Help with anything unusual

Exotic layouts, old distributions, custom scripts: write to us and we will sort it out together. The tool grows on real customer moves.

What changed

Every release and what it brought. The tool updates itself from the same command, so a new migration always runs the current version.

Version 1.2

2026-11-14
  • The one command on the old server (curl -fsSL reloca.to/live | bash) now shows a single box: the network settings, the Live's root password and the ssh line. It asks before downloading anything; -v shows the kernel command line and the other details.
  • The screen comes back after the jump into the Live: when the old system drove the GPU with its own driver (Matrox on Dell and HP, ASPEED on Supermicro, VMware and others), the Live loads its own driver instead of leaving the console frozen or showing no signal.

Version 1.1

2026-10-23
  • On-line relocation: the old server keeps serving while it is copied. Only the changed blocks follow, pass after pass, and the filesystems are frozen for the last seconds instead of the whole move.
  • Compression and convergence are decided from measurements: the zstd level follows the donor's cpu and the link rate, and the agent says how many passes and minutes a shorter freeze would cost before it spends them.
  • A pre-check runs the fix-up and the verify on a snapshot of the copy while the old server still works, so a target that would not boot is found before the cutover.
  • On-line support for CentOS 7 and the RHEL family (ftrace on the 3.10 kernel, SELinux enforcing), and md RAID1 on the new server.
  • Firmware change UEFI to BIOS and back for the RPM family.
  • Every option is now listed at reloca.to/options, and -o keys are spelled with hyphens (an underscore is still accepted).

Version 1.0

2026-10-15
  • The first public release: one command on the new server moves a Linux system from another machine, both booted into XServer Live OS.
  • Inventory of both sides, a plan you can read and edit, partitioning with the same UUIDs and features, the volumes over an encrypted channel, the fix-up in a chroot, dozens of checks before the reboot, then the cutover.
  • Three ways to bring the old server into the Live: one command through kexec, an ISO through the provider's console, or the XServer panel.
  • Two disks on the new server become md RAID1 with -o raid=1; the root travels block by block or file by file, whichever fits.