<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0cER3kzeSp7ImA9WhRbFU8.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157</id><updated>2012-02-06T20:36:46.781+11:00</updated><category term="linux" /><category term="Licensing" /><category term="ami" /><category term="proxy" /><category term="Microsoft" /><category term="security group" /><category term="ec2" /><category term="ESXi" /><category term="vmware" /><category term="security" /><category term="volume" /><category term="Fiber Channel" /><category term="iSCSI" /><category term="ESX" /><category term="pound" /><category term="Windows Server" /><category term="rds" /><category term="puttygen" /><category term="amazon" /><category term="PuTTY" /><category term="Terminal Services" /><category term="ssl" /><category term="https" /><category term="aws management console" /><category term="security groups" /><category term="key pairs" /><category term="SAN" /><category term="Storage" /><category term="ubuntu" /><category term="firewall" /><category term="aws" /><title>IT KB Central</title><subtitle type="html">Information Technology HOWTOs, Technical Solutions, Best Practices and general cool stuff.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://itkbcentral.blogspot.com/" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ItKbCentral" /><feedburner:info uri="itkbcentral" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkAMQnkzfSp7ImA9WhdRGU8.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-3164158996735011978</id><published>2011-08-10T07:19:00.000+10:00</published><updated>2011-08-10T07:19:43.785+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-10T07:19:43.785+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="rds" /><category scheme="http://www.blogger.com/atom/ns#" term="security groups" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>Deploying an Amazon MySQL RDS Instance</title><content type="html">by Semir H.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Preparation:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Decide in which Region you will create this.&lt;br /&gt;
Decide on the DB Engine (MySQL or Oracle).&lt;br /&gt;
For this tutorial I will use the following:&lt;br /&gt;
&lt;br /&gt;
Multi AZ Deployment = Yes&lt;br /&gt;
Allocated Storage = 5 GB (minimum - good enough for this tutorial)&lt;br /&gt;
DB Instance Identifier = TestDB-Inst&lt;br /&gt;
Master Username = dbadmin&lt;br /&gt;
Password = whatever you want&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Procedure:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Log into your Amazon Web Services (AWS) Management Console. Go to the Amazon RDS tab. Pick your Region. Click on “Launch DB Instance”.&lt;br /&gt;
In the “Engine Selection” pick MySQL and click on “Select”.&lt;br /&gt;
Fill in the “DB Instance Details” as per your needs. I’ll use the details I put down above. Click on “Continue”&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-qo7evnwgsXM/TkGkHQPhhEI/AAAAAAAAAEY/2Dq6Rn4xjuQ/s1600/1-RDS-DB-Instance-Details.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="520" src="http://1.bp.blogspot.com/-qo7evnwgsXM/TkGkHQPhhEI/AAAAAAAAAEY/2Dq6Rn4xjuQ/s640/1-RDS-DB-Instance-Details.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
On the “Additional Configuration” part leave everything at defaults (no need to put a DB name now). Click on “Continue”.&lt;br /&gt;
&lt;br /&gt;
On the “Management Options” pick your Backup Retention Period (e.g. 1 day), Backup Window and Maintenance Window. Click on “Continue”.&lt;br /&gt;
&lt;br /&gt;
Review your settings and if you are happy, launch the DB Instance.&lt;br /&gt;
&lt;br /&gt;
DB Security Groups (connecting EC2 to RDS):&lt;br /&gt;
&lt;br /&gt;
To make sure a particular EC2 Instance (in my case an Ubuntu Linux one) can connect to the Amazon RDS MySQL Instance we just created we need to create or modify an existing DB Security Group. I’ll just modify the default one.&lt;br /&gt;
Go to Amazon RDS tab and click on the “DB Security Groups” link.&lt;br /&gt;
Click on the “default” DB Security Group.&lt;br /&gt;
Under “Connection Type” pick “EC2 Security Group”.&lt;br /&gt;
Put in your Security Group name (in my case it was “linux sec grp”) and the AWS Account ID of the AWS account where this EC2 Security Group is. The number is a 12 digit number without any dashes.&lt;br /&gt;
Click on “Add”. If all goes well you should see that the connection you just defined will be authorised. Here’s an example (with my personal details blacked out):&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-aUiXrtm3wDg/TkGkRVyZDZI/AAAAAAAAAEc/LJd2yd0T9ug/s1600/2-DB-SecGrp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="166" src="http://1.bp.blogspot.com/-aUiXrtm3wDg/TkGkRVyZDZI/AAAAAAAAAEc/LJd2yd0T9ug/s640/2-DB-SecGrp.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
This will essentially let any EC2 Instance (my Linux Instances) that are controlled by my “Linux Sec Grp” Security Group be able to communicate with my new MySQL RDS Instance.&lt;br /&gt;
&lt;br /&gt;
To connect to the new MySQL Amazon RDS Instance (TestDB-Inst) we’ll need to find the Endpoint address. We do that by clicking on the DB Instance and looking under its Description. In my case it is “testdb-inst.cheuhkpk9v6o.ap-southeast-1.rds.amazonaws.com”.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Testing connecting:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# mysql -h testdb-inst.cheuhkpk9v6o.ap-southeast-1.rds.amazonaws.com -u dbadmin -p&lt;br /&gt;
&lt;br /&gt;
Enter the password and there you go, you are now connected to your MySQL Instance. &lt;br /&gt;
You may now create databases for your projects.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-3164158996735011978?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/n2KFcBPdtT_ZUp0qLivKMSSiVjA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n2KFcBPdtT_ZUp0qLivKMSSiVjA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/n2KFcBPdtT_ZUp0qLivKMSSiVjA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n2KFcBPdtT_ZUp0qLivKMSSiVjA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/bv6pserdSzc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/3164158996735011978/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/08/deploying-amazon-mysql-rds-instance.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/3164158996735011978?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/3164158996735011978?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/bv6pserdSzc/deploying-amazon-mysql-rds-instance.html" title="Deploying an Amazon MySQL RDS Instance" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-qo7evnwgsXM/TkGkHQPhhEI/AAAAAAAAAEY/2Dq6Rn4xjuQ/s72-c/1-RDS-DB-Instance-Details.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/08/deploying-amazon-mysql-rds-instance.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4FQXc_fCp7ImA9WhdRF08.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-9138525487444469588</id><published>2011-08-07T23:31:00.000+10:00</published><updated>2011-08-07T23:31:50.944+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-07T23:31:50.944+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="volume" /><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>Attach additional Volume(s) to AWS EC2 Linux (Ubuntu) Instance(s)</title><content type="html">by Semir H.&lt;br /&gt;
&lt;br /&gt;
This quick tutorial will show you how to create a new EBS volume in AWS EC2 and attach it to an existing EBS backed Linux (Ubuntu) EC2 Instance.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Preparation:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Please note down which Availability Zone (AZ) your existing Instance is in. You will need to create the new volume in the same AZ. Also note down the Instance identifier (starts with “i”) for easier identification later.&lt;br /&gt;
Please also schedule some downtime for your Instance (if it is an important one) as you’ll need to shut it off while the volume is attached and it will need to be restarted at least once for testing.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Procedure:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As an example I have an Ubuntu Instance here with 8 GB of disk space that comes with the Ubuntu EC2 AMIs.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FUOkOsdHfek/Tj6SLtYuM9I/AAAAAAAAAD8/oq-bGET7Unw/s1600/1-OriginalDisk-Linux.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="206" src="http://2.bp.blogspot.com/-FUOkOsdHfek/Tj6SLtYuM9I/AAAAAAAAAD8/oq-bGET7Unw/s640/1-OriginalDisk-Linux.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
To create a new volume to add to the Instance go to Volumes section of the Amazon EC2 portion in the AWS Management Console. Click on “Create Volume”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-jvwQA4tke-E/Tj6SUlRa1HI/AAAAAAAAAEA/jynIU3wFEgk/s1600/2-CreateVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="http://3.bp.blogspot.com/-jvwQA4tke-E/Tj6SUlRa1HI/AAAAAAAAAEA/jynIU3wFEgk/s400/2-CreateVolume.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Fill in the desired size of the Volume (my example is 20 GB) and make sure you pick the correct AZ (same as where the Instance you will attach this to is). Ignore the Snapshot. Click on “Yes, Create” to make the Volume.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cRm-OrEREuc/Tj6Sf7Lo17I/AAAAAAAAAEE/XVH2jh7pR9M/s1600/3-NewVolumeDetails.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="254" src="http://4.bp.blogspot.com/-cRm-OrEREuc/Tj6Sf7Lo17I/AAAAAAAAAEE/XVH2jh7pR9M/s640/3-NewVolumeDetails.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Once it is created you should right-click on it and select “Attach Volume”.&lt;br /&gt;
Select the correct Instance and put in the device name. The default for the Device will usually do.&lt;br /&gt;
Click on “Yes, Attach” to proceed.&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-K4AFBLQnHK0/Tj6SnzLVAqI/AAAAAAAAAEI/7a_GJc4V9hE/s1600/4-AttachVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="324" src="http://1.bp.blogspot.com/-K4AFBLQnHK0/Tj6SnzLVAqI/AAAAAAAAAEI/7a_GJc4V9hE/s640/4-AttachVolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After a bit you should see the Volume listed at attached to your Instance. Here’s an example of the original 8 GB Volume and the new 20 GB Volume attached to the same Instance:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-eOsnkIEnhbM/Tj6S2MH_mcI/AAAAAAAAAEM/GdsOB4uqnlQ/s1600/5-NewAndOldVolumeExample.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="78" src="http://4.bp.blogspot.com/-eOsnkIEnhbM/Tj6S2MH_mcI/AAAAAAAAAEM/GdsOB4uqnlQ/s640/5-NewAndOldVolumeExample.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now go back to your Instance and start it up. Log in and check if the new Volume can be seen. The quickest way of doing it is to execute “fdisk -l” as a privileged user. The example below shows the original 8 GB and the new 20 GB device.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-DdDcnVOn-ko/Tj6TCIKNNgI/AAAAAAAAAEQ/Yrd0zjDriwk/s1600/6-NewVolume-Start.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="368" src="http://1.bp.blogspot.com/-DdDcnVOn-ko/Tj6TCIKNNgI/AAAAAAAAAEQ/Yrd0zjDriwk/s640/6-NewVolume-Start.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Of course, the new Volume is unusable in this state so we’ll need to create a mount point for it, create a file system for it and mount it. We’ll also make sure it auto-mounts after the box is restarted in the future.&lt;br /&gt;
&lt;br /&gt;
First, we’ll create a new mount point. “mkdir /newdisk”. This will create a folder “newdisk” in the root of the current system.&lt;br /&gt;
&lt;br /&gt;
We’ll then run cfdisk on the /dev/xvdf device to create a usable partition. Please see the cfdisk documentation for more details. I basically create a new primary partition (called xvdf1) using all the available space.&lt;br /&gt;
Then, we’ll create a file system for the new partition. Let’s go with ext4. Command is “mkfs.ext4 /dev/xvdf1”.&amp;nbsp; You can now mount the partition under the folder we created earlier. Command is “mount /dev/xvdf1 /newdisk/”. Please check you can write to it.&lt;br /&gt;
Next, we’ll make sure the new partition is auto-mounted on system start-up. We do this in the /etc/fstab file. Just add the following line (no quotes):&lt;br /&gt;
&lt;br /&gt;
“/dev/xvdf1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /newdisk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext4&amp;nbsp;&amp;nbsp;&amp;nbsp; defaults&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2”&lt;br /&gt;
&lt;br /&gt;
Please see the fstab documentation for options. You may want to use different options for your own environment.&lt;br /&gt;
Save the file. Restart the system to test it. When you log back in you should see the new partition mounted in the correct folder and you should be able to write to it.&lt;br /&gt;
Example (df -h):&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-u6FhotHbUXQ/Tj6TPqD7YII/AAAAAAAAAEU/nbbWfvnF7Cg/s1600/7-Final-df-h.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="http://2.bp.blogspot.com/-u6FhotHbUXQ/Tj6TPqD7YII/AAAAAAAAAEU/nbbWfvnF7Cg/s640/7-Final-df-h.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-9138525487444469588?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QzDEez_dEsPmmzsMDk-qFsVnG6k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QzDEez_dEsPmmzsMDk-qFsVnG6k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QzDEez_dEsPmmzsMDk-qFsVnG6k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QzDEez_dEsPmmzsMDk-qFsVnG6k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/gpApxBafn90" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/9138525487444469588/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/08/attach-additional-volumes-to-aws-ec2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/9138525487444469588?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/9138525487444469588?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/gpApxBafn90/attach-additional-volumes-to-aws-ec2.html" title="Attach additional Volume(s) to AWS EC2 Linux (Ubuntu) Instance(s)" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-FUOkOsdHfek/Tj6SLtYuM9I/AAAAAAAAAD8/oq-bGET7Unw/s72-c/1-OriginalDisk-Linux.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/08/attach-additional-volumes-to-aws-ec2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8EQn44cSp7ImA9WhdRFEw.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-968275435002066207</id><published>2011-08-04T10:46:00.000+10:00</published><updated>2011-08-04T10:46:43.039+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-04T10:46:43.039+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="security groups" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>How to change AWS EC2 Security Group of an existing Instance</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scenario:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You have a few pre-made Security Groups and one of your Instances needs to change from one to another.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
AWS EC2 does not have a way to easily switch these. You basically have to clone the Instance into an AMI and then deploy a new Instance out of that AMI, taking care to associate the new Instance with the desired Security Group at the time of creation.&lt;br /&gt;
You can delete the AMI and the associated Snapshot, if you desire so.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Process:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a Security Group with your desired port settings.&lt;br /&gt;
&lt;br /&gt;
Clone your Instance by right clicking on it and choosing to create an Image (EBS AMI). It is best if the original Instance is turned off so that no data is lost.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-pPHLF0wArEU/Tjnri1DOVdI/AAAAAAAAADw/l3CZpWkEFkA/s1600/1-CreateAMIoutofExisting.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="498" src="http://1.bp.blogspot.com/-pPHLF0wArEU/Tjnri1DOVdI/AAAAAAAAADw/l3CZpWkEFkA/s640/1-CreateAMIoutofExisting.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After a bit of time your new AMI should be visible in the AMIs section. Please make sure you’re in the correct Region.&lt;br /&gt;
&lt;br /&gt;
Right-click on your new AMI and pick “Launch Instance”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-mamA6wRlET4/Tjnrp5jdtPI/AAAAAAAAAD0/Baa5iho54SI/s1600/2-LaunchInstance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" src="http://4.bp.blogspot.com/-mamA6wRlET4/Tjnrp5jdtPI/AAAAAAAAAD0/Baa5iho54SI/s640/2-LaunchInstance.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Use the “Request Instance Wizard” to select settings you wish &lt;b&gt;but please make sure you select the correct Security Group during this process.&lt;/b&gt;&lt;br /&gt;
You may also take this opportunity to change your Key Pair.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0DMuO6Xomtw/Tjnrx6sBMYI/AAAAAAAAAD4/_FH_zjn7hYI/s1600/3-SelectSecGrp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://2.bp.blogspot.com/-0DMuO6Xomtw/Tjnrx6sBMYI/AAAAAAAAAD4/_FH_zjn7hYI/s640/3-SelectSecGrp.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Finish the wizard and launch the Instance.&lt;br /&gt;
&lt;br /&gt;
You should now see that the new Instance has the new Security Group associated with it.&lt;br /&gt;
Log into your new Instance and confirm that no data is missing.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cleanup:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Once you are sure no data is missing and that you will not need your original Instance or the resulting AMI then you can delete both.&lt;br /&gt;
Also delete the Snapshot that was made during the cloning process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-968275435002066207?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dWx4mUHUsdgGWwA0_3NEqpu6sL4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dWx4mUHUsdgGWwA0_3NEqpu6sL4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dWx4mUHUsdgGWwA0_3NEqpu6sL4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dWx4mUHUsdgGWwA0_3NEqpu6sL4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/eBG1Hw-QiLE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/968275435002066207/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/08/how-to-change-aws-ec2-security-group-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/968275435002066207?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/968275435002066207?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/eBG1Hw-QiLE/how-to-change-aws-ec2-security-group-of.html" title="How to change AWS EC2 Security Group of an existing Instance" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-pPHLF0wArEU/Tjnri1DOVdI/AAAAAAAAADw/l3CZpWkEFkA/s72-c/1-CreateAMIoutofExisting.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/08/how-to-change-aws-ec2-security-group-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAASXcyeip7ImA9WhdREUs.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-924914783717578948</id><published>2011-08-01T11:39:00.000+10:00</published><updated>2011-08-01T11:39:08.992+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-01T11:39:08.992+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="firewall" /><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="security group" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>AWS EC2 Security Group (Firewall) Design and Creation</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
This quick tutorial will show you how to open up some common ports on the AWS EC2 Firewalls, otherwise known as Security Groups. Please note that you should think about the Security Group design before you create Amazon Web Services (AWS) EC2 Instances. Once created and associated with a Security Group, there is no easy way (but there is a way) to associate an Instance with a different Security Group. I’ll show you how you can do it in another tutorial.&lt;br /&gt;
&lt;br /&gt;
Let’s say we want to open TCP port 22 for SSH access to a Linux machine, ports 80 (HTTP) and 443 (HTTPS) for web access and port 10000 for Webmin. We want the HTTP/S ports to be open to anyone on the Internet but we want to restrict access over SSH and Webmin ports to a certain IP. The IP we will restrict it to will be 1.2.3.4 (obviously made up).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Procedure:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Log into your Amazon Web Service (AWS) Management Console.&lt;br /&gt;
&lt;br /&gt;
Navigate to Security Groups in the NETWORKING &amp;amp; SECURITY section.&lt;br /&gt;
&lt;br /&gt;
Click on the “Create Security Group” button.&lt;br /&gt;
&lt;br /&gt;
Give it a Name and a Description. Leave the VPC option as “No VPC”. Click on “Yes, Create”. Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-znEWU2SJxo0/TjYDROkQOsI/AAAAAAAAADk/ZF43BOofOBo/s1600/1-CreateSecGrp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="635" src="http://2.bp.blogspot.com/-znEWU2SJxo0/TjYDROkQOsI/AAAAAAAAADk/ZF43BOofOBo/s640/1-CreateSecGrp.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Select the newly created Security Group and click on the Inbound tab at the bottom of the page to create new rules.&lt;br /&gt;
&lt;br /&gt;
HTTP(S) and SSH can be pre-selected from the “Create a new rule” drop-down box. Webmin port will be the custom option.&lt;br /&gt;
&lt;br /&gt;
Finally, click on “Apply Rule Changes”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-FCyGrifotfg/TjYDX9LleSI/AAAAAAAAADo/BKrL4id0-9w/s1600/2-EnterandApplyRules.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="370" src="http://4.bp.blogspot.com/-FCyGrifotfg/TjYDX9LleSI/AAAAAAAAADo/BKrL4id0-9w/s640/2-EnterandApplyRules.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
To put in a single IP as the Source you need to put the netmask as /32.&lt;br /&gt;
So our fake 1.2.3.4 address will be entered as 1.2.3.4/32&lt;br /&gt;
&lt;br /&gt;
As you add the rules they will appear to the right of the rule creation area. You will see a message saying “Your changes have not been applied yet” until you apply them. To apply them just hit the “Apply Rule Changes” button.&lt;br /&gt;
&lt;br /&gt;
Here’s what our finished example looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-eSmEADP42hU/TjYDeTCo09I/AAAAAAAAADs/rzZSuP_c82E/s1600/3-Final.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="292" src="http://1.bp.blogspot.com/-eSmEADP42hU/TjYDeTCo09I/AAAAAAAAADs/rzZSuP_c82E/s640/3-Final.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-924914783717578948?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Zilzj2nVjazrr-XRhV4MJgp85Ig/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zilzj2nVjazrr-XRhV4MJgp85Ig/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Zilzj2nVjazrr-XRhV4MJgp85Ig/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zilzj2nVjazrr-XRhV4MJgp85Ig/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/3sk6IbBOGA8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/924914783717578948/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/08/aws-ec2-security-group-firewall-design.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/924914783717578948?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/924914783717578948?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/3sk6IbBOGA8/aws-ec2-security-group-firewall-design.html" title="AWS EC2 Security Group (Firewall) Design and Creation" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-znEWU2SJxo0/TjYDROkQOsI/AAAAAAAAADk/ZF43BOofOBo/s72-c/1-CreateSecGrp.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/08/aws-ec2-security-group-firewall-design.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MEQHg9fCp7ImA9WhdSGEQ.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-5188356813636346423</id><published>2011-07-29T10:30:00.000+10:00</published><updated>2011-07-29T10:30:01.664+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-29T10:30:01.664+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>How to increase disk space on existing AWS EC2 Linux (Ubuntu) Instance without losing data</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
Let’s say you have a Linux Amazon Web Services (AWS) EC2 Instance up and running and you start running out of space. I’ll show you how to quickly clone its disk (EBS volume) onto a bigger disk (also EBS), replace the smaller disk with the bigger one and boot off the bigger (new) disk. No need for any third party tools like Acronis or Ghost or even rsync.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Snapshot of the original disk:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
First thing we’ll do is to create a Snapshot of the original disk so that we can then create a new, bigger volume out of that Snapshot. There are a couple of things we have to note down first: the Instance number and then the volume attached to that Instance. The easiest way to fine the Instance number is in the Instances part of the AWS Management Console. It will start with “i” and be under the “Instance” column. Now navigate to the Volumes section (Elastic Block Store section) and locate the volume that is attached to your Instance. You can see the Instance number under the “Attachment Information” column. The first half of that string will be the Instance number. Please see the images below for an example.&lt;br /&gt;
&lt;br /&gt;
Instance (in this case number is &lt;b&gt;i-1920b74c&lt;/b&gt;):&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-2MHsbF2hyMk/TjH4Cjn6jxI/AAAAAAAAAC0/iEaPDop5F_s/s1600/1-InstanceNumber.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://2.bp.blogspot.com/-2MHsbF2hyMk/TjH4Cjn6jxI/AAAAAAAAAC0/iEaPDop5F_s/s640/1-InstanceNumber.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Please also note which Zone your Instance is in. This will be important for later. In my case the Zone is “ap-southeast-1b” in the Singapore Region. The Zone can be seen by selecting the Instance and looking under its Description tab (bottom).&lt;br /&gt;
&lt;br /&gt;
Volume (note the Instance number):&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-80spV68KYMs/TjH4bwcUsiI/AAAAAAAAAC4/-MFItUxDHG8/s1600/2-RelevantVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="264" src="http://3.bp.blogspot.com/-80spV68KYMs/TjH4bwcUsiI/AAAAAAAAAC4/-MFItUxDHG8/s640/2-RelevantVolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
As you’ll notice in the examples above, the size of the original Volume (EBS Disk) is 8 GB. I’ll increase that to 25 GB.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating a Snapshot&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To create a snapshot of the Volume you simply right-click on it and click on Create Snapshot. Or you can select the Volume and click on the Create Snapshot button at the top.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-EBEo9C4hEek/TjH4oqSbVwI/AAAAAAAAAC8/kH_dRLA1Dbo/s1600/3-CreateSnapshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://3.bp.blogspot.com/-EBEo9C4hEek/TjH4oqSbVwI/AAAAAAAAAC8/kH_dRLA1Dbo/s640/3-CreateSnapshot.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Please note that I am creating a Snapshot of the running virtual machine. If you have a database on it or some other application that has a lot of transactions happening then it would be best to turn the virtual machine off (schedule some downtime) and do the Snapshot.&lt;br /&gt;
&lt;br /&gt;
Give the Snapshot a meaningful description and a name. Click on “Yes, Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-12977bFBpJs/TjH4vl793sI/AAAAAAAAADA/uKPfbqrqVoM/s1600/4-NameSnapshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://3.bp.blogspot.com/-12977bFBpJs/TjH4vl793sI/AAAAAAAAADA/uKPfbqrqVoM/s640/4-NameSnapshot.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-nidnsy2d_D8/TjH44zi7Q3I/AAAAAAAAADE/x4kQohIHcjQ/s1600/5-SnapshotDone.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Once done, you will be able to see your Snapshot in the Snapshots part of the Elastic Block Store area. See example below. Please note the Name, Description and Capacity (original 8 GB).&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-nidnsy2d_D8/TjH44zi7Q3I/AAAAAAAAADE/x4kQohIHcjQ/s1600/5-SnapshotDone.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://1.bp.blogspot.com/-nidnsy2d_D8/TjH44zi7Q3I/AAAAAAAAADE/x4kQohIHcjQ/s640/5-SnapshotDone.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Creating a new (clone) Volume&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Next, we’ll create a Volume out of the Snapshot. Simply right-click on the Snapshot and select “Create Volume from Snapshot” from the resulting menu or you can use the button at the top.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-LJkSsn61BEg/TjH5OufTNXI/AAAAAAAAADI/twzqDPvd8ys/s1600/6-CreateVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-LJkSsn61BEg/TjH5OufTNXI/AAAAAAAAADI/twzqDPvd8ys/s640/6-CreateVolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Put in the desired Size of the new Volume and make sure the Availability Zone coresponds to the AZ that the original Instance is in. Click on “Yes, Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-2gknIb8yAqo/TjH5VqVsPnI/AAAAAAAAADM/a_Xc70kkoIk/s1600/7-VolumeDetails-Zone.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="http://1.bp.blogspot.com/-2gknIb8yAqo/TjH5VqVsPnI/AAAAAAAAADM/a_Xc70kkoIk/s640/7-VolumeDetails-Zone.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
If you navigate to the Volumes section you will see the new 25 GB volume there. You’ll notice that it is not in use.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ehSOgXlzUm4/TjH5c3G8D1I/AAAAAAAAADQ/Xa6ZXpV6CoQ/s1600/8-ResultingEBSvolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://1.bp.blogspot.com/-ehSOgXlzUm4/TjH5c3G8D1I/AAAAAAAAADQ/Xa6ZXpV6CoQ/s640/8-ResultingEBSvolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Attach new Volume to existing Instance:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
And now for the fun part. We will stop the Instance, detach the original 8 GB Volume, attach the new 25 GB Volume and make sure we are able to boot. Please note the new Volume will have the data up to the point when the Snapshot was taken. If the original machine had more data put onto it since the Snapshot then that will have to be dealt with. This is beyond the scope of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Stop the Instance (if it is running).&lt;br /&gt;
&lt;br /&gt;
Go to the EBS Volumes section, select the original Volume, right click on it and select “Detach Volume”. You can also use the Detach Volume button. When prompted, please select “Yes, Detach”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-_zWgc3dmxOc/TjH5t0yDdjI/AAAAAAAAADU/ndQhojSbqzc/s1600/9-DetachOrigVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="186" src="http://4.bp.blogspot.com/-_zWgc3dmxOc/TjH5t0yDdjI/AAAAAAAAADU/ndQhojSbqzc/s640/9-DetachOrigVolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
To attach the new Volume right-click on it and select “Attach Volume”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-wNln6DUMZ-o/TjH5z-3pI2I/AAAAAAAAADY/CYUeI6dNLEU/s1600/10-AttachNewVolume.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://2.bp.blogspot.com/-wNln6DUMZ-o/TjH5z-3pI2I/AAAAAAAAADY/CYUeI6dNLEU/s640/10-AttachNewVolume.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Make sure you select the correct Instance. In the example below I am also modifying the Device to be the same as the original one. The example is for a Linux (Ubuntu) Instance. This is important. Click on “Yes, Attach”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-DnE0KUIeZnk/TjH57Hf9ONI/AAAAAAAAADc/CbpaEWkPM8w/s1600/11-VolumeDetails.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-DnE0KUIeZnk/TjH57Hf9ONI/AAAAAAAAADc/CbpaEWkPM8w/s640/11-VolumeDetails.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The Status should change to “in-use”.&lt;br /&gt;
&lt;br /&gt;
Go back to your Instance and start it up. Log back into your Linux Instance and run the following command (for ext3 file system):&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt; resize2fs /dev/xvda1&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the device is not called sda1 but xvda1. The device was renamed by the Kernel.&lt;br /&gt;
After it is done you should be able to see the full 25 GB. use the “du -h” command. Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Wrqm86fAxXE/TjH6J5JRUzI/AAAAAAAAADg/sZLNmoaxnzM/s1600/12-ResizingInLinux.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="427" src="http://3.bp.blogspot.com/-Wrqm86fAxXE/TjH6J5JRUzI/AAAAAAAAADg/sZLNmoaxnzM/s640/12-ResizingInLinux.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Cleanup:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Once you’ve made sure all works as it should and that all your data is fine on the new Volume, you can remove the Snapshot and the old Volume if you do not intend to use them anymore. Go to the relevant AWS Management Console sections and remove (delete) them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-5188356813636346423?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xTzvKoBKxuAAz7hEyqtzBGaBXnc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xTzvKoBKxuAAz7hEyqtzBGaBXnc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xTzvKoBKxuAAz7hEyqtzBGaBXnc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xTzvKoBKxuAAz7hEyqtzBGaBXnc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/gsxlAaf4XHg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/5188356813636346423/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/07/how-to-increase-disk-space-on-existing.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5188356813636346423?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5188356813636346423?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/gsxlAaf4XHg/how-to-increase-disk-space-on-existing.html" title="How to increase disk space on existing AWS EC2 Linux (Ubuntu) Instance without losing data" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-2MHsbF2hyMk/TjH4Cjn6jxI/AAAAAAAAAC0/iEaPDop5F_s/s72-c/1-InstanceNumber.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/07/how-to-increase-disk-space-on-existing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIFRX47eip7ImA9WhdSGEg.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-1716271167814062625</id><published>2011-07-28T22:01:00.000+10:00</published><updated>2011-07-28T22:01:54.002+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-28T22:01:54.002+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><category scheme="http://www.blogger.com/atom/ns#" term="key pairs" /><title>Replace a lost Key Pair an existing AWS EC2 Instance uses</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
This tutorial will show you how to use a new Key Pair with an existing Linux instance.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Problem:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You have an existing EBS (root device) based Instance with data on it that needs to be saved. The original Key Pair has been lost so you can’t log into the Linux Instance. You need to get to the data on the virtual machine.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We’ll clone the running Instance and re-deploy it but with a new Key Pair. We can either use a pre-made Pair or create a Pair while we’re re-deploying. My example uses Ubuntu but should apply to other flavours as well.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating an Image:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Log into your Amazon Web Services (AWS) Management Console, go to Amazon EC2, pick the Region where the Instance in question is running and click on the Instances link. Right click on the Instance in question and select “Create Image (EBS AMI)” from the resulting menu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-fefLHnCR37c/TjFMHV_IHqI/AAAAAAAAACU/FMU8yn3TdM8/s1600/1-CreateImage-EBS-AMI-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="184" src="http://2.bp.blogspot.com/-fefLHnCR37c/TjFMHV_IHqI/AAAAAAAAACU/FMU8yn3TdM8/s640/1-CreateImage-EBS-AMI-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-5BpLNHSVQBQ/TjFMabSXdWI/AAAAAAAAACY/jjkV5Irz5uI/s1600/2-NameDescription-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Give it a Image Name and a Description and click on “Create This Image” button. Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-5BpLNHSVQBQ/TjFMabSXdWI/AAAAAAAAACY/jjkV5Irz5uI/s1600/2-NameDescription-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/-5BpLNHSVQBQ/TjFMabSXdWI/AAAAAAAAACY/jjkV5Irz5uI/s400/2-NameDescription-NewKeys.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-3gKGf5QQMPg/TjFMq8HN0JI/AAAAAAAAACc/ywKg_RKiZvA/s1600/3-ResultingImage-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The process will now begin.&amp;nbsp; Close the notification window.&lt;br /&gt;
&lt;br /&gt;
Once the AMI is created (won’t take long) you should see it in the "Images" - "AMIs" part of your Amazon EC2 AWS Management Console. Please make sure you are still in the correct Region. Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-3gKGf5QQMPg/TjFMq8HN0JI/AAAAAAAAACc/ywKg_RKiZvA/s1600/3-ResultingImage-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="178" src="http://4.bp.blogspot.com/-3gKGf5QQMPg/TjFMq8HN0JI/AAAAAAAAACc/ywKg_RKiZvA/s640/3-ResultingImage-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating new Instance out of the new AMI:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Go to Images AMIs, locate your recently created AMI, right-click on it and select “Launch Instance” from the resulting menu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-zlMEw-oNfls/TjFM7p_i3iI/AAAAAAAAACg/VQ2pawHz4rM/s1600/4-LaunchInstance-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://2.bp.blogspot.com/-zlMEw-oNfls/TjFM7p_i3iI/AAAAAAAAACg/VQ2pawHz4rM/s640/4-LaunchInstance-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Follow the prompts to finish creating the Instance (see my previous post) &lt;b&gt;but make sure you select the correct Key Pair (one you create earlier, not the lost one) in the “Create Key Pair” section. &lt;/b&gt;Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-xxDsdEUWaF0/TjFNDVcyxWI/AAAAAAAAACk/AeWJrclkczM/s1600/5-PickKeyPair-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-xxDsdEUWaF0/TjFNDVcyxWI/AAAAAAAAACk/AeWJrclkczM/s640/5-PickKeyPair-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
All other settings should be the same as for the original Instance.&lt;br /&gt;
After a little bit of time your new Instance should be up and running. &lt;br /&gt;
Here’s an example below. Please note the different Key Pairs.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Rs1wTBkMqVk/TjFNVZ4reeI/AAAAAAAAACo/wsYkFdKd6RM/s1600/6-TwoImages-DiffKeyPair-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="202" src="http://2.bp.blogspot.com/-Rs1wTBkMqVk/TjFNVZ4reeI/AAAAAAAAACo/wsYkFdKd6RM/s640/6-TwoImages-DiffKeyPair-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
You can now connect to it, using your new private key, and confirm that all your data is still there.&lt;br /&gt;
Once you confirm no data is missing you can stop the old Instance and eventuality terminate it (after making absolutely sure you will never need anything from it).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cleaning Up:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You can now de-register the AMI (unless you want to use later again).&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-lqKHKaLyHBA/TjFOOLr775I/AAAAAAAAACs/Cfo_xj87S9M/s1600/7-DeRegisterAMI-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="190" src="http://1.bp.blogspot.com/-lqKHKaLyHBA/TjFOOLr775I/AAAAAAAAACs/Cfo_xj87S9M/s640/7-DeRegisterAMI-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
You should also go to EBS - Snapshots and delete the Snapshot of the disk that was created when the AMI was made (unless you intend to use it for something in the future).&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-bpLEdrh9SQQ/TjFOTkMKrwI/AAAAAAAAACw/qFqJQcIYIpY/s1600/8-DeleteDiskSnapshot-NewKeys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="224" src="http://2.bp.blogspot.com/-bpLEdrh9SQQ/TjFOTkMKrwI/AAAAAAAAACw/qFqJQcIYIpY/s640/8-DeleteDiskSnapshot-NewKeys.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-1716271167814062625?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KcX-W7QTJLPPRAJFiMwVSV2Vtvo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KcX-W7QTJLPPRAJFiMwVSV2Vtvo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KcX-W7QTJLPPRAJFiMwVSV2Vtvo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KcX-W7QTJLPPRAJFiMwVSV2Vtvo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/s3FTmT8CndQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/1716271167814062625/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/07/replace-lost-key-pair-existing-aws-ec2.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/1716271167814062625?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/1716271167814062625?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/s3FTmT8CndQ/replace-lost-key-pair-existing-aws-ec2.html" title="Replace a lost Key Pair an existing AWS EC2 Instance uses" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-fefLHnCR37c/TjFMHV_IHqI/AAAAAAAAACU/FMU8yn3TdM8/s72-c/1-CreateImage-EBS-AMI-NewKeys.png" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/07/replace-lost-key-pair-existing-aws-ec2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YCRHg7cCp7ImA9WhdSF08.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-6590953867834413076</id><published>2011-07-27T11:12:00.000+10:00</published><updated>2011-07-27T11:12:45.608+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-27T11:12:45.608+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><category scheme="http://www.blogger.com/atom/ns#" term="key pairs" /><title>Creating a Key Pair to share between AWS EC2 Instances</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
Sign into Amazon Web Services Console. Go to the Amazon EC2 tab.&lt;br /&gt;
Pick your desired Region as this is where the key will be stored.&lt;br /&gt;
Locate the “Key Pairs” link under Networking &amp;amp; Security section and click on it.&lt;br /&gt;
Click on “Create Key Pair” button on the top to start the process.&lt;br /&gt;
Give the Key Pair a name. E.g. APAC-Keys-2011. Click on “Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-42dSlJ6sTQY/Ti9jIlIhMbI/AAAAAAAAACM/_ciDe3lMbX8/s1600/1-KeyPairName-2011-Jul-25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="217" src="http://1.bp.blogspot.com/-42dSlJ6sTQY/Ti9jIlIhMbI/AAAAAAAAACM/_ciDe3lMbX8/s400/1-KeyPairName-2011-Jul-25.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The Key Pair will be created and you will be prompted to save the private portion (a .pem file) on your computer/device. Please do so and make sure you keep it private,&lt;br /&gt;
&lt;br /&gt;
You can now use this Key Pair for your new Instances. Please pick the “Choose from your existing Key Pairs” at the “Key Pairs” option when creating an Instance and select your pre-made Key Pair. Example below:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-q7odm-oHBf4/Ti9jN5unuNI/AAAAAAAAACQ/Oz797dnXeOc/s1600/2-PickExistingKeyPair-2011-Jul-25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://3.bp.blogspot.com/-q7odm-oHBf4/Ti9jN5unuNI/AAAAAAAAACQ/Oz797dnXeOc/s640/2-PickExistingKeyPair-2011-Jul-25.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-6590953867834413076?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MXRn6tjlfGtPDPsq1M6JrVFSlIE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MXRn6tjlfGtPDPsq1M6JrVFSlIE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MXRn6tjlfGtPDPsq1M6JrVFSlIE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MXRn6tjlfGtPDPsq1M6JrVFSlIE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/uj_ewtDEIhM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/6590953867834413076/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/07/creating-key-pair-to-share-between-aws.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/6590953867834413076?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/6590953867834413076?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/uj_ewtDEIhM/creating-key-pair-to-share-between-aws.html" title="Creating a Key Pair to share between AWS EC2 Instances" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-42dSlJ6sTQY/Ti9jIlIhMbI/AAAAAAAAACM/_ciDe3lMbX8/s72-c/1-KeyPairName-2011-Jul-25.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/07/creating-key-pair-to-share-between-aws.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IGSXkzcCp7ImA9WhdSF0w.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-5989879083388654745</id><published>2011-07-26T19:46:00.001+10:00</published><updated>2011-07-27T07:25:28.788+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-27T07:25:28.788+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PuTTY" /><category scheme="http://www.blogger.com/atom/ns#" term="puttygen" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>Connecting to AWS Linux (Ubuntu) Instance from Windows using PuTTY and the SSH protocol</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
This part continues from the previous “NAME” part where we launched an Instance. In this part I will show you how to use PuTTY to connect to your running Linux (Ubuntu) Instance. In order for PuTTY to access your Instance over the SSH protocol we opened up the SSH TCP port (22) by using a Security Group which is essentially a Firewall.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating a PuTTY Private Key:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We must first create a PuTTY Private Key using the .PEM key generated beforehand. For this you need to get &lt;a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html" target="_blank"&gt;puttygen&lt;/a&gt;.&lt;br /&gt;
Run puttygen to start the process. Click on “File” and on “Load private key”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-vodpFcQXEX8/Ti6LlAQ40BI/AAAAAAAAAB4/GiTa5JqpQGc/s1600/1-puttygen-file-load_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260" src="http://3.bp.blogspot.com/-vodpFcQXEX8/Ti6LlAQ40BI/AAAAAAAAAB4/GiTa5JqpQGc/s400/1-puttygen-file-load_2011-07-23.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Browse to the private key file (.pem) you saved earlier and load it. You should get a success notice like the one below. Click on OK.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-vgvf8T4b9Ek/Ti6Ly-pFa5I/AAAAAAAAAB8/ZBREwsWFUWs/s1600/2-puttygen-success_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="616" src="http://1.bp.blogspot.com/-vgvf8T4b9Ek/Ti6Ly-pFa5I/AAAAAAAAAB8/ZBREwsWFUWs/s640/2-puttygen-success_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
You may want to edit the key comment and put a key passphrase before we generate a PPK file. I recommend using a key passhprase but please do not forget it or your resulting PPK will be of no use. Leave the type of key as SSH-2 RSA and leave the number of bits as 1024. Once you’ve made desired comments and put in the phrase click on “Save private key”. Give it a meaningful name and save as .ppk.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Connecting to AWS Linux Instances:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We must first find out the public DNS of the Instance we wish to connect to. To do this go to your AWS Management Console, go to Amazon EC2 tab, Instances, click on your Instance and look down under “Description”. You should see an address, next to Public DNS, similar to this: ec2-122-248-203-235.ap-southeast-1.compute.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
Next, start PuTTY, put the DNS entry into the Host Name field and then browse down to the SSH Category and to the Auth section under SSH. This is where you add your private key (PPK) for later authentication. Go back to the Session category, make sure the DNS entry is still there, give this session a name (e.g. Test AWS Ubunt) and click on Save.&lt;br /&gt;
See below for an example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ucHHB_rySMk/Ti6L_xy61pI/AAAAAAAAACA/LGJ--pXNEUs/s1600/3-AddPPK-to-PuTTY_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="611" src="http://1.bp.blogspot.com/-ucHHB_rySMk/Ti6L_xy61pI/AAAAAAAAACA/LGJ--pXNEUs/s640/3-AddPPK-to-PuTTY_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/--rfBtkHJajM/Ti6MK7EpeyI/AAAAAAAAACE/GK58BZdghCI/s1600/4-SavePuTTY-Session_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="404" src="http://4.bp.blogspot.com/--rfBtkHJajM/Ti6MK7EpeyI/AAAAAAAAACE/GK58BZdghCI/s640/4-SavePuTTY-Session_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now it’s a simple matter of loading the saved session. First time you connect you will get a security alert saying that the server’s host key is unknown to you. Please select Yes to continue if you think it is safe to do so (in this case it is). You will get this with any new server the first time. You will also get this if you turn your Instance off and then on again (because the DNS and server hostname will change). The private key will not change so that can be re-used to connect.&lt;br /&gt;
You will be prompted to put in a username to log in. For this particular AMI it is ‘ubuntu’. Once you put that in you will get prompted to put the PPK passphrase (if you set one). If all goes well you should be logged into your Ubuntu Linux Amazon AWS Instance. Yay :)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-36PKotS-Ck8/Ti6MXWRlBPI/AAAAAAAAACI/KFDQiC-IsZQ/s1600/5-LoggedIn_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="http://3.bp.blogspot.com/-36PKotS-Ck8/Ti6MXWRlBPI/AAAAAAAAACI/KFDQiC-IsZQ/s400/5-LoggedIn_2011-07-23.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
Troubleshooting:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you’re having issues then please revisit the steps above. Please make sure you’re using the correct DNS entry and the correct private key. You can check which private key the Instance is using by looking at the Instance Details section (same one where DNS info is located). Please be aware that the public DNS string will change if you shut the server down and start it again. This can be addressed using Elastic IPs but we’ll cover that in another tutorial some other time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-5989879083388654745?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XZO3sU2ZOZht_IcYL4Kmcj0MTk4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XZO3sU2ZOZht_IcYL4Kmcj0MTk4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XZO3sU2ZOZht_IcYL4Kmcj0MTk4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XZO3sU2ZOZht_IcYL4Kmcj0MTk4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/KjMXc1REQvM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/5989879083388654745/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/07/connecting-to-aws-linux-ubuntu-instance.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5989879083388654745?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5989879083388654745?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/KjMXc1REQvM/connecting-to-aws-linux-ubuntu-instance.html" title="Connecting to AWS Linux (Ubuntu) Instance from Windows using PuTTY and the SSH protocol" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-vodpFcQXEX8/Ti6LlAQ40BI/AAAAAAAAAB4/GiTa5JqpQGc/s72-c/1-puttygen-file-load_2011-07-23.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/07/connecting-to-aws-linux-ubuntu-instance.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQFSXY6fip7ImA9WhdSFko.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-4721448484997578853</id><published>2011-07-26T19:01:00.001+10:00</published><updated>2011-07-26T20:48:38.816+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-26T20:48:38.816+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="amazon" /><category scheme="http://www.blogger.com/atom/ns#" term="aws management console" /><category scheme="http://www.blogger.com/atom/ns#" term="ec2" /><category scheme="http://www.blogger.com/atom/ns#" term="ami" /><category scheme="http://www.blogger.com/atom/ns#" term="aws" /><title>Launching a Linux (Ubuntu) Instance on Amazon Web Services EC2 - A Beginner's Guide</title><content type="html">By Semir H.&lt;br /&gt;
&lt;br /&gt;
To create an AWS account please see &lt;a href="http://www.slideshare.net/simone.brunozzi/amazon-web-services-signup" target="_blank"&gt;How To Sign Up&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Log into your AWS account and go to the AWS Management Console.&lt;br /&gt;
Go to the Amazon EC2 tab. Make sure you’ve picked the desired Region (&lt;a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?using-regions-availability-zones.html" target="_blank"&gt;see this article&lt;/a&gt; for more detail).&lt;br /&gt;
&lt;br /&gt;
Click on the ‘Launch Instance” button to start the process.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-aosVwYRolDU/Ti6AKTsAvfI/AAAAAAAAABY/SzPExEo5V_c/s1600/1-PickRegion-LaunchInstance_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="440" src="http://1.bp.blogspot.com/-aosVwYRolDU/Ti6AKTsAvfI/AAAAAAAAABY/SzPExEo5V_c/s640/1-PickRegion-LaunchInstance_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I’ll be creating a micro Instance of Ubuntu 11.04 64-bit server from one of the Community Amazon Machine Images (AMI). Community &lt;a href="http://aws.amazon.com/amis" target="_blank"&gt;AMIs&lt;/a&gt; are pre-configured operating systems available for anyone to create Instances from.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Choose an AMI:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Click on Community AMIs and find your desired AMI. In my case it will be Ubuntu Natty Daily with AMI ID = ami-48aad21a. Click on “Select” next to it to continue.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1RddgZLM82c/Ti6AreVN7iI/AAAAAAAAABc/fi2iUnJvTZo/s1600/2-PickCommAMI-UbuntuNatty-64-FreeTier_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="408" src="http://1.bp.blogspot.com/-1RddgZLM82c/Ti6AreVN7iI/AAAAAAAAABc/fi2iUnJvTZo/s640/2-PickCommAMI-UbuntuNatty-64-FreeTier_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Instance Details:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You can leave Instance Details at defaults. I am choosing a Micro Instance and I do not care about the Availability Zone for now. Click on “Continue”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-AMKx3uBTHLQ/Ti6A5dcANOI/AAAAAAAAABg/039tF7Y43ag/s1600/3-InstanceDetails_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="434" src="http://4.bp.blogspot.com/-AMKx3uBTHLQ/Ti6A5dcANOI/AAAAAAAAABg/039tF7Y43ag/s640/3-InstanceDetails_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Leave the Advanced Instance Options at defaults an click on “Continue”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-TvdWDWEsKyw/Ti6BBGuXdBI/AAAAAAAAABk/-0AYrW3rrzU/s1600/4-AdvancedInstanceOptions_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="436" src="http://2.bp.blogspot.com/-TvdWDWEsKyw/Ti6BBGuXdBI/AAAAAAAAABk/-0AYrW3rrzU/s640/4-AdvancedInstanceOptions_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Leave the Tags part empty for now. We’ll cover this in another tutorial. Click on “Continue”.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-WE1vmzCBCB4/Ti6BJ2OC_WI/AAAAAAAAABo/K5wuf-vjqCk/s1600/5-Tags-LeaveEmptyForNow_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/-WE1vmzCBCB4/Ti6BJ2OC_WI/AAAAAAAAABo/K5wuf-vjqCk/s640/5-Tags-LeaveEmptyForNow_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &lt;br /&gt;
&lt;b&gt;Create a Key Pair:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We will&amp;nbsp; need to create public/private key pairs to later access our Linux (Ubuntu) Instance.&lt;br /&gt;
You can create these per Instance or you can create them beforehand and use for future Instances. We’ll create one now for testing purposes. I’ll cover creating some for re-use later.&lt;br /&gt;
&lt;br /&gt;
Enter a name for your key pair and click on the “Create and Download you Key Pair” link. Example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Cpcd8Req4Rg/Ti6BZJYCEgI/AAAAAAAAABs/L1Erm9xA6Zk/s1600/6-CreateKeyPair_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://3.bp.blogspot.com/-Cpcd8Req4Rg/Ti6BZJYCEgI/AAAAAAAAABs/L1Erm9xA6Zk/s640/6-CreateKeyPair_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;You will get prompted to open/save the resulting .pem file. Please do so.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Configure Firewall:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The next part configuring a security group which is basically a firewall.&lt;br /&gt;
Since I want to open ports for SSH (TCP 22) and HTTP (TCP 80) I will choose to create a new group and add those rules in at this stage. You can come back to this later to open more ports or close some.&lt;br /&gt;
So pick “Create a new Security Group”, give it a name and a description and add the desired rules. Some are pre-defined (e.g. SSH and HTTP) so you need to just pick them from the “Create a new rule” drop-down and add them. I’m leaving the source at default. Once done click on “Continue”.&lt;br /&gt;
See here for an example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-mncxEfdE88s/Ti6Bm78zlAI/AAAAAAAAABw/3U-vrvDaJI0/s1600/7-Firewall-NewSecGrp_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="434" src="http://2.bp.blogspot.com/-mncxEfdE88s/Ti6Bm78zlAI/AAAAAAAAABw/3U-vrvDaJI0/s640/7-Firewall-NewSecGrp_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Review:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This is the final stage before launching. It gives you the opportunity to review your choices and edit them if you wish to. If you’re happy with them then click on “&lt;b&gt;Launch&lt;/b&gt;”.&lt;br /&gt;
You will get a message that the Instance is being launched.&lt;br /&gt;
&lt;br /&gt;
To view the progress of the launch you go back to the AWS Management Console and go to the Amazon EC2 tab. Click on Instances in the menu on the left. You should see your instance and the various properties it has as well as the Status. In no time it will turn to “running”. Here’s an example of this view:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-OEFIJQ8zKPM/Ti6B53mBTcI/AAAAAAAAAB0/7nfVZw96n-Y/s1600/8-ViewLaunchedInstance_2011-07-23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="146" src="http://3.bp.blogspot.com/-OEFIJQ8zKPM/Ti6B53mBTcI/AAAAAAAAAB0/7nfVZw96n-Y/s640/8-ViewLaunchedInstance_2011-07-23.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
That’s it. You can now connect to your running Instance. I’ll cover how to do that in my &lt;a href="http://itkbcentral.blogspot.com/2011/07/connecting-to-aws-linux-ubuntu-instance.html" target="_blank"&gt;next tutorial&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-4721448484997578853?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m2xwWH0uChptJ8p9i9UDow0RVt8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2xwWH0uChptJ8p9i9UDow0RVt8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m2xwWH0uChptJ8p9i9UDow0RVt8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2xwWH0uChptJ8p9i9UDow0RVt8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/CMzERHTOmbI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/4721448484997578853/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2011/07/launching-linux-ubuntu-instance-on_1309.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/4721448484997578853?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/4721448484997578853?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/CMzERHTOmbI/launching-linux-ubuntu-instance-on_1309.html" title="Launching a Linux (Ubuntu) Instance on Amazon Web Services EC2 - A Beginner's Guide" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-aosVwYRolDU/Ti6AKTsAvfI/AAAAAAAAABY/SzPExEo5V_c/s72-c/1-PickRegion-LaunchInstance_2011-07-23.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2011/07/launching-linux-ubuntu-instance-on_1309.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UGSHY_eyp7ImA9WxBWGE4.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-6859181304166024101</id><published>2010-02-03T13:54:00.005+11:00</published><updated>2010-02-11T06:47:09.843+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-11T06:47:09.843+11:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ESX" /><category scheme="http://www.blogger.com/atom/ns#" term="vmware" /><title>How To KILL a stuck Virtual Machine (ESX 3.5)</title><content type="html">Found this useful the other day - twice.&lt;br /&gt;
&lt;br /&gt;
The first time a VM would not live&amp;nbsp;migrate from one host to another. I stopped it and migrated but then it would not start, giving me the "Could not power on VM: No swap file. Failed to power on VM"&lt;br /&gt;
Using the below instruction I managed to kill the process that was still making it seem like the VM was running fine.&lt;br /&gt;
&lt;br /&gt;
The second time I was taking a snapshot of a VM and it just did not work. Timed out AND made the VM freeze. I tried restarting and turning off the VM but it would not as there was "another process running" which I guess was the failed snapshot. Again, I used the below commands to kill the process (the VM)&amp;nbsp;and was then able to start the VM. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ps -auxwww | grep -i &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;vmname&gt;&lt;/vmname&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Find the PID and kill -9 pid&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
vm-support -x - to list vmids&lt;br /&gt;
&lt;br /&gt;
vm-support -X &lt;vmid&gt;to kill it&lt;/vmid&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-6859181304166024101?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5Gby-bLC_tUF941akPOgGlN4DYI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5Gby-bLC_tUF941akPOgGlN4DYI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5Gby-bLC_tUF941akPOgGlN4DYI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5Gby-bLC_tUF941akPOgGlN4DYI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/N65aWgYn2vk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/6859181304166024101/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2010/02/how-to-kill-stuck-virtual-machine-esx.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/6859181304166024101?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/6859181304166024101?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/N65aWgYn2vk/how-to-kill-stuck-virtual-machine-esx.html" title="How To KILL a stuck Virtual Machine (ESX 3.5)" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2010/02/how-to-kill-stuck-virtual-machine-esx.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08NQXg5cCp7ImA9WxNQEUU.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-5068286975979088414</id><published>2009-08-23T11:11:00.013+10:00</published><updated>2009-09-17T20:04:50.628+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-17T20:04:50.628+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Terminal Services" /><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server" /><category scheme="http://www.blogger.com/atom/ns#" term="Licensing" /><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft" /><title>How To Install Applications on Microsoft Terminal Servers  Correctly</title><content type="html">This article assumes that the Microsoft Terminal Services Licensing and other TS features are already configured. It concentrates only on new Terminal Servers and how to deploy Applications on those new Servers.&lt;br /&gt;&lt;br /&gt;Many people new to Microsoft Terminal Services will not know how to correctly install various applications in order for them to function properly in a Terminal Services environment. The basic steps are:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Install Microsoft Windows Server (2000/2003/2008).&lt;/li&gt;&lt;li&gt;Do all the Security and Updates Patching.&lt;/li&gt;&lt;li&gt;Install Microsoft Terminal Services in Application Mode.&lt;/li&gt;&lt;li&gt;Enter the "Install" mode.&lt;/li&gt;&lt;li&gt;Install Applications.&lt;/li&gt;&lt;li&gt;Enter the "Execute" mode.&lt;/li&gt;&lt;li&gt;Join the Server to the Domain and the rest of the Terminal Servers.&lt;/li&gt;&lt;/ol&gt;I won't go into details for most of these steps.&lt;br /&gt;&lt;br /&gt;To use the Terminal Server in Application Mode then you must have Microsoft Terminal Services Licensing service installed. If you are joining a new TS Server to the existing TS environment then you already most likely have this. Then you just have to install the Terminal Services role on the new server.&lt;br /&gt;&lt;br /&gt;The next step is to go into the "Install Mode". This is done as follows:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Open a command window (cmd).&lt;/li&gt;&lt;li&gt;Type "change user /install" (without the quotes) and press ENTER.&lt;/li&gt;&lt;/ul&gt;Next you install the desired applications (e.g. Microsoft Office 2003 Enterprise, Crystal Reports, Cisco admin applications, etc)&lt;br /&gt;&lt;br /&gt;Next you switch into the "Execute Mode". This is done as follows:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Open a command window (cmd).&lt;/li&gt;&lt;li&gt;Type "change user /execute" (without the quotes) and press ENTER.&lt;/li&gt;&lt;/ul&gt;IF you have installed the applications before installing Microsoft Terminal Services role then you will have to uninstall and install again following the steps outlined above. Hopefully this will help some of you avoid re-installing the applications by doing it correctly the first time.&lt;br /&gt;&lt;br /&gt;For more info please see "&lt;a href="http://support.microsoft.com/kb/252330" target="_blank"&gt;When you toggle Terminal Services to Application Server mode, some programs may stop working&lt;/a&gt;" from Microsoft Help and Support.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-5068286975979088414?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ULmLYheoKZM_3znTsVuaJ_kIBiI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ULmLYheoKZM_3znTsVuaJ_kIBiI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ULmLYheoKZM_3znTsVuaJ_kIBiI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ULmLYheoKZM_3znTsVuaJ_kIBiI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/rnYYAQ0F1nM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/5068286975979088414/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2009/08/how-to-install-applications-on.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5068286975979088414?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/5068286975979088414?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/rnYYAQ0F1nM/how-to-install-applications-on.html" title="How To Install Applications on Microsoft Terminal Servers  Correctly" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2009/08/how-to-install-applications-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cHRXc5fip7ImA9WxJaFUQ.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-1851122288787431508</id><published>2009-08-06T16:40:00.011+10:00</published><updated>2009-08-07T07:43:54.926+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-07T07:43:54.926+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iSCSI" /><category scheme="http://www.blogger.com/atom/ns#" term="Fiber Channel" /><category scheme="http://www.blogger.com/atom/ns#" term="ESXi" /><category scheme="http://www.blogger.com/atom/ns#" term="ESX" /><category scheme="http://www.blogger.com/atom/ns#" term="Storage" /><category scheme="http://www.blogger.com/atom/ns#" term="SAN" /><category scheme="http://www.blogger.com/atom/ns#" term="vmware" /><title>iSCSI Storage Connectivity Best Practice with VMware</title><content type="html">I am quite impressed with VMware I must say. We use it in production at work and now I cannot imagine my professional life without it.&lt;br /&gt;In this post I will briefly describe what your ideal &lt;span style="font-style: italic;"&gt;cheap&lt;/span&gt; iSCSI Storage setup should look like.&lt;br /&gt;&lt;br /&gt;Normally, production environments of many companies will use full versions of VMware ESX (e.g. ESX 3.5 - commonly;y know as VI3 Infrastructure or the new vSphere - ESX 4.0) with a SAN (Storage Area Network) where the Virtual Machines will live. In most cases the connection between the ESX boxes and the SAN is via Fiber Channel (FC) (&lt;a href="http://en.wikipedia.org/wiki/Fibre_Channel" target="_blank"&gt;see here for more info&lt;/a&gt;). This is usually very expensive.&lt;br /&gt;&lt;br /&gt;Many companies resort to using iSCSI for their test environments or even production environments. You can learn more about iSCSI &lt;a href="http://en.wikipedia.org/wiki/ISCSI" target="_blank"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Both ESX and ESXi versions support Software iSCSI Adapters. You are free to buy iSCSI HBAs but I found that the Software adapter is quite enough for all my testing needs. Money saved.&lt;br /&gt;&lt;br /&gt;The diagram bellow shows what you ideal iSCSI network setup should be (click on it for the bigger version).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_gERz6UaC6Qw/Snp-QcdfzhI/AAAAAAAAAAk/wBgaVL0m15M/s1600-h/iSCSI-BestPrac-c.png" target="_blank"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 275px;" src="http://1.bp.blogspot.com/_gERz6UaC6Qw/Snp-QcdfzhI/AAAAAAAAAAk/wBgaVL0m15M/s400/iSCSI-BestPrac-c.png" alt="" id="BLOGGER_PHOTO_ID_5366740726948285970" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;This setup requires that each ESX (ESXi) box has (at least) two NICs that will carry the data over iSCSI. Each NIC will hook into a separate Network Switches. So you will need two Network Switches too. The idea is that if one of the ESX (ESXi) NICs fails you will still have connectivity over the other NIC. And if one of the Network Switches fails you should still have connectivity to the iSCSI Storage Device.&lt;br /&gt;So the single point of failure in this example is the iSCSI Storage Device (this post will not deal with that).&lt;br /&gt;&lt;br /&gt;You can have iSCSI working with just one network sw and one NIC per ESX box but that does not give you redundancy. The above setup is good enough to use in production. I would recommend the 1 SW + 1NIC/ESX for TEST environments only.&lt;br /&gt;&lt;br /&gt;I will probably write a more detailed tutorial on how to do the above setup with VMware ESX (ESXi) in the future.&lt;br /&gt;&lt;br /&gt;That's it for now :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-1851122288787431508?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/n-3EbHthwDj3I29RHm-dybm8iMo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n-3EbHthwDj3I29RHm-dybm8iMo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/n-3EbHthwDj3I29RHm-dybm8iMo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n-3EbHthwDj3I29RHm-dybm8iMo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/mQ4pRKdLZck" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/1851122288787431508/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2009/08/iscsi-storaga-best-practice-with-vmware.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/1851122288787431508?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/1851122288787431508?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/mQ4pRKdLZck/iscsi-storaga-best-practice-with-vmware.html" title="iSCSI Storage Connectivity Best Practice with VMware" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_gERz6UaC6Qw/Snp-QcdfzhI/AAAAAAAAAAk/wBgaVL0m15M/s72-c/iSCSI-BestPrac-c.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2009/08/iscsi-storaga-best-practice-with-vmware.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQMQn89fyp7ImA9WhdSFU0.&quot;"><id>tag:blogger.com,1999:blog-7421636905615986157.post-2706214277423676777</id><published>2009-08-02T12:03:00.029+10:00</published><updated>2011-07-24T21:53:03.167+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-24T21:53:03.167+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="ssl" /><category scheme="http://www.blogger.com/atom/ns#" term="https" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="proxy" /><category scheme="http://www.blogger.com/atom/ns#" term="pound" /><title>Securing Websites with Pound (reverse HTTP proxy &amp; SSL wrapper)</title><content type="html">&lt;span style="font-size: 130%;"&gt;&lt;span style="font-size: 100%;"&gt;This is a short article on how to use Pound as a Reverse SSL Proxy.  &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 130%; font-weight: bold;"&gt;&lt;br /&gt;
&lt;br /&gt;
Problem/Requirement:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;You have a few websites in your DMZ or even on the LAN. You want them to be accessible from to the outside (Internet). Some of these websites are web based applications. You also have 1 external IP.&lt;br /&gt;
You want to serve all these websites from the one external IP and you want most of them to be secured via SSL (HTTPS).&lt;br /&gt;
On top of that you have different web servers serving the pages (e.g. Apache, IIS).&lt;br /&gt;
&lt;br /&gt;
The diagram below depicts a typical inefficient web server setup (click on image to see larger version):&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_gERz6UaC6Qw/SnZspj-g9FI/AAAAAAAAAAU/4CU98n5hilM/s1600-h/PoundExplanation-Before-c.PNG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" target="_blank"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5365595467346408530" src="http://3.bp.blogspot.com/_gERz6UaC6Qw/SnZspj-g9FI/AAAAAAAAAAU/4CU98n5hilM/s400/PoundExplanation-Before-c.PNG" style="cursor: pointer; display: block; height: 176px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Requirements Summary:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Use just one external IP.&lt;/li&gt;
&lt;li&gt;Use one SSL certificate (for websites under the same domain/sub domains).&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Secure websites REGARDLESS of the web server technology used to serve those websites.&lt;/li&gt;
&lt;li&gt;Have the ability to pick which websites get SSL encryption based on the source of the request (e.g. if from Internet then use SSL, if from corporate LAN then do not encrypt).&lt;/li&gt;
&lt;/ul&gt;&lt;span style="font-size: 130%; font-weight: bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Use a free application called Pound.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;What is Pound?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;Pound is a reverse HTTP proxy, load balancer, and SSL wrapper. It proxies client HTTPS requests to HTTP backend servers, distributes the requests among several servers while keeping sessions, supports HTTP/1.1 requests even if the backend server(s) are HTTP/1.0, and sanitizes requests.&lt;br /&gt;
It runs on Linux.&lt;br /&gt;
You can find more info @ &lt;a href="http://www.apsis.ch/pound/" target="_blank"&gt;http://www.apsis.ch/pound/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;How Will it Work?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The diagram below shows where we want to be (click on image to see larger version):&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_gERz6UaC6Qw/SnaDm6FFPLI/AAAAAAAAAAc/8_lgNq7Gnrw/s1600-h/PoundExplanation-WithPound-c.PNG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" target="_blank"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5365620710507363506" src="http://1.bp.blogspot.com/_gERz6UaC6Qw/SnaDm6FFPLI/AAAAAAAAAAc/8_lgNq7Gnrw/s400/PoundExplanation-WithPound-c.PNG" style="cursor: pointer; display: block; height: 184px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;
Basically we want the Pound server to be the first point of contact from the outside. This way we reduce the number of "holes" we have to open in the firewall(s) and put another layer of security between the Internet and our web servers.&lt;br /&gt;
Pound meets all of our previously stated requirements:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;We can use just one External IP to server all our websites.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Using a wildcard certificate (e.g. *.testdomain.test) we can encrypt all the web sites under the same domain/sub domains with just that one cert.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Because we are doing the SSL encryption with Pound, it no longer matters what the other web servers inside your network use to serve pages. They can be Apache, IIS, Tomcat, etc. You can leave them ALL at the default port 80 (or 8080 for some). Pound can talk to them on pretty much any available port (even 443).&lt;/li&gt;
&lt;li&gt;We can make pound encrypt all requests that come from the Internet but NOT do so if the requests come from the LAN. Some companies choose to do that because it makes things faster. Not using SSL/HTTPS internaly can be done in two ways. One way is through Pound (so all the  internal websites would point to the same internal Pound IP) and the other way is to not involve Pound at all. People wold just directly access the individual web servers. An advantage of going via Pound is that you can track access from one location and perhaps do custom redirects when needed (e.g. if a web server is down for maintenance you can have pound redirect to a notification page somewhere else).&lt;/li&gt;
&lt;/ul&gt;Of course, there is one problem with using Pound for evertynig. It becomes a single point of failure. I suppose that can be remedied by using another Pound server to load balance or in another way (e.g. run as Virtual Machine - which works good. Let VMware worry about high availability, etc)&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Next we will examine how some of the above is actually implemented:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Please Note:&lt;br /&gt;
This tutorial will not examine how the SSL certificates are acquired. The only thing you have to make sure is that they are Linux compatible. Pound runs on Linux. I usually use a self signed cert but if you generate one via a trusted CA then use the Apache/Linux instructions.&lt;br /&gt;
&lt;br /&gt;
Let's assume you want to Encrypt web access for two of your internal web servers IF the requests are from the Internet. If they are from the LAN then do not encrypt.&lt;br /&gt;
&lt;br /&gt;
Domain = testdomain.test&lt;br /&gt;
Internal Web Srv 1 = 192.168.7.5 (DMZ)&lt;br /&gt;
Internal Web Srv 2 = 192.168.0.10 (LAN)&lt;br /&gt;
&lt;br /&gt;
The Pound server should always be put in the DMZ. Ideally all of your "exposed" servers should be but that is sometimes not an option.&lt;br /&gt;
&lt;br /&gt;
Pound Server = 192.168.7.50 (DMZ)&lt;br /&gt;
&lt;br /&gt;
First we define a HTTP (port 80) listening directive. Under that we put in our two web servers and since we want to encrypt them (if the requests is from the Internet and is on port 80 (HTTP) we will redirect to HTTPS:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
ListenHTTP
Address 192.168.7.50
Port    80
xHTTP   2
Service
HeadRequire "Host: .*web1.testdomain.test.*" 
Redirect "https://web1.testdomain.test"
End
Service
HeadRequire "Host: .*web2.testdomain.test.*"
Redirect "https://web2.testdomain.test"
End
End
&lt;/code&gt;
&lt;/pre&gt;&lt;br /&gt;
Next we define a HTTPS directive. This will be the one that will accept the redirects from above AND direct HTTPS requests (no redirect required in that case). This is also where we define which certificate to use and which back servers to contact.&lt;br /&gt;
&lt;pre class="code-java"&gt;ListenHTTPS
Address 192.168.7.50
Port    443
&lt;span style="font-weight: bold;"&gt; Cert    "/path/to/cert.pem"&lt;/span&gt;
AddHeader &lt;span class="code-quote"&gt;"X-Forwarded-Proto: https"&lt;/span&gt;
HeadRemove &lt;span class="code-quote"&gt;"X-Forwarded-Proto"&lt;/span&gt;
Ciphers &lt;span class="code-quote"&gt;"ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL"&lt;/span&gt;
xHTTP   1

Service
HeadRequire &lt;span class="code-quote"&gt;"Host: &lt;/span&gt;&lt;span class="code-quote"&gt;.*web1.testdomain.test.*&lt;/span&gt;&lt;span class="code-quote"&gt;"&lt;/span&gt;
BackEnd
Address 192.168.7.5
Port 80
End
End

Service
HeadRequire &lt;span class="code-quote"&gt;"Host: &lt;/span&gt;&lt;span class="code-quote"&gt;.*web2.testdomain.test.*&lt;/span&gt;&lt;span class="code-quote"&gt;"&lt;/span&gt;
BackEnd
Address 192.168.0.10
Port 80
End
End
End

&lt;/pre&gt;There is also a recommended "catch-all" deirective that goes to the end. This will be what Pound will serve if nothing above is matched. Example:&lt;br /&gt;
&lt;pre class="code-java"&gt;Service
BackEnd
Address 192.168.0.10
Port    80
End
Session
Type    BASIC
TTL     300
End
End
&lt;/pre&gt;&lt;span style="font-style: italic;"&gt;Access from the Internet:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Your external DNS will point web1 and web2 URLs to the same external IP. Your firewall (I use shorewall) will redirect traffic that comes on that IP over port 80 and 443 to the Pound server in the DMZ. Your internal DNS will point the above URLs to the DMZ IP of the Pound server (192.168.7.50).&lt;br /&gt;
So when the requests come from outside on HTTP they first hit the HTTP directive which just redirect to HTTPS. Internal DNS kicks in and the traffic is redirected back to Pound but this time over HTTPS (443). This is when the HTTPS directive kicks in. If you asked for web1 then request is directed internally to 192.168.7.5 over port 80 (HTTP). The answer is returned to the Pound server over port 80 (not encrypted) and then the traffic is encrypted to goioutside (from Pound to the Internet).&lt;br /&gt;
If the request from the outside is over HTTPS then the HTTPS directive is used straight away. Answers are returned to the Internet over HTTPS of course.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;Access from the Inside:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The easy way is NOT to use pound if you don't want encryption.&lt;br /&gt;
&lt;br /&gt;
If you want internal encryption then you just have to point the internal DNS to the Pound IP.&lt;br /&gt;
&lt;br /&gt;
If you do not want encryption but still want to go through Pound then you need to give the Pound another internal IP (either another NIC or add an IP to the current NIC) and then create HTTP directives that forward traffic to the individual web servers. Of course, your Internal DNS will then have to point to that new Pound IP.&lt;br /&gt;
What happens if people have bookmarks that have HTTPS in them?&lt;br /&gt;
You can create HTTPS directives that redirect to HTTP. Effectivelly you do the opposite of what you did for the Internet traffic. Slightly more work but not the end of the world :)&lt;br /&gt;
&lt;br /&gt;
Pound is capable of more complex setups than this and I may describe some of those in the future.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7421636905615986157-2706214277423676777?l=itkbcentral.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DJhqTuNPx36qnui8kJ8cBmL3J2I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DJhqTuNPx36qnui8kJ8cBmL3J2I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DJhqTuNPx36qnui8kJ8cBmL3J2I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DJhqTuNPx36qnui8kJ8cBmL3J2I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ItKbCentral/~4/B5gSpRzEn_M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://itkbcentral.blogspot.com/feeds/2706214277423676777/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://itkbcentral.blogspot.com/2009/08/securing-websites-with-pound-reverse.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/2706214277423676777?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7421636905615986157/posts/default/2706214277423676777?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ItKbCentral/~3/B5gSpRzEn_M/securing-websites-with-pound-reverse.html" title="Securing Websites with Pound (reverse HTTP proxy &amp; SSL wrapper)" /><author><name>author</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_gERz6UaC6Qw/SnZspj-g9FI/AAAAAAAAAAU/4CU98n5hilM/s72-c/PoundExplanation-Before-c.PNG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://itkbcentral.blogspot.com/2009/08/securing-websites-with-pound-reverse.html</feedburner:origLink></entry></feed>

