Interview Prep/Linux/Migrations, performance and fleet operations

You need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.

IntermediateScenarioMigrations, performance and fleet operations
Answer

Situation read → Build the new host with a temporary IP, then take over the identity.

What I'd do →

  1. Build the VM with a temporary IP, install and configure via Ansible.
  2. Sync data (two-pass rsync).
  3. Window: stop services on the old server, final sync, shut the old server down (or change its IP).
  4. Reconfigure the VM with the original IP and hostname, restart networking.
  5. Clear stale ARP on the gateway if needed: arping -U -I eth0 10.0.1.50 (gratuitous ARP).
  6. Run smoke tests; keep the old box powered off but intact.

Why → Clients keep working without DNS or config changes.

Interview tip → Mention SSH host keys: copy the old ones over or users get a "host key changed" warning.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations