Hi Don,<div><br></div><div>Thanks for the info and what a relief! It´s been done a lot of job on the cluster itself and losing everything would be a waste of precious time. I was afraid of StarCluster restriction on that based on somebody´s blog that tells you should start fresh (not in my case).</div>
<div><br></div><div>best regards,</div><div><br></div><div>Sergio</div><div><br></div><div>Extract from the blog...</div><div><br></div><div><h2 style="margin-top:15.6pt;margin-right:0cm;margin-bottom:2.4pt;margin-left:0cm;line-height:15.75pt;background:white">
<span lang="EN-US" style="font-size:14pt;font-family:'Lucida Sans Unicode',sans-serif">Start up an instance of the type you want to customize</span></h2>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">For large instances, I start with the x86_64 AMI on the StarCluster home
page. That’s currently ami-999d49f0. I start it using the starcluster command
line, from my local machine:</span></p>
<div style="border:solid #cccccc 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt;background:#f8f8f8"><pre style="line-height:11.25pt;border:none;padding:0cm;background-repeat:initial initial"><span lang="EN-US" style="font-family:Consolas;letter-spacing:0.2pt">%% starcluster start -o -s 1 -i m1.large -n ami-999d49f0 customize_me</span></pre>
</div>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">Then, once it’s started, I log in and install software, configure boot,
etc. (See<span class="apple-converted-space"> </span><a href="http://ged.msu.edu/angus/tutorials-2012/reusing-course-materials.html"><em><span style="color:rgb(202,121,0)">Reusing
course materials</span></em></a><span class="apple-converted-space"> </span>for
an example.) A few notes –</span></p>
<ul type="disc">
<li class="MsoNormal" style="line-height:15.75pt;background-color:white;background-repeat:initial initial"><span lang="EN-US" style="font-size:10.5pt;font-family:"Lucida Sans Unicode","sans-serif"">don’t put
anything in /root that’s not in a hidden (dot) directory; the script for
building a new AMI will erase everything in that directory.</span></li>
<li class="MsoNormal" style="line-height:15.75pt;background-color:white;background-repeat:initial initial"><span lang="EN-US" style="font-size:10.5pt;font-family:"Lucida Sans Unicode","sans-serif"">don’t put
anything under /mnt if you want it saved as part of the AMI, as this will<span class="apple-converted-space"> </span><em>not</em><span class="apple-converted-space"> </span>get
baked into the new AMI.</span></li>
<li class="MsoNormal" style="line-height:15.75pt;background-color:white;background-repeat:initial initial"><span lang="EN-US" style="font-size:10.5pt;font-family:"Lucida Sans Unicode","sans-serif"">don’t mount
any EBS volumes as they, too, will get baked into the new AMI.</span></li>
</ul>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">Generally I put things under /usr/local/src (if it’s a program) or
elsewhere under /usr if not. These will get saved as part of the new AMI.</span></p>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">Once you’ve customized things so that everything starts up on boot as
you want – TEST THIS!! – tell starcluster to make a new EBS image:</span></p>
<div style="border:solid #cccccc 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt;background:#f8f8f8"><pre style="line-height:11.25pt;border:none;padding:0cm;background-repeat:initial initial"><span lang="EN-US" style="font-family:Consolas;letter-spacing:0.2pt">%% starcluster ebsimage i-9999999 my-new-image</span></pre>
</div>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">Here you should name it something other than ‘my-new-image’. You can
figure out the correct instance ID by logging into the AWS console and looking,
or by doing</span></p>
<div style="border:solid #cccccc 1.0pt;padding:6.0pt 6.0pt 6.0pt 6.0pt;background:#f8f8f8"><pre style="line-height:11.25pt;border:none;padding:0cm;background-repeat:initial initial"><span lang="EN-US" style="font-family:Consolas;letter-spacing:0.2pt">%% starcluster listclusters</span></pre>
</div>
<p style="margin-top:9.6pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm;line-height:15.75pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:'Lucida Sans Unicode',sans-serif">and voila, it will show up under your AMIs!</span></p>
<br><div class="gmail_quote">On Mon, Jun 25, 2012 at 10:15 PM, Don MacMillen <span dir="ltr"><<a href="mailto:macd@nimbic.com" target="_blank">macd@nimbic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
HI Sergio,<br>
<br>
Yes, of course that should work just fine. In fact you can if you wish, build<br>
from the bare Ubuntu server images based on the recipe posted on the<br>
starcluster site along with your own software, but taking a snapshot is<br>
much easier. We build from the bare server images so I can look customer's<br>
in the eye and tell them we know _exactly_ what is on the image but we<br>
started out taking snapshots of the images provided by Justin.<br>
<br>
Regards,<br>
<br>
Don<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Jun 25, 2012 at 5:21 PM, Sergio Mafra <<a href="mailto:sergiohmafra@gmail.com">sergiohmafra@gmail.com</a>> wrote:<br>
> C'mon friends.<br>
><br>
> Need some help here.<br>
> Simple question: Building an image from the current instance that I'm using<br>
> in the StarCluster will work or not as a golden image for next clusters<br>
> configuration?<br>
><br>
> Best Regards,<br>
><br>
> Sergio<br>
><br>
><br>
> Em quarta-feira, 13 de junho de 2012, Sergio Mafra escreveu:<br>
>><br>
>> Hi fellows,<br>
>><br>
>> After lauching the cluster using StarCluster, we did some custom<br>
>> installation on that. Now we want to make it our customized AMI since we<br>
>> will need it as base for adding and removing nodes as the load of cluster<br>
>> asks for.<br>
>> If I build an image of this current AMI using AWS Console, terminate the<br>
>> current cluster and relaunch it using the new customized AMI... will it<br>
>> work?<br>
>><br>
>> All the best and sorry for this newbie questions..<br>
>><br>
>> Sergio<br>
>><br>
>><br>
>> On Tue, Jun 12, 2012 at 9:29 AM, Sergio Mafra <<a href="mailto:sergiohmafra@gmail.com">sergiohmafra@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Thanks.<br>
>>><br>
>>> Em segunda-feira, 11 de junho de 2012, Ron Chen escreveu:<br>
>>><br>
>>>> Basically, I think the idea is that StarCluster users can do everything<br>
>>>> with the StarCluster command line, with no dependencies on the AWS Console.<br>
>>>><br>
>>>> -Ron<br>
>>>><br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Dustin Machi <<a href="mailto:dmachi@vbi.vt.edu">dmachi@vbi.vt.edu</a>><br>
>>>> To: Sergio Mafra <<a href="mailto:sergiohmafra@gmail.com">sergiohmafra@gmail.com</a>><br>
>>>> Cc: <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br>
>>>> Sent: Monday, June 11, 2012 2:39 PM<br>
>>>> Subject: Re: [StarCluster] Little question<br>
>>>><br>
>>>> It is a multistep process, so the star cluster command just makes it<br>
>>>> convenient.<br>
>>>><br>
>>>> Dustin<br>
>>>><br>
>>>> On Jun 11, 2012, at 1:12 PM, Sergio Mafra wrote:<br>
>>>><br>
>>>> > Dear Friends,<br>
>>>> ><br>
>>>> > We will need to have a AMI customized for our particular needs.<br>
>>>> > Reading the StarCluster docs a doubt arises...What is the difference of<br>
>>>> > preparing a customized AMI using command "starcluster ebsimage i-999999<br>
>>>> > mynewAMI" or create image from AWS Console?<br>
>>>> ><br>
>>>> > All the best,<br>
>>>> > Sergio<br>
>>>> > _______________________________________________<br>
>>>> > StarCluster mailing list<br>
>>>> > <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
>>>> > <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> StarCluster mailing list<br>
>>>> <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
>>>> <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
>>>><br>
>><br>
><br>
> _______________________________________________<br>
> StarCluster mailing list<br>
> <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
> <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
><br>
</div></div></blockquote></div><br></div>