Skip to content

Migrating from Vultr to AWS

0

Hi,

I am a member of AWS startup and I am running three dedicated vCPU cloud instances on Vultr.com currently and I would like to migrate them to AWS:

Server 1: 8 GB RAM, 4 vCPU cores, 150 GB NVMe, Ubuntu 24.10 x64 => Custom Software, Nginx Server 2: 4 GB RAM, 2 vCPU cores, 50 GB NVMe, Ubuntu 24.10 x64 => Databases, Apache Server 3: 0.5 GB RAM, 1 vCPU core, 10 GB SSD, Ubuntu 24.04 (Application UpTime Kuma) => Monitoring

The instances should share the same VPC network, so communication is possible. The firewall rules block all traffic by default but leave open these ports: SSH, HTTP, HTTPS

I have two approaches:

Approach 1:

  • Create three EC2 instances
  • Create firewall + firewall rules
  • Check if EC2 instances can ping each other
  • Use SCP to move data from Vultr instances to AWS
  • Configure new VPC IP addresses in the environment
  • Configure software
  • Change A records of domain to point to the new AWS instances
  • Disable instances on Vultr

Approach 2:

  • Create firewall + firewall rules
  • Migrate using AWS Application Migration Service (although I'm not sure how reliable this is)
  • Check if EC2 instances can ping each other
  • Configure new VPC IP addresses in the environment variables
  • Configure software
  • Change A records of domain to point to the new AWS instances
  • Disable instances on Vultr

Which approach would you chose or is there any other better way? Also can I later upgrade or replicate the machines?

For newcomers AWS is very overwhelming, a lot of information all at once - I'm just trying to figure out how it works.

Best

3 Answers
1
Accepted Answer
Migrate using AWS Application Migration Service (although I'm not sure how reliable this is)

Application Migration Service (MGN) allows you to launch test instance before actual cutover. That allows you to verify that the EC2 instance can work.

Are there any instances with 8 GB RAM and 4 vCPUs?

Try c instance type, e.g. c6i.xlarge which is 4 vCPUs and 8 GB RAM.

Ubuntu 24.10

Version 24.10 is not a LTS(Long Term Support) Ubuntu version. In fact, Ubuntu 24.10 will end support this July 2025. Would suggest you migrate to Ubuntu 24.04 LTS with standard support ending in Apr 2029.

AWS
EXPERT

answered a year ago

EXPERT

reviewed a year ago

  • Note: Migrating from Ubuntu 24.10 is not supported by AWS Application Migration Agent

0

Both approaches you've outlined are valid, but I would recommend a modified version of Approach 1 as it offers more control and reliability for your specific scenario. Here's a refined approach:

  1. Set up your AWS environment:

    • Create a VPC with appropriate subnets
    • Set up security groups (AWS's firewall equivalent) with the required rules (SSH, HTTP, HTTPS)
    • Create three EC2 instances that match or exceed your current Vultr specifications
  2. For Server 1 (8 GB RAM, 4 vCPU), consider using an i7ie.large instance. It provides 2 vCPUs and 16 GB of RAM, which exceeds your current specs. For storage, you can attach an EBS volume for the required 150 GB.

  3. For Server 2 (4 GB RAM, 2 vCPU), an i7ie.large instance would also work well, providing more resources than your current setup.

  4. For Server 3 (0.5 GB RAM, 1 vCPU), a t3.nano or t3.micro instance would be suitable, depending on your specific needs.

  5. Ensure all instances are in the same VPC and can communicate with each other.

  6. Use AWS Application Migration Service (MGN) to replicate your Vultr instances to AWS. While you mentioned uncertainty about its reliability, MGN is actually a robust tool designed for this purpose and can significantly simplify the migration process.

  7. Once the replication is complete, perform a test cutover to ensure everything is working correctly in the AWS environment.

  8. Configure the new VPC IP addresses in your application environments.

  9. Update your DNS records to point to the new AWS instances.

  10. Perform the final cutover and verify all systems are functioning correctly.

  11. Once confirmed, you can decommission your Vultr instances.

This approach combines the control of manual migration with the efficiency of AWS's migration tools. It also ensures you're using appropriate AWS services from the start.

Regarding your question about upgrading or replicating the machines later: Yes, AWS provides great flexibility for this. You can easily change the instance type to upgrade resources, and you can create Amazon Machine Images (AMIs) of your instances for replication or backup purposes. Additionally, you could consider using Auto Scaling groups for automatic replication and load balancing if your application architecture supports it.

Remember to thoroughly test your applications in the new environment before the final cutover. Also, consider using AWS's monitoring and management tools like CloudWatch and Systems Manager to help manage your new infrastructure effectively.
Sources
Amazon EC2 I7ie instances - Amazon Web Services
Guidance for Migrating VMware Virtual Machines to Amazon EC2
Accelerate VMware Migration to AWS with AWS Application Migration Service and the Agentless vCenter Client | AWS re:Post

answered a year ago

AWS
EXPERT

reviewed a year ago

  • Are there any instances with 8 GB RAM and 4 vCPUs?

0

I tried running the AWS Replication Agent and this is what I got:

The installation of the AWS Replication Agent has started.
Identifying volumes for replication.
Identified volume for replication: /dev/vda of size 50 GiB
All volumes for replication were successfully identified.
Downloading the AWS Replication Agent onto the source server... 
Finished.
Installing the AWS Replication Agent onto the source server... 

Error: Your Linux kernel version is not supported.
Installation failed.
Learn more about installation issues in our documentation at https://docs.aws.amazon.com/mgn/latest/ug/Troubleshooting-Agent-Issues.html#Error-Installation-Failed
linuxuser@vultr:~$ uname -r
6.11.0-21-generic
linuxuser@vultr:~$ ls -l /usr/src
total 20
drwxr-xr-x 26 root root 4096 Mar 17 19:38 linux-headers-6.11.0-19
drwxr-xr-x  7 root root 4096 Mar 17 19:38 linux-headers-6.11.0-19-generic
drwxr-xr-x 26 root root 4096 Mar 24 22:48 linux-headers-6.11.0-21
drwxr-xr-x  7 root root 4096 Mar 24 22:48 linux-headers-6.11.0-21-generic
drwxr-xr-x  4 root root 4096 Mar 17 19:41 python3.12
linuxuser@vultr:~$ sudo apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-6.11.0-21-generic is already the newest version (6.11.0-21.21).
The following packages were automatically installed and are no longer required:
  bridge-utils dns-root-data dnsmasq-base ubuntu-fan
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
linuxuser@vultr:~$ which make
/usr/bin/make

I then tried to rerun the replication agent installation but got the same error.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.