* Gentoo AMI Builder v1.1.1 * The following parameters will be used: * Instance Type: c5.2xlarge (spot: true) * Amazon Linux AMI: ami-0947d2ba12ee1ff75 * Security Group: default * Key Pair: Artem Butusov * Gentoo Stage3: x32 (ARCH: amd64) * Gentoo AMI Name: Gentoo Linux (x32) * Started at Tue Oct 20 22:53:45 EDT 2020 * PHASE 1: Prepare Instance * Verifying virtualization type... * Detecting snapshot ID... * Default image's root volume snapshot ID is snap-0299d083f0ce6cd12 * Requesting spot instance... * Waiting until spot request will be fulfilled (1/30)... * Started instance ID is i-01fd99cfda3403c90 * Waiting until instance will be up (1/5)... * Detecting public IP address... * Public IP address is 52.91.180.48 * Waiting until SSH will be up (1/5)... ssh: connect to host 52.91.180.48 port 22: Operation timed out * Waiting until SSH will be up (2/5)... * PHASE 1x: Prepare x32 * Rebuilding amazon kernel with x32 support... * Installing kernel build tools... * Downloading amazon kernel sources... * Patching amazon kernel config... * Configuring amazon kernel... * Building amazon kernel... * Installing new amazon kernel... * Patching bootloader configuration... * Rebooting... Connection to 52.91.180.48 closed by remote host. * Waiting until instance will be up (1/5)... * 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/amd64/autobuilds/20201018T214503Z/stage3-x32-20201018T214503Z.tar.xz ... * Verifying sha512 hash... * Verifying whirlpool hash... * Verifying GPG signature... * Extracting... * Cleaning up... * Installing Amazon's kernel configuration... * Configuring fstab... * Copying network options... * Mounting proc/sys/dev... * Sideloading ec2-init... * PHASE 3: Build Root * Updating configuration... * Tuning compiler options... * Installing portage repo... * Rebuilding the world... * Tuning kernel configuration... * Installing kernel sources... * Installing genkernel... * Installing kernel... * Installing ENA kernel module... * Installing bootloader... * Configuring network... * Configuring SSH... * Disabling keymaps service... * 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 52.91.180.48 closed by remote host. * Waiting until instance will be up (1/5)... * Waiting until SSH will be up (1/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 proc/sys/dev... * Cleaning primary disk... * Fixing boot on primary disk... * Installing bootloader into MBR... * Configuring bootloader... * 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 (x32) 2020-10-20 1603251686"... * Created AMI image ID is ami-0b0b13e0a05a881c5 * 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)... * Waiting until AMI image will be available (21/30)... * Waiting until AMI image will be available (22/30)... * Waiting until AMI image will be available (23/30)... * Waiting until AMI image will be available (24/30)... * Retrieving AWS account ID... * Retrieved AWS account ID is XYZ * Searching for outdated AMI images with prefix "Gentoo Linux (x32)" in account... * No outdated images were found. * Terminating instance... * Done at Wed Oct 21 00:05:06 EDT 2020 * Process took 71 minutes