An AMI is created but it fails to boot. Below is the output from the build scripts.
Run task: 01-packages
Run task: 01-packages-ec2
Run task: 03-build-info
Building image for kali sana
architecture: amd64
filesystem: ext4
volume size: 20 GB
locale: en_US
charmap: UTF-8
timezone: UTC
packages: udev openssh-server locales file grub-pc dhcpcd5
excluded packages: isc-dhcp-client isc-dhcp-common
Run task: 04-install-host-packages
Extracting templates from packages: 100%untu.com/ubuntu/ trusty/main python-boto all 2.20.1-2ubuntu2 [618 kB]
\ Running hooks in /etc/ca-certificates/update.d....done.
Run task: 05-install-euca2ools
make[1]: Leaving directory `/home/ubuntu/kali-cloud-build/euca2ools-1.3.2/euca2ools'
Run task: 06-patch-boto
Run task: 07-host-information
Run task: 10-create-volume
The EBS volume id is vol-710652da
Run task: 11-attach-volume
.
VOLUME vol-710652da
.
Run task: 12-format-volume
Formatting the device /dev/xvdf with ext4
mke2fs 1.42.9 (4-Feb-2014)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1310720 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
160 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
tune2fs 1.42.9 (4-Feb-2014)
Setting interval between checks to 0 seconds
Run task: 13-mount-volume
The volume is mounted at /target/vol-710652da.
Run task: 14-bootstrap
Creating the bootstrap tarball
/ I: Deleting target directory
Bootstrapping
/ I: Base system installed successfully.
Run task: 15-mount-specials
Run task: 20-locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Run task: 21-apt-sources
Run task: 22-apt-upgrade
\ Reading package lists...
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Run task: 30-grub
Generating grub configuration file ...
done
Run task: 31-fstab
Run task: 32-blacklist
Run task: 33-disable-gettys
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
sed: can't read /target/vol-710652da/etc/inittab: No such file or directory
Run task: 38-security
Shadow passwords are now on.
Run task: 39-dhcpcd-conf
Run task: 39-networking
Run task: 50-ec2-scripts
Run task: 51-init-scripts
Run task: 60-cleanup
Run task: 61-apt-cleanup
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run task: 71-unmount-specials
Run task: 72-unmount-volume
Run task: 73-detach-volume
VOLUME vol-710652da
..
Run task: 80-ebs-snapshot
Creating snapshot of the EBS volume......................................
An AMI is created but it fails to boot. Below is the output from the build scripts.
Run task: 01-packages Run task: 01-packages-ec2 Run task: 03-build-info Building image for kali sana architecture: amd64 filesystem: ext4 volume size: 20 GB locale: en_US charmap: UTF-8 timezone: UTC packages: udev openssh-server locales file grub-pc dhcpcd5 excluded packages: isc-dhcp-client isc-dhcp-common
Run task: 04-install-host-packages Extracting templates from packages: 100%untu.com/ubuntu/ trusty/main python-boto all 2.20.1-2ubuntu2 [618 kB]
\ Running hooks in /etc/ca-certificates/update.d....done.
Run task: 05-install-euca2ools
Run task: 06-patch-boto Run task: 07-host-information Run task: 10-create-volume The EBS volume id is vol-710652da Run task: 11-attach-volume . VOLUME vol-710652da . Run task: 12-format-volume Formatting the device /dev/xvdf with ext4 mke2fs 1.42.9 (4-Feb-2014) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 1310720 inodes, 5242880 blocks 262144 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 160 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
tune2fs 1.42.9 (4-Feb-2014) Setting interval between checks to 0 seconds Run task: 13-mount-volume The volume is mounted at /target/vol-710652da. Run task: 14-bootstrap Creating the bootstrap tarball / I: Deleting target directory
Bootstrapping / I: Base system installed successfully.
Run task: 15-mount-specials Run task: 20-locales perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. Run task: 21-apt-sources Run task: 22-apt-upgrade \ Reading package lists...
Reading package lists... Done Building dependency tree... Done 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Run task: 30-grub Generating grub configuration file ... done Run task: 31-fstab Run task: 32-blacklist Run task: 33-disable-gettys sed: can't read /target/vol-710652da/etc/inittab: No such file or directory sed: can't read /target/vol-710652da/etc/inittab: No such file or directory sed: can't read /target/vol-710652da/etc/inittab: No such file or directory sed: can't read /target/vol-710652da/etc/inittab: No such file or directory sed: can't read /target/vol-710652da/etc/inittab: No such file or directory sed: can't read /target/vol-710652da/etc/inittab: No such file or directory Run task: 38-security Shadow passwords are now on. Run task: 39-dhcpcd-conf Run task: 39-networking Run task: 50-ec2-scripts Run task: 51-init-scripts Run task: 60-cleanup Run task: 61-apt-cleanup Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Run task: 71-unmount-specials Run task: 72-unmount-volume Run task: 73-detach-volume VOLUME vol-710652da .. Run task: 80-ebs-snapshot Creating snapshot of the EBS volume......................................