Report this

What is the reason for this report?

How to extract an existing root filesystem into a droplet?

Posted on October 1, 2014

Hello,

I have an existing (physical) linux server that I’d like to migrate (virtualize) into a droplet. Since the server contains lots of services (mail, webmail, etc) I’d like to make this migration process as easy/fast as possible. Or in other words: I don’t want to migrate service-by-service.

When moving from one physical server to another, I used to do it this way:

  • boot both servers with SystemRescueCD
  • make a targz archive of the whole root filesystem on the source server
  • make filesystems on the destination server
  • transfer the archive from source to destination server, extract it there
  • make some adjustments on the destination server (/etc/fstab, /boot/grub/menu.lst, /etc/udev/rules.d/70-persistent-net.rules, and the like) to reflect the new hardware
  • reboot the destination server while keeping my fingers crossed ;-)

Can something similar be done with Droplets, too? I’m guessing that just extracting the rootfs archive on a working Droplet spells disaster, right?

Bottom line: what is the suggested/preferred way to do this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.