offensive-security / kali-cloud-build

Script to create Kali Linux Amazon Machine Images (AMIs)
93 stars 42 forks source link

AWS EC2 Fails to build #14

Open OscarMederos opened 8 years ago

OscarMederos commented 8 years ago

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

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......................................

sbaxevanis commented 8 years ago

I'm getting to the Snapshot but the registration step wont work getting the boot params errors described in other issue.