Depenguinator migrates Linux systems to BSD

Summary

At the end of 2003 Colin Percival released the Depenguinator, which replaces a remote Linux system with FreeBSD 5.x over a single SSH connection. Physical access to the machine was not required. This was practical for rented servers whose providers only installed Linux images.

How it works

The Depenguinator builds a small FreeBSD image on the Linux system that boots entirely in memory. It is written to the disk so that the boot loader loads FreeBSD instead of Linux at the next restart. From this mini system a complete FreeBSD installation can then be set up via SSH.

The risk is obvious: if something goes wrong, the server can no longer be reached without console access. The Depenguinator was therefore a tool for people who knew exactly what they were doing and had a plan B.

Why it mattered

In the early 2000s many hosting providers only offered Linux. Anyone who preferred to run FreeBSD had to change provider or hope for remote console access. The Depenguinator showed that changing the operating system is possible purely remotely, and Percival later updated it for newer FreeBSD versions.

Ideas

  • A mini system booting in memory can replace the installed operating system.
  • SSH is enough as the only access for a complete change of system.
  • The boot loader decides which system runs after the restart.

Insights

  • Remote maintenance without console access always needs a way back in case of failure.
  • Tools that work around provider limits extend operators' freedom of choice.

Facts

  • The Depenguinator came from Colin Percival.
  • The target system was FreeBSD 5.x.

References

Remarks

  • Colin Percival later served as FreeBSD's security officer and founded the backup service Tarsnap. Today most hosting providers offer a remote console or their own FreeBSD images, which makes such tricks necessary less often.

Recommendations

  • Test a remote operating system change on an identical virtual machine first.
  • Back up all data before such interventions and clarify how you can reach the console if something fails.

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.