/amzaon-linux-iso

Repository for user data, meta data and shell script needed for creating an amzaon linux 2 iso

Primary LanguageShell

Steps:

  1. Download the vdi(for oracle virtual box) or ova(for vmware) file from aws's the link below.

    Run Amazon linux 2 on prem

    Download Vm image from here

  2. Rename the user-data.example file to user-data

  3. Replace your own ssh-public key and passoword in the user-data file:

users:
  - default
  - name: ec2-user
    ssh-authorized-keys:
      - your-ssh-public-key
chpasswd:
  list: |
    ec2-user:your-password

Make sure there is o space between ec2-user: and the actual password.

  1. Run
chmod +x gen_iso.sh
./gen_iso.sh