Diff for /wikisrc/amazon_ec2.mdwn between versions 1.11 and 1.12

version 1.11, 2011/02/18 02:28:09 version 1.12, 2011/02/18 02:39:26
Line 210  rsync -aPv -e "ssh -i $EC2_SSH_KEY" NetB Line 210  rsync -aPv -e "ssh -i $EC2_SSH_KEY" NetB
         ec2-user@ec2-67-202-24-108.compute-1.amazonaws.com:          ec2-user@ec2-67-202-24-108.compute-1.amazonaws.com:
 """]]  """]]
   
 Connect to the instance, through its name. We will format and mount the Grub partition, create the *menu.lst* file, then copy files to their respective partitions.  Before connecting to the instance, we have to allow connection on SSH port (22) through firewall. Then, log in to the instance, through its name. We will format and mount the Grub partition, create the *menu.lst* file, then copy files to their respective partitions.
   
 [[!template id=programlisting text="""  [[!template id=programlisting text="""
 $ ec2-describe-instances i-5babe737  $ ec2-describe-instances i-5babe737
 INSTANCE        i-5babe737      ami-74f0061d    <strong>ec2-67-202-24-108.compute-1.amazonaws.com</strong>       ip-10-99-86-193.ec2.internal    running &lt;your_ssh_key_pair_name&gt;  0               t1.micro        2011-02-17T23:22:37+0000        us-east-1c      aki-427d952b                    monitoring-disabled     67.202.24.108   10.99.86.193                    ebs  INSTANCE        i-5babe737      ami-74f0061d    <strong>ec2-67-202-24-108.compute-1.amazonaws.com</strong>       ip-10-99-86-193.ec2.internal    running &lt;your_ssh_key_pair_name&gt;  0               t1.micro        2011-02-17T23:22:37+0000        us-east-1c      aki-427d952b                    monitoring-disabled     67.202.24.108   10.99.86.193                    ebs
   $ ec2-authorize default -p 22
   GROUP           default 
   PERMISSION              default ALLOWS  tcp     22      22      FROM    CIDR    0.0.0.0/0
 $ ssh -i "$EC2_SSH_KEY" ec2-user@ec2-67-202-24-108.compute-1.amazonaws.com  $ ssh -i "$EC2_SSH_KEY" ec2-user@ec2-67-202-24-108.compute-1.amazonaws.com
 [...]  [...]
 [ec2-user@ip-10-99-86-193 ~]$ sudo su  [ec2-user@ip-10-99-86-193 ~]$ sudo su
Line 224  $ ssh -i "$EC2_SSH_KEY" ec2-user@ec2-67- Line 227  $ ssh -i "$EC2_SSH_KEY" ec2-user@ec2-67-
 [root@ip-10-99-86-193 ec2-user]# mount /dev/sdg /mnt/grub/  [root@ip-10-99-86-193 ec2-user]# mount /dev/sdg /mnt/grub/
 [root@ip-10-99-86-193 ec2-user]# mkdir -p /mnt/grub/boot/grub/  [root@ip-10-99-86-193 ec2-user]# mkdir -p /mnt/grub/boot/grub/
 [root@ip-10-99-86-193 ec2-user]# cat > /mnt/grub/boot/grub/menu.lst << EOF  [root@ip-10-99-86-193 ec2-user]# cat > /mnt/grub/boot/grub/menu.lst << EOF
         default=0  default=0
         timeout=0  timeout=0
         hiddenmenu  hiddenmenu
   
         title NetBSD AMI  title NetBSD AMI
             root (hd0)  root (hd0)
             kernel /boot/netbsd root=xbd1  kernel /boot/netbsd root=xbd1
 EOF  EOF
 [root@ip-10-99-86-193 ec2-user]# mv netbsd /mnt/grub/boot/  [root@ip-10-99-86-193 ec2-user]# mv netbsd /mnt/grub/boot/
 [root@ip-10-99-86-193 ec2-user]# umount /dev/sdg  [root@ip-10-99-86-193 ec2-user]# umount /dev/sdg

Removed from v.1.11  
changed lines
  Added in v.1.12


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb