-
Download the vdi(for oracle virtual box) or ova(for vmware) file from aws's the link below.
-
Rename the
user-data.example
file to user-data -
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.
- Run
chmod +x gen_iso.sh
./gen_iso.sh