Is it possible to migrate my whole ubuntu server from a desktop to Amazon Cloud?

I have a ubuntu server 64-bit that needs to be migrated out of a broken desktop hardware. I have a lot of things installed over there so my goal is to avoid having to install all software one-by-one in the new server. What I would like to do is take a snapshot of what I have in that machine and transfer the whole thing, in a single step to the Amazon cloud. Like taking an image of my system and transporting to another hardware so I get the exact same thing running in the new hardware.

Is that possible? How?

Thanks very much. My desktop is booting that's why I am kind of desperate to do this.


Solution 1:

There are two options I can see:

  1. Create a loopback file locally, copy (or hardlink?) key folders into the new file system then bundle that as an AMI
  2. Launch a new EC2 instance and just rsync stuff into it (probably easiest, especially if your machine continually reboots)