<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.openembedded.org/w/index.php?action=history&amp;feed=atom&amp;title=EC2CloudBuild</id>
	<title>EC2CloudBuild - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.openembedded.org/w/index.php?action=history&amp;feed=atom&amp;title=EC2CloudBuild"/>
	<link rel="alternate" type="text/html" href="https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;action=history"/>
	<updated>2026-06-25T16:05:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=3458&amp;oldid=prev</id>
		<title>Eric: Undo revision 3267 by Yjytalamago (Talk)</title>
		<link rel="alternate" type="text/html" href="https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=3458&amp;oldid=prev"/>
		<updated>2010-11-24T07:55:23Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 3267 by &lt;a href=&quot;/wiki/Special:Contributions/Yjytalamago&quot; title=&quot;Special:Contributions/Yjytalamago&quot;&gt;Yjytalamago&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:Yjytalamago&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Yjytalamago (page does not exist)&quot;&gt;Talk&lt;/a&gt;)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:55, 24 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Eric</name></author>
	</entry>
	<entry>
		<id>https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=2606&amp;oldid=prev</id>
		<title>Mparkachov: Building OE images in EC2 cloud</title>
		<link rel="alternate" type="text/html" href="https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=2606&amp;oldid=prev"/>
		<updated>2010-09-13T19:30:30Z</updated>

		<summary type="html">&lt;p&gt;Building OE images in EC2 cloud&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:30, 13 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Caution&amp;lt;/span&amp;gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Caution&amp;lt;/span&amp;gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Don&amp;#039;t forget to terminate your EC2 instance after build, otherwise you&amp;#039;ll be paying for running instance.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Don&amp;#039;t forget to terminate your EC2 instance after build, otherwise you&amp;#039;ll be paying for running instance.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:User]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mparkachov</name></author>
	</entry>
	<entry>
		<id>https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=2547&amp;oldid=prev</id>
		<title>Mparkachov: Building openembedded images on the Amazon EC2 infrastructure</title>
		<link rel="alternate" type="text/html" href="https://www.openembedded.org/w/index.php?title=EC2CloudBuild&amp;diff=2547&amp;oldid=prev"/>
		<updated>2010-09-07T09:46:58Z</updated>

		<summary type="html">&lt;p&gt;Building openembedded images on the Amazon EC2 infrastructure&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
In order to run instances (virtual machines) on an Amazon cloud infrastructure one need to get corresponding account and register on the [http://aws.amazon.com AWS (Amazon Web Service)].  [http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/ Getting Started Guide] will help to get up and running, or  basics could be checked on the [http://www.ubuntu.com/cloud/public/deploy Ubuntu clould guide].&lt;br /&gt;
&lt;br /&gt;
The procedure uses Cloud Config utility from Ubuntu EC2 images to configure an instance and perform build. [http://ubuntu-smoser.blogspot.com/2010/03/introducing-cloud-inits-cloud-config.html Here] is an introduction of the utility with links to examples and documenation.&lt;br /&gt;
&lt;br /&gt;
The build described here uses [http://www.angstrom-distribution.org/ Ångström distribution] and based on the setup-scripts described  [http://www.angstrom-distribution.org/building-angstrom here].&lt;br /&gt;
&lt;br /&gt;
=== Selecting AMI ===&lt;br /&gt;
&lt;br /&gt;
The build was tested on 06 Septmeber 2010 with 32-bit Ubuntu 10.10 beta image, AMI ami-be6288d7. At the time of testing the 10.04 (LTS) image was not working due to the [https://bugs.launchpad.net/ubuntu/+source/gzip/+bug/524366 bug in shipped gzip]. The status of the cloud config in the older versions of the ubuntu and debian is not clear. The list of the released images for ubuntu could be found [http://uec-images.ubuntu.com/query/ here]. &lt;br /&gt;
&lt;br /&gt;
The procedure completely configures the image, so there is no need to use customized images or EBS-based images. The S3-based image provides more than enough &amp;quot;ephemerial&amp;quot; storage to perform the build. &lt;br /&gt;
&lt;br /&gt;
=== Revisions === &lt;br /&gt;
&lt;br /&gt;
The test was performed for beagleboard machine with minimal-image. The build is based on 41569c5f4eb81baeb26f3a429602c8568d1c24fe commit, which corresponds to the [http://cgit.openembedded.org/cgit.cgi/openembedded/tag/?id=testing_2010-08-23 testing_2010-08-23 branch]. &lt;br /&gt;
&lt;br /&gt;
== Build procedure ==&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://console.aws.amazon.com/s3/home AWS Management Console]&lt;br /&gt;
&lt;br /&gt;
* Request either spot or on demand instance.&lt;br /&gt;
&lt;br /&gt;
* Select AMI ami-be6288d7&lt;br /&gt;
&lt;br /&gt;
* In the User data paste following cloud configuration data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#cloud-config&lt;br /&gt;
runcmd:&lt;br /&gt;
 - dpkg-reconfigure -f noninteractive dash&lt;br /&gt;
 - chown ubuntu /mnt&lt;br /&gt;
 - [ su, -c, &amp;quot;( git clone git://gitorious.org/angstrom/angstrom-setup-scripts.git /mnt/oe )&amp;quot;, ubuntu ]&lt;br /&gt;
 - [ su, -c, &amp;quot;( cd /mnt/oe; sh oebb.sh config beagleboard )&amp;quot;, ubuntu ]&lt;br /&gt;
 - [ su, -c, &amp;quot;sed -i &amp;#039;s/^#PARALLEL/PARALLEL/g&amp;#039; /mnt/oe/build/conf/local.conf&amp;quot;, ubuntu ]&lt;br /&gt;
 - ln -s /mnt/oe /var/www/oe&lt;br /&gt;
 - echo &amp;quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;Angstrom environment&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;Browse building &amp;lt;a href=&amp;#039;oe/&amp;#039;&amp;gt;directory&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;or watch &amp;lt;a href=&amp;#039;oe/bitbake.log&amp;#039;&amp;gt;bitbake.log&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;---------------- local.conf ----------------&amp;quot; &amp;gt;/var/www/index.html&lt;br /&gt;
 - cat /mnt/oe/build/conf/local.conf &amp;gt;&amp;gt;/var/www/index.html&lt;br /&gt;
 - echo &amp;quot;&amp;amp;lt;/pre&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot; &amp;gt;&amp;gt;/var/www/index.html&lt;br /&gt;
 - [ sh, -c, echo &amp;quot;========= Starting build =========&amp;quot; ]&lt;br /&gt;
 - [ su, -c, &amp;quot;( cd /mnt/oe; sh oebb.sh update commit 41569c5f4eb81baeb26f3a429602c8568d1c24fe 2&amp;gt;&amp;amp;1 &amp;gt;/mnt/oe/update.log ; source ~/.oe/environment ; nohup bitbake minimal-image 2&amp;gt;&amp;amp;1 &amp;gt;/mnt/oe/bitbake.log &amp;amp; )&amp;quot;, ubuntu ]&lt;br /&gt;
&lt;br /&gt;
debconf_selections: |&lt;br /&gt;
        debconf debconf/priority select critical&lt;br /&gt;
        dash dash/sh boolean false&lt;br /&gt;
&lt;br /&gt;
packages:&lt;br /&gt;
 - sed&lt;br /&gt;
 - wget&lt;br /&gt;
 - cvs&lt;br /&gt;
 - subversion&lt;br /&gt;
 - git-core&lt;br /&gt;
 - coreutils&lt;br /&gt;
 - unzip&lt;br /&gt;
 - texi2html&lt;br /&gt;
 - texinfo&lt;br /&gt;
 - libsdl1.2-dev&lt;br /&gt;
 - docbook-utils&lt;br /&gt;
 - gawk&lt;br /&gt;
 - python-pysqlite2&lt;br /&gt;
 - diffstat&lt;br /&gt;
 - help2man&lt;br /&gt;
 - make&lt;br /&gt;
 - gcc&lt;br /&gt;
 - build-essential&lt;br /&gt;
 - g++&lt;br /&gt;
 - desktop-file-utils&lt;br /&gt;
 - chrpath&lt;br /&gt;
 - libxml2-utils&lt;br /&gt;
 - xmlto&lt;br /&gt;
 - python-psyco&lt;br /&gt;
 - apache2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Submit request&lt;br /&gt;
&lt;br /&gt;
After around 15 minutes required to initialize, start and install software one could point the browser to primitive page on the public DNS address of the instance to browse the build directory or get log of the bitbake.&lt;br /&gt;
&lt;br /&gt;
The resulting machine deploy image could be downloaded directly from the browser, so no additional software is required.&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The test was run on the c1.medium instance, which is correspondingly accessible and powerful enough. Spot instance was used to further reduce price of the build. The build was using parallel make with 2 threads and parallel bitbake with 2 threads as well. &lt;br /&gt;
&lt;br /&gt;
The complete cycle from starting the instance to finished build took 2 hours 20 minutes. &lt;br /&gt;
&lt;br /&gt;
The m1.small type of virtual machine proved to be underpowered (the build was cancelled after 5 hours). &lt;br /&gt;
&lt;br /&gt;
The procedure retrieves quite a lot of data (sources) from the internet, but at the time of testing an incoming traffic was free and outgound traffic was negligibly small. After November 1, the inbound traffic will be priced as well, which will introduce additional costs. Caching of the downloaded files on an EBS volume could be considered in the future.&lt;br /&gt;
&lt;br /&gt;
=== Changing targets === &lt;br /&gt;
&lt;br /&gt;
There are 3 important parameters to the build process, which could be changed. &lt;br /&gt;
&lt;br /&gt;
* Machine architecture&lt;br /&gt;
Following line in the user data configures machine, which is in this case is beagleboard&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
sh oebb.sh config beagleboard&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* State of OE repository&lt;br /&gt;
The commit could be specified to get repeatable tests. For the trunk build  &amp;lt;code&amp;gt;commit 41569c5f4eb81baeb26f3a429602c8568d1c24fe&amp;lt;/code&amp;gt; should be removed.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
sh oebb.sh update commit 41569c5f4eb81baeb26f3a429602c8568d1c24fe&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Target image&lt;br /&gt;
The target image (in this case minimal-image) could be specified on the following line.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
nohup bitbake minimal-image&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Caution&amp;lt;/span&amp;gt;===&lt;br /&gt;
Don&amp;#039;t forget to terminate your EC2 instance after build, otherwise you&amp;#039;ll be paying for running instance.&lt;/div&gt;</summary>
		<author><name>Mparkachov</name></author>
	</entry>
</feed>