Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 1st time it need formating
    1. Browser: Create volume , using 'Volumes', pick 300GB (it is small and not pricy)
    2. Browser: right click on the volume, attache it to running Instance of VM, remember name, e.g.: /dev/sdf
  2. ssh to VM
    1. partition this disk , e.g. using fdisk
      • fdisk /dev/sdf
        n : new partition
        p : primary
        1 : partion #1
        1 : (default begin)
        enter : (default end)
        p : print
        w : write partition
    2. format disk using mkfs
      mkfs.ext3 /dev/sdf1 ('1' is partition selected earlier)
      agrre on any question by pressing 'enter'
    3. mount disk as home dir named storage
      mkdir /storage
      mount /dev/sdf1 /storage
      cd /storage
      ls
      SCP file from AMI to local machine
      scp -i ~/janAmazonKey.pem root@ec2-174-129-63-11.compute-1.amazonaws.com:"/bla_lis" .

You are done. Well, you need to pay for it. This is my 1st bill:

...

PDF
nameAmazon EC2 pricing.pdf

...

Bundling/spawning AMI

  1. copy X.509 certificate
    scp -i ~/janAmazonKey.pem ~/pk-KL6G2VUC25RUKKMKXUPTKRHHPAAM5Z3C.pem ~/cert-KL6G2VUC25RUKKMKXUPTKRHHPAAM5Z3C.pem root@ec2-174-129-63-11.compute-1.amazonaws.com:"/mnt/"
  2. bundle external image
    ec2-bundle-vol -d /mnt -k /mnt/pk-KL6G2VUC25RUKKMKXUPTKRHHPAAM5Z3C.pem -c /mnt/certKL6G2VUC25RUKKMKXUPTKRHHPAAM5Z3C.pem -u AKIAJATKPFP7TANBRIAA -r i386 -p star-sl08b-image -v /bla_image --generate-fstab