<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The BASIS of SAP &#187; Installs</title>
	<atom:link href="http://www.basissap.com/category/install/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basissap.com</link>
	<description>The place to come when they say it's a BASIS problem</description>
	<lastBuildDate>Mon, 19 Jul 2010 00:35:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://www.basissap.com/?pushpress=hub'/>
<cloud domain='www.basissap.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Install SAP on Amazon Web Services #2 – the Installation</title>
		<link>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-2-%e2%80%93-the-installation/</link>
		<comments>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-2-%e2%80%93-the-installation/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 17:46:17 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[BASIS]]></category>
		<category><![CDATA[Installs]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.basissap.com/?p=197</guid>
		<description><![CDATA[After my previous post, you either have your own Windows 64-bit AMI image, or access to the Public AMI I have created, called sap.nw70.win-64.db2. In this exercise, we will use this as the basis of a new, private, image that will: * contain the appropriate installation data (including registery keys) for SAP NW7, * be [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F06%2Finstall-sap-on-amazon-web-services-2-%25e2%2580%2593-the-installation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F06%2Finstall-sap-on-amazon-web-services-2-%25e2%2580%2593-the-installation%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>After my previous post, you either have your own Windows 64-bit AMI image, or access to the Public AMI I have created, called <em>sap.nw70.win-64.db2</em>. In this exercise, we will use this as the basis of a new, private, image that will:<br />
* contain the appropriate installation data (including registery keys) for SAP NW7,<br />
* be capable of online / offline backups, using SAP tools,<br />
* provide a painless way of running 24&#215;7.</p>
<h3>Prerequisites</h3>
<p>* EC2 and S3 Accounts with Amazon,<br />
* access to a Solution Manager system (for the installation key),<br />
* access to an OSS ID with download authorisation.</p>
<p></P></p>
<h3>Architechture</h3>
<p>Once we terminate an Amazon instance, we lose all changes to it.  Saving our database and configuration changes by bundling the changed system into a new AMI will take a non trivial amount of time; Certainly enough to prevent it being run 24&#215;7.  Additionally we will lose lots of usefull ABAP and JAVA stack logs unless we bundle the running instance every time we shut it down.</p>
<p>Just as well there&#8217;s an alternative, called <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1667&amp;categoryID=100" target="_blank">Elastic Block Storage</a>.  This allows you to create data volumes and mount them on your image.  They are persistent, and more importantly, can be backed up by snapshots, from the AWS Management Console.</p>
<p>So that leads to an architechture (or rather, disk layout) as follows:</p>
<ul>
<li>Drive C:    AMI instance, boot disk</li>
<li>Drive D:    AMI instance, ephemeral disk (data lost whenever instance shuts down)</li>
<li>&#8230;</li>
<li>Drive H:    AMI instance, ephemeral disk (data lost whenever instance shuts down)</li>
<li>Drive W:   Persistent Disk, for storing disk-to disk backups DBMS and / or logs</li>
<li>Drive X:    Persistent Disk, for SAP and DB2 Intallation</li>
<li>Drive Y:    Persistent Disk, for DB2 logs</li>
<li>Drive Z:    Persistent Disk, for storing installation files</li>
</ul>
<p></P></p>
<h3>Creating EBS (Persistent) Volumes</h3>
<p>To create EBS Volumes, go to the <a href="https://console.aws.amazon.com/ec2/home#c=EC2&amp;s=Volumes" target="_top">EBS Volumes section of </a><a href="https://console.aws.amazon.com/ec2/home#c=EC2&amp;s=Volumes" target="_top">the Amazon Management Console</a>. The major issue with creating volumes is that you can only attach / mount an EBS volume on <em>an instance that is running in the same <strong>Availability Zone</strong></em><strong>.</strong> This does mean that all your volumes must be in the same Availability Zone, if they are to be attached to the same instance.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-01.jpg" alt="AWS Console - adding volumes" align="baseline" vspace="5" hspace="5"></center><br />
I&#8217;ve created four volumes, corresponding to the Drive Letteres I gave in the Architechture section above.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-04.jpg" alt="AWS Console - Attaching Volumes" align="baseline" width="600" height="200" vspace="5" hspace="5"></center></p>
<ul>
<li>Drive W:   vol-a82bc7c1, for storing disk-to disk backups DBMS and / or logs</li>
<li>Drive X:    vol-3f658956, for SAP and DB2 Intallation</li>
<li>Drive Y:    vol-4451bc2d, for DB2 logs</li>
<li>Drive Z:    vol-fc2bcb95, for storing installation files</li>
</ul>
<p>Note that these are empty, unformatted, unmounted, unattached volumes (at the moment&#8230;).</p>
<p></P></p>
<h3>Attaching EBS Volumes to our Instance</h3>
<p>To attach the volumes to an instance, we need to have an instance running.  Start up an instance of your image or of <em>sap.nw70.win-64.db2</em>.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-00a.jpg" alt="AWS Console - Starting an Instance Volumes" align="baseline" width="600" height="245" vspace="5" hspace="5"></center><br />
Note that I am creating an <strong>x.large</strong> instance in the availability zone US-east-1b.  I need the <strong>x.large</strong> instance to provide enough RAM and Swap Space for an IDES ECC6 system, and I&#8217;m starting it in the US-east-1b availability zone because thats where I located my volumes (no particular reason).<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-00b.jpg" alt="AWS Console - Starting an Instance Volumes" align="baseline" width="600" height="316" vspace="5" hspace="5"></center>
</p>
<p><center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-00c.jpg" alt="AWS Console - Starting an Instance Volumes" align="baseline" width="600" height="150" vspace="5" hspace="5"></center><br />
Once the instance is running, we can attach our volumes via the Attach Volume Button.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-02.jpg" alt="AWS Console - Attaching Volumes" align="baseline" width="600" height="225" vspace="5" hspace="5"></center><br />
The result is that our volumes are now &#8220;physically&#8221; attached to our instance.  Again, these are empty unformatted unmounted volumes.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-04.jpg" alt="AWS Console - Attaching Volumes" align="baseline" width="600" height="225" vspace="5" hspace="5"></center><br />
Now we need to logon to this instance.  If you are running an instance of <em>sap.nw70.win-64.db2</em>, you can logon as user <em>sapinstall</em>, password <em>sap123</em>.  Use the Remote Desktop Connection, and specify the public dns name from your instance.</p>
<p>You assign a name to a volume when you are formatting it.  You do this by running the <strong>Computer Management </strong>(if you&#8217;re running an instance of <em>sap.nw70.win-64.db2</em>, this should be on the Desktop of user sapinstall) and formatting and naming the volumes.  Make the names distinctive, and related to their purpose, for example <em>sw_repository</em>.</p>
<p>Now use the <strong>C:\Program Files (x86)\Amazon\Ec2ConfigSetup\Ec2ConfigServiceSettings.exe </strong>program and the <strong>Drive Mapping</strong> tab to control which volume gets mounted to which drive letter.  This is important, because we want to make sure that our <strong><em>sap_install</em></strong>, <em><strong>db2_logs</strong></em>, and <em><strong>backups</strong></em> volumes are always mounted on the same drives.  Once the current image is bundled and registered, any instance launched from the new AMI will contain the setting we have configured in <strong>Ec2ConfigServiceSettings.exe</strong>.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-05.jpg" alt="ec2Config - Drive Letter Mapping" align="baseline" vspace="5" hspace="5"></center><br />
Note the relationship between the volumes and Drive letters in the image below  compared to the description of each volume given in the <strong>Architecture </strong>description above.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-06.jpg" alt="ec2Config - Drive Letter Mapping" align="baseline" vspace="5" hspace="5"></center></p>
<p></P></p>
<h3>System Specific Configuration</h3>
<p>Change the hostname (or in Windows terms, the <strong>Computer Name</strong>) to one of your choosing (Start &#8211;&gt; Control Panel &#8212; System &#8211;&gt; Computer Name &#8211;&gt; Change).  Run <strong>Ec2ConfigServiceSettings.exe</strong>. and make sure the <strong><em>Set Computer Name </em></strong>flag and the <strong>Sysprep</strong> flag on the Syprep tab are disabled &#8211; They should already be disabled, if you are using a copy of <em>sap.nw70.win-64.db2</em>.</p>
<p>Check the swap space (Start &#8211;&gt; Control Panel &#8212; System &#8211;&gt; Advanced &#8211;&gt; Performance Settings &#8212; Advanced, Virtual memory).  Again, this should already be correctly set if you are using a copy of <em>sap.nw70.win-64.db2</em>.</p>
<p>Edit the <strong>hosts </strong>file in <strong>C:\windows\system32\drivers\etc</strong> to include your Computer Name as a valid host name, for internal SAP and DBMS connectivity.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-06b.jpg" alt="Image Configuration - Hosts" align="baseline" vspace="5" hspace="5"></center><br />
<span style="text-decoration: underline;">Do not forget to change the password</span> of the <strong>sapinstall </strong>user.  Otherwise, anyone who reads this will know the password.</p>
<p>Finally, bundle the instance using the AWS Management Console and register the resulting image under your own image name.  The purpose here is to save the customisation you have done if you have a problem with the SAP installation.  As part of the process of bundling, the instance is shut down and restarted.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-10.jpg" alt="AWS Console - Attaching Volumes" align="baseline"  vspace="5" hspace="5"></center><br />
You do need to have an S3 Bucket (or directory) to store the Image in.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-11.jpg" alt="AWS Console - Attaching Volumes" align="baseline"  vspace="5" hspace="5"></center>However, you can store multiple images in the same bucket, by varying the Amzon S3 Key Name.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-12.jpg" alt="AWS Console - Attaching Volumes" align="baseline" vspace="5" hspace="5"></center></p>
<p>For future reference, if you restart the instance yourself, using <strong>Start &#8211;&gt; Shutdown </strong>and specifying <strong>Restart</strong>, you don&#8217;t loose any information or configuration from the C drive as you would if you terminated it from the AWS Management Console.  This is because the later removes the underlying resources, while using <strong>Start &#8211;&gt; Shutdown &#8211;&gt; Restart</strong> doesn&#8217;t release the underlying resources.</p>
<p></P></p>
<h3>Security and Firewalls</h3>
<p>EC2 provides its own set of firewall rules called Security Groups.  The defaults values are, essentially, <em>just enough</em> to get you access to the server itself.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/secure-01.jpg" alt="AWS Console - Attaching Volumes" align="baseline" width="600" height="321" vspace="5" hspace="5"></center><br />
Since SAP communicates via TCP/IP, we need to make sure that our instance(s) can be accessed via the ports used by SAP for its various services.  This means we need to add the ABAP and Java ports for both our instance <strong>and</strong> the diagnostic instance.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/secure-02.jpg" alt="AWS Console - Attaching Volumes" align="baseline" width="600" height="321" vspace="5" hspace="5"></center><br />
Remember that the Windows Server underlying your new SAP system is on the Internet, and is accessible (by Design !!) from anywhere else on the internet, so only open the bare minimum of ports.</p>
<p></P><br />
<h3>Installation</h3>
<p>Download the appropriate files from http://service.sap.com/swdc (you&#8217;ll need an S number with download authorisation), extract / expand them and store the results on  the Z drive. I stored the download files under Z:\NW70SR3 and expaneded them into their own folders on the Z drive.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-07.jpg" alt="AWS Console - Attaching Volumes" align="baseline" vspace="5" hspace="5"></center></p>
<p>Make sure you read the appropriate OSS notes.  For the ECC6 IDES, the important ones are:<br />
<a href="http://service.sap.com/sap/support/notes/799639">0799639 &#8211; General IDES related</a><br />
<a href="http://service.sap.com/sap/support/notes/956921">0956921 &#8211; NW7 ECC6 SR3 IDES related</a><br />
<a href="http://service.sap.com/sap/support/notes/1244548">1244548 &#8211; NW7 ECC6 SR3 IDES related</a><br />
and<br />
<a href="http://service.sap.com/sap/support/notes/1126127">1126127 &#8211; DB6: Deferred Table Creation and Row Compression</a></p>
<p>Otherwise, the install follows the standard process, as detailed in the appropriate installation guide (in my case, the NW7.0 SR3 ABAP+JAVA / Windows/ DB2).  <strong>The two exceptions are:</strong><br />
* Specify that the SAP and DBMS Installations go on an EBS volume (i.e drive X)<br />
* in my case, specify that the DB2 logs go on an EBS volume (i.e. drive Y)</p>
<p>The full IDES install took around 30 hours run time (think of it as $20 or so well spent) from when I started sapinst (that time did include checking and amending my previous implementation notes).  The majority of the time is spent loading about 150GB data into the DB2 database.  However, once sapinst had accepted the Solution Manager Key, you can disconnect RDP and leave the install running.</p>
<p></P><br />
<h3>Saving your image</h3>
<p>Once the installation is complete, you&#8217;ll want to back it up before you go any further.  Using the SAP MMC, shut down SAP (or logon to Windows as the SAPService&lt;sid&gt; user and shut down SAP).</p>
<p>Use the AWS Management Console to bundle your running instance.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-10.jpg" alt="AWS Console - Bundling" align="baseline" width="600" height="223" vspace="5" hspace="5"></center><br />
Once it is bundled, register the bundle as an instance.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-14.jpg" alt="AWS Console - Monitor Bundling" align="baseline" width="600" height="271" vspace="5" hspace="5"></center><br />
You can share this with anyone with an EC2 account, by using Permissions to mark it Public, or you can share with individuals if you know their EC2 Account number. <strong>Note &#8211; </strong>Bundling a windows instance restarts the instance.</p>
<p>Basically, the image consists of whats on the C Drive, so backing up your EBS Volumes  requires you to use the AWS Management Console to save <strong>snapshots</strong> of them.  The EBS volumes are stored and charged for at the Amazon S3 rates. Just like EC2, however, you are only charged fo what you use. This means that if you define a 500GB volume, write a 1 GB file to it and create 4 snapshots of the volume, you will charged for 5GB of storage; 1GB data on the volume, plus 4 lots of 1GB of snapshot. backup.</p>
<p>When you&#8217;re finished with the instance, shut down SAP and don&#8217;t forget to terminate tthe instance via the AWS Management Console (otherwise you&#8217;ll be charged for it !!).</p>
<h3>Running your SAPSystem</h3>
<p>Start an instance of your image and attach the EBS volumes to the running instance.  The work of of assigning drive letters, in the correct order, to each volume is controlled by our configuration work earlier in <strong>Attaching EBS Volumes to our Instance</strong>.  One of the issues currently outstanding is that thess will actually get mounted on subsequent  restarts <em>of this instance </em>(which we perform below).</p>
<p>Logon to the instance and update / verify the Swap Space sttings via Start &#8211;&gt; Control Panel &#8212; System &#8211;&gt; Advanced &#8211;&gt; Performance Settings &#8212; Advanced, Virtual memory.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/swap-01.jpg" alt="Configuration - Swap Space" align="baseline" vspace="5" hspace="5"></center><br />
Regardless of the previous paragraph, restart the image using Start &#8211;&gt; Shutdown -&gt; Restart. With all Drives correctly assigned, and sufficient Swap Space assigned the DB2 and SAP Services for SAP MMC will start.  Go into SAP MMC and start your SAP instance.  Once SAP is running, you can disconnect from the instance.</p>
<h3>Accessing your SAP System</h3>
<p>Assuming you have opened the correct ports in the Security Group specified for this instance, you can now put the appropriate values into your SAP GUI &#8230;..<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-20.jpg" alt="AWS SAP - ABAP Engine align="baseline" vspace="5" hspace="5"></center><br />
&#8230;..and access the ABAP Engine.<br />
<center><img src="http://www.basissap.com/wp-content/uploads/2009/06/vol-21.jpg" alt="AWS SAP - ABAP Engine" align="baseline" vspace="5" hspace="5"></center><br />
Again assuming you have opened the correct ports in the Security Group specified for this instance, you can go into the SMICM transaction and enable a simple service, then access it via a browser or web service.</p>
<h3>Whats next ?</h3>
<p>You now have a running SAP system.  However</p>
<ul>
<li>No DBA processing, i.e. no DB13 jobs, no backing up of logfiles etc has<br />
been implemented, so once you&#8217;ve tested connectivity, stop the SAP and<br />
DBMS systems and take snapshots of your SAP &amp; Database volume.</li>
<li>The SAP*, DDIC and IDADMIN passowrds are well known (or easily determined).  Change them</li>
<li> No post implementation work (i.e. SGEN) has been done,</li>
</ul>
<p>The purpose of the exercise is to demonstrate how quickly you can run up a demonstration, training or testing system.  Depending on how many resources you want to pay for (CPUs and memory), this can be quicker or slower.</p>
<p>However, it has been my experience, based on several green fields implementations, individual system implementations and upgrades, and feedback from others, that building an appropriate server &#8211; whether physical or virtual &#8211; can take up to 2 weeks. Using the approach detailed here, services such as provided by the Amazon EC2 service reduce this to the 45 minutes it takes to configure and bundle a standard public instance.</p>
<p>One of the obvious issues is that it is well and good using predefined data, which you can download, in zipped form, from OSS (such as the IDES data I used in this example).  What about copying &#8216;real&#8217; data fron an existing SAP system, especially if we&#8217;re talking TerraBytes ?</p>
<p>I&#8217;ll discuss this, the bandwidth of a portable hard disk and more of the Amazon Web Services features that are particularly useful for SAP in my next post.</p>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2010/04/erptips-express-free-articles-april-2010/" rel="bookmark" class="wherego_title">ERPtips Express free articles, April 2010</a></li><li><a href="http://www.basissap.com/2009/07/sap-availability-log/" rel="bookmark" class="wherego_title">SAP Availability Log</a></li><li><a href="http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-1-the-environment/" rel="bookmark" class="wherego_title">Install SAP on Amazon Web Services #1 &#8211; The Environment</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-2-%e2%80%93-the-installation/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Install SAP on Amazon Web Services #1 &#8211; The Environment</title>
		<link>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-1-the-environment/</link>
		<comments>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-1-the-environment/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 07:20:42 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[BASIS]]></category>
		<category><![CDATA[Installs]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.basissap.com/?p=147</guid>
		<description><![CDATA[UPDATE: I have tidied this up a bit, to make some things clearer and to include the name of an AWS Public Image that can be used as the source for the subsequent step. In this post, I describe how I setup a windows environment to install SAP ABAP and Java stacks, using the Amazon [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F06%2Finstall-sap-on-amazon-web-services-1-the-environment%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F06%2Finstall-sap-on-amazon-web-services-1-the-environment%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>UPDATE: I have tidied this up a bit, to make some things clearer and to include the name of an AWS Public Image that can be used as the source for the subsequent step.</p>
<p>In this post, I describe how I setup a windows environment to install SAP ABAP and Java stacks, using the Amazon Simple Storage Service (S3) to store persistent data.&nbsp; I needed to:<br />* install and modify an appropriate Windows 2003 Server environment,<br />* save this environment for future use</p>
<p>In a subsequent post, I will describe the installation of an IDES system running NW7 and DB2.&nbsp; The three major challenges were <br />* setting up persistent storage of the NW and DB2 installation,<br />* suitable for using standard SAP and AWS functionality to support sustained (i.e. 24&#215;7) operation of the SAP system<br />* and allowing you to stop and start the SAP system and / or server without losss of persistent data.</p>
<p>The result is a fast and cheap way of running up multiple systems, with the following features:</p>
<p>* You are only charged running costs for those systems that are running<br />* Low running costs (at the time of writing, <strong>$US 50 cents an hour</strong>)<br />* Low storage costs (<strong>$US 15 cents / GB / month for your 50TB</strong>)<br />* No more waiting for hardware &#8211; you can start implementation right now<br />* Systems (i.e. extra application servers) can be implemented, but not running</p>
<p>&nbsp;</p>
<h3>What did I know I would need ?</h3>
<p>After reading the NW 70 SR3 installation Guide for Windows / DB2, I knew the following:<br />* I needed a 64 bit Windows Server with authentication services,<br />* I needed a reasonable amount of RAM, plus a decent swap space,<br />* I needed JAVA 1.4.</p>
<p>After reading the AWS EC2 documentation, I also knew that it was not practical to keep any volatile datasets (i.e. DB2 itself, DB2 logs, SAP process logs, etc) as part of the server, and that I would need to use the Amazon EBS servcie for persistent storage.</p>
<p>&nbsp;</p>
<h3>Signing up for Amazon EC2 and S3</h3>
<p>An excellent account of how to setup a Windows Server image, and the principles behind this, can be found at <a href="http://howto.opml.org/dave/ec2" target="_blank">Dave Winer&#8217;s EC2 for Poets</a>. It also gives a good overview of how to sign up for both EC2 and S3 and the issues around persistent data.</p>
<p>&nbsp;</p>
<h3>Creating the base Amazon Machine Image (AMI)</h3>
<p>Logon to the <a href="https://console.aws.amazon.com/ec2/home" target="_blank">AWS Management Console</a> and select the Amazon EC2 tab.</p>
<p><img src="http://www.basissap.com/wp-content/uploads/2009/06/ec2_01.jpg" alt="Subset of Amazon EC2 Console" align="baseline" height="142" hspace="5" vspace="5" width="210"><br />Select the Launch Instance button&#8230;</p>
<p><img src="http://www.basissap.com/wp-content/uploads/2009/06/ec2_02-300x192.jpg" alt="Amazon EC2 Start Instance Wizard" align="baseline" height="192" hspace="5" vspace="5" width="300"> </p>
<p>.. then find and select the <em>Basic 64-bit Microsoft Windows Server 2003 with Authentication Services</em> image.</p>
<p>&nbsp;Once the server shows up as running, logon using the techniques described in <a href="http://howto.opml.org/dave/ec2" target="_blank">Dave Winer&#8217;s EC2 for Poets</a>.&nbsp; One of the first things I did was to create a <em>sapinstall </em>user.&nbsp; This allows me to logon (via RDP) as user <em>sapinstall / password </em>without having to muck around with the keypairs.&nbsp; </p>
<p>&nbsp;</p>
<h3>Changes to standard AWS Windows 2003 64-bit Image</h3>
<p>There were five issues that needed to be dealt with.</p>
<p>First I had to disable the Windows Attachment Manager (for non-windows people, this is a security setting that Windows uses to stop you writing dangerous file types to your disk) before Internet Explorer would let me save files.&nbsp; See the <a href="http://support.microsoft.com/kb/883260" target="_blank">Microsoft Knowledge Base Article 883260</a> for a rundown on how it works.&nbsp; The quickest way to disable it is to uninstall the <strong>Internet Explorer Enhanced Security Configuration</strong>. To do this, click <strong>Add or remove programs</strong> in <strong>Control Panel</strong>, click <strong>Add/Remove Windows Components</strong>, and then click to <em>clear</em> the <strong>Internet Explorer Enhanced Security Configuration</strong> check box.</p>
<p>2) Both SAP and DB/2 (my target DBMS) require that the host name of the server its installed and running on remains the same.&nbsp; However, the default action every time you restart an AWS image is to have the host name set to IP-xxxxxx where xxxxxx represents the internal (to Amazon) host name the server is running on. </p>
<p>While you can perform arcane scripting to fix the host name, Amazon provide a tool, bundled within every AWS windows instance, that will ensure the hostname remains set to what ever you set in the System &#8211;&amp;gt; properties screen.&nbsp;&nbsp; The tool is <strong>C:\Program Files (x86)\Amazon\Ec2ConfigSetup\Ec2ConfigServiceSettings.exe</strong></p>
<p>&nbsp;<img src="http://www.basissap.com/wp-content/uploads/2009/06/ec2Config-02-300x216.jpg" alt="Ec2ConfigServiceSettings.exe" align="baseline" height="216" hspace="5" vspace="5" width="300"></p>
<p>3) I wanted to make sure I had enough swap spacxe to run my SAP system.&nbsp; The base instance we are using gives us 15GB of memory, but, especially if we want to install multiple JAVA engines, this may not be enough.&nbsp; I allocated another 1500MB on each of two of the ephemeral disks. </p>
<p>4) My initial installation is going to be an NetWeaver 7 ECC6 system. This means we need to <a href="http://java.sun.com/j2se/1.4.2/SAPsite/download.html" target="_blank">download and install java 1.4 from Sun&#8217;s Sekrit Squirrell place for old releases</a>.&nbsp; Don&#8217;t forget to setup the Environment variables (JAVA_HOME and PATH) correctly.&nbsp; </p>
<p> 5) The last change was to incorporate a Dynamic DNS Update tool.&nbsp; This is used to pass the IP address of the server we are &#8220;running on&#8221; to a service that will then set a fixed Domain name to specify the same DNS name to users and tools whenever I ran my instance.&nbsp; I use <a href="http://dyndns.org" target="_blank">dyndns org</a>.&nbsp; You can register a limited number of domain names for free, and they provide a tool <a href="https://www.dyndns.com/support/" target="_blank">(DynDNS Updater) that allows you to register your IP address</a> against one or more of your Domain names.</p>
<p>&nbsp;</p>
<h3>Save your Amazon Machine Image (AMI)</h3>
<p>Now you have an instance you can use to install and run SAP on.&nbsp; However, we need to make sure that all our changes are not lost.&nbsp; This utdown means you need to &#8220;bundle&#8221; your running system into a standalone Amazon Machine Image.&nbsp; Go to the <strong>Amazoin EC2</strong> tab of the Amazon Management Console, select <strong>Instances</strong>, then select the instance you want bundled.&nbsp; Right click on <strong>More Actions</strong> and select <strong>Bundle Windows AMI</strong>.<br /><img src="http://www.basissap.com/wp-content/uploads/2009/06/bundle-01-300x107.jpg" alt="Initial Step of Bundling" align="baseline" height="107" hspace="5" vspace="5" width="300"></p>
<p>This generates a popup screen.&nbsp; Fill out the appropriate details and clcik <strong>bundle</strong>. The <strong>Bundle Name </strong>refers to the S3 folder that will hold the AMI.&nbsp; This must already exist.&nbsp; The <strong>Key Name</strong> is appended to the name of manifest.xml filre that contains the S3 layout and location of your image.<br /><img src="http://www.basissap.com/wp-content/uploads/2009/06/bundle-02a.jpg" alt="Enter Bundle Parameters" align="baseline" height="200" hspace="5" vspace="5" width="300"></p>
<p>&nbsp;Once you click bundle your request is confirmed.</p>
<p><img src="http://www.basissap.com/wp-content/uploads/2009/06/bundle-02b.jpg" alt="Bundling Confirmation" align="baseline" height="200" hspace="5" vspace="5" width="300">.</p>
<p>You can follow the progresss of the bundling by examining the <strong>Bundle Tasks</strong> screen.&nbsp; There are three steps that bundling Windows instances needs to follow- The instance must shutdown, the Amazon bundling process must occur, and the resulting data must be stored.</p>
<p><img src="http://www.basissap.com/wp-content/uploads/2009/06/bundle-04.jpg" alt="Bundling Completed, now registering" align="baseline" height="150" hspace="5" vspace="5" width="300"></p>
<p>Once the image has been bundled and stored, you must register the bundle as an Amazon machine Image.</p>
<p><img src="http://www.basissap.com/wp-content/uploads/2009/06/bundle-05.jpg" alt="Registration Confirmation" align="baseline" height="200" hspace="5" vspace="5" width="300"></p>
<p>&nbsp;</p>
<p>An alternative to repeating all the work shown above is to grab a copy of the Public AMI I have created, called <em>sap.nw70.win-64.db2</em>.&nbsp; You will need to change the hostname (as descibed above), implement your own <a href="http://dyndns.org" target="_blank">DynDNS org domain name</a>&nbsp; and bundle and register the changed image.</p>
<p>Either way, you now have your own mildly customised image copy of a Windows 2003 Server, running on the&nbsp; Amazon Web Services cloud.&nbsp; This image is ready for installation of a non-trivial SAP system, such as the NW7 ECC6 IDES system.&nbsp;&nbsp;</p>
<p>In the next post, I will describe how I used the <em>sap.nw70.win-64.db2</em> image to install the Windows DB2 IDES for ECC6 system.</p>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2010/01/finding-what-tables-and-fields-lie-behind-an-sap-transaction/" rel="bookmark" class="wherego_title">Finding what tables and fields lie behind an SAP transaction</a></li><li><a href="http://www.basissap.com/2010/02/sap-career-paths-for-basis-or-netweaver-technical-consultants/" rel="bookmark" class="wherego_title">SAP career paths for BASIS or Netweaver Technical consultants ?</a></li><li><a href="http://www.basissap.com/2009/05/how-to-create-a-customised-sap-menu/" rel="bookmark" class="wherego_title">How To Create a Customised SAP Menu</a></li><li><a href="http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-2-%e2%80%93-the-installation/" rel="bookmark" class="wherego_title">Install SAP on Amazon Web Services #2 – the Installation</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2009/06/install-sap-on-amazon-web-services-1-the-environment/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Generate SAP Installation Key</title>
		<link>http://www.basissap.com/2008/06/generate-sap-installation-key/</link>
		<comments>http://www.basissap.com/2008/06/generate-sap-installation-key/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 13:08:58 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[BASIS]]></category>
		<category><![CDATA[Installs]]></category>

		<guid isPermaLink="false">http://www.basissap.com/?p=18</guid>
		<description><![CDATA[For any SAP install except the Trial Editions available from SDN (and Solution Manager itself), you need to obtain a Installation/Upgrade Key (sometimes known as the ‘magic number’) from a Solution Manager system.  Usually, you should get this from the Solution Manager system that will be used for managing changes, software diagnostics etc for you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F06%2Fgenerate-sap-installation-key%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F06%2Fgenerate-sap-installation-key%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>For any SAP install except the <a href="http://www.sdn.sap.com/irj/sdn/downloads">Trial Editions available from SDN</a> (and Solution Manager itself), you need to obtain a Installation/Upgrade Key (sometimes known as the ‘magic number’) from a Solution Manager system.  Usually, you should get this from the Solution Manager system that will be used for managing changes, software diagnostics etc for you installation.  However, note that you do <strong>not </strong>have to use any particular Solution Manager system, to get the the installation up and running.</p>
<p><strong>Procedure</strong></p>
<p>On the SAP Solution Manager System :</p>
<p>1. Call the <em>System Landscape Maintenance </em>(transaction SMSY) in your Solution Manager system.</p>
<p>2. Create your SAP System in the system landschape:</p>
<blockquote><p>a. Select the landscape component <em>Systems</em>, and choose <em>Create New System</em>, in the context menu.</p>
<p>b. Enter the system ID as the system, in the following dialog box.</p>
<p>c. Choose the product (i.e. SAP ECC), and the product version (i.e. SAP ECC 5.0 or higher), from the possible entries help, and Save.</p>
<p>d. Complete the system data, as far as possible.</p>
<p>e. Save your entries.</p></blockquote>
<p>3. Generate the key:</p>
<blockquote><p>a. Choose System Landscape ® Other Object&#8230;.</p></blockquote>
<blockquote><p>b. Set the System flag, and choose the system which is to be installed or upgraded, from the possible entries help. If you have created a system in the SAP Solution Manager, in the previous step, choose it.</p></blockquote>
<blockquote><p>c. Choose Generate Installation/Upgrade Key.</p></blockquote>
<blockquote><p>d. Enter the required data and choose Generate Key.</p></blockquote>
<p>The system displays the key.</p>
<p><strong>Installation/upgrade tool</strong><strong></strong></p>
<p>Specify this key in the installation or upgrade tool when requested.  This is (usually) the last step of the ‘Check Parameters phase’, immediately prior to the start of the ‘Execute Service’ phase.</p>
<p align="center"><a href="http://www.basissap.com/wp-content/uploads/2008/06/clip-image002.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" title="clip_image002" src="http://www.basissap.com/wp-content/uploads/2008/06/clip-image002-thumb.jpg" border="0" alt="clip_image002" width="446" height="241" /></a></p>
<p>UPDATE: </br><em><strong>Please do not request that I supply Installation keys.</strong></em></br><br />
They are available from <a href="http://www.sap.com/solutions/netweaver/minisap.asp">sap.com/solutions/netweaver/minisap.asp</a> (for the trial and developer editions) and <a href="http://service.sap.com/LICENSEKEY">service.sap.com/LICENSEKEY</a>.  </p>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2009/05/how-to-create-a-customised-sap-menu/" rel="bookmark" class="wherego_title">How To Create a Customised SAP Menu</a></li><li><a href="http://www.basissap.com/2008/12/5-sap-strategies-that-architects-and-executives-must-understand/" rel="bookmark" class="wherego_title">5 SAP Strategies that architects and executives must understand</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2008/06/generate-sap-installation-key/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
