* Gentoo AMI Builder v1.1.7 * The following parameters will be used: * AWS Region: us-east-1 * Instance Type: c7g.2xlarge (spot: true) * Amazon Linux AMI: auto * Subnet ID: subnet-NNNNNN * Key Pair: AMI-builder * Gentoo Stage3: arm64-openrc (ARCH: arm64) * Gentoo AMI Name: Gentoo Linux (arm64-openrc) * Started at Fri Mar 3 08:25:54 PM PST 2023 * PHASE 1: Prepare Instance * Detecting last Amazon Linux 2 AMI... * Autodetected image ID is ami-0cacc567ed97d2914 * Detecting snapshot ID... * Default image's root volume snapshot ID is snap-0360e4429796b7947 * Requesting spot instance... * Waiting until spot request will be fulfilled (1/30)... * Started instance ID is i-04e07c8fbcb7eeb1e * Waiting until instance will be up (1/5)... * Detecting public IP address... * Public IP address is 54.221.44.174 * Waiting until SSH will be up (1/5)... * PHASE 2: Prepare Root * Synchronizing time... * Preparing aux disk... * Creating partitions... * Waiting for partitions... * Formatting partitions... * Labeling partitions... * Mounting aux disk... * Setting work directory... * Installing stage3... * Downloading: http://distfiles.gentoo.org/releases/arm64/autobuilds/20230226T234708Z/stage3-arm64-openrc-20230226T234708Z.tar.xz ... * Verifying sha512 hash... * Verifying GPG signature... * Extracting... * Cleaning up... * Installing Amazon's kernel configuration... * Configuring fstab... * Copying network options... * Mounting proc/sys/dev... * Mounting ESP... * Sideloading ec2-init... * PHASE 3: Build Root * Updating configuration... * Tuning compiler options... * Installing portage repo... * Rebuilding the world... * Installing vfat support... * Tuning kernel configuration... * Installing kernel sources... * Installing genkernel... * Installing kernel... * Installing ENA kernel module... * Installing bootloader... * Configuring network... * Installing DHCP support... * Configuring root password... * Configuring SSH... * Installing ec2-init... * Disabling instance-specific tweaks... * PHASE 4: Switch Root * Installing gentoo kernel on first disk... * Patching bootloader configuration on first disk... * Rebooting... Connection to 54.221.44.174 closed by remote host. * Waiting until instance will be up (1/5)... * Waiting until SSH will be up (1/5)... ssh: connect to host 54.221.44.174 port 22: Connection refused * Waiting until SSH will be up (2/5)... * PHASE 5: Migrate Root * Migrating root partition from aux to primary disk... * Copying root partition... * Fixing root partition identity... * Mounting primary disk... * Mounting root... * Mounting ESP... * Mounting proc/sys/dev... * Cleaning primary disk... * Fixing boot on primary disk... * Installing bootloader into ESP... * Configuring bootloader... * Cleaning ESP... * Fixing fstab... * Rebooting... * Waiting until instance will be up (1/5)... * Waiting until SSH will be up (1/5)... * PHASE 6: Build AMI * Creating AMI image "Gentoo Linux (arm64-openrc) 2023-03-03 1677905845"... * Created AMI image ID is ami-096fea947cc4dd734 * Verifying AMI image state... * Waiting until AMI image will be available (1/30)... * Waiting until AMI image will be available (2/30)... * Waiting until AMI image will be available (3/30)... * Waiting until AMI image will be available (4/30)... * Waiting until AMI image will be available (5/30)... * Waiting until AMI image will be available (6/30)... * Waiting until AMI image will be available (7/30)... * Waiting until AMI image will be available (8/30)... * Waiting until AMI image will be available (9/30)... * Waiting until AMI image will be available (10/30)... * Waiting until AMI image will be available (11/30)... * Waiting until AMI image will be available (12/30)... * Waiting until AMI image will be available (13/30)... * Waiting until AMI image will be available (14/30)... * Waiting until AMI image will be available (15/30)... * Waiting until AMI image will be available (16/30)... * Waiting until AMI image will be available (17/30)... * Waiting until AMI image will be available (18/30)... * Waiting until AMI image will be available (19/30)... * Waiting until AMI image will be available (20/30)... * Retrieving AWS account ID... * Retrieved AWS account ID is NNNNNNNNN * Searching for outdated AMI images with prefix "Gentoo Linux (arm64-openrc)" in account... * No outdated images were found. * Terminating instance... * Done at Fri Mar 3 09:17:59 PM PST 2023 * Process took 52 minutes