Skip to main content

How to Import Large AWS EC2 Instances

When importing AWS EC2 instances with disks over 500GB, you may encounter limitations in AWS that result in extended acquisition times. During the acquisition process, you might receive a warning, as shown below:

Large EC2 Import Warning

Alternate Acquisition via Triage of a Live System

If possible, use the Triage option if AWS Systems Manager (SSM) is enabled. This can speed up the acquisition process.

Alternatively, you can acquire the system using SSH or AWS EC2 Instance Connect. In the AWS console, select the instance, then choose Actions > Connect. From there, you can use Cado Host via the Cado UI at Import > Cado Host. You can also collect additional files by using the command line.

If the system is powered off, consider isolating it at the network and IAM level, then turn it on to capture the necessary data.

Alternate Manual Acquisition of a Live System

You can also manually copy individual files or perform a live image by connecting to the system and running a command such as:

dd if=/dev/source of=/path/to/image.dd bs=block_size count=total_blocks

Alternatively, to upload the disk image directly to S3:

aws s3 cp /dev/[disk] s3://bucket/image.dd.gz --expected-size [size in bytes]

How Cado Acquires EC2 Instances

When acquiring an EC2 instance, the Cado platform follows these steps:

  1. Create a snapshot of the volume attached to the instance.
  2. Create a volume from the snapshot.
  3. Create an image of the volume for processing.

Below is a diagram showing possible optimizations in this process:

Cado EC2 Acquisition Process

Speeding Up Step 1: Create Snapshot

The snapshot creation process will be faster if there’s an earlier snapshot of the volume, as AWS uses incremental snapshots. However, creating a snapshot for large volumes can take several hours if no earlier snapshots exist. AWS recommends creating regular snapshots to speed up this process, though this may not be feasible during incident response.

AWS does not provide exact estimates for how long creating a snapshot will take, but volumes larger than 500GB typically require several hours if there are no prior snapshots.

Speeding Up Step 2: Create Volume with Fast Snapshot Restore

You can speed up the Create Volume step by using Fast Snapshot Restore. Note that this does not affect the time it takes to create a snapshot, and creating a volume still takes time.

To create a snapshot and enable Fast Snapshot Restore:

  1. Create a Snapshot: Create Snapshot

    Using the AWS CLI:

    aws ec2 create-snapshot --volume-id vol-12345678 --description "My EBS volume snapshot"
  2. Enable Fast Snapshot Restore: Enable Fast Snapshot Restore

    Using the AWS CLI:

    aws ec2 enable-fast-snapshot-restores --availability-zones us-east-2a us-east-2b --source-snapshot-ids snap-1234567890abcdef0

AWS estimates that enabling Fast Snapshot Restore will take around 60 minutes per terabyte.

You’ll see the status of Fast Snapshot Restore in the AWS Console as follows:

Fast Snapshot Restore Enabled

Increasing the Size of the Target Instance for EC2 Acquisition

Cado matches the instance type of the target system for compatibility when acquiring an instance. However, larger instances offer higher disk, network, and CPU limits, which can speed up the Create Image step.

If possible, changing the target instance to a larger type can speed up acquisition, though this does not affect the time taken for creating a snapshot or volume.

Alternative Collection Using the AWS EBS Direct API

Cado now offers a faster acquisition method using the EBS Direct API. You can enable this feature under Settings > Experiments > EBS Direct Acquisitions.

This method is similar to using Coldsnap, which can be executed with a command like:

coldsnap --region us-east-1 download snap-0001 disk.dd