<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>Thanks for this inform! I will look into InitCloud, but with this "nova boot ... " command how do I will allow my users to start VMs from the dashboard that run those scripts? </div><div><br></div><div>Regards..</div><div>Salman.   </div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Salman Toor,</div><div><a href="mailto:salman.toor@it.uu.se">salman.toor@it.uu.se</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Nov 20, 2012, at 10:25 AM, Anton Haldin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>If you have some agent installed in your image you can  execute script at the boot time .</div><div>CloudInit is good example. And it will execute user-data script ( you can define this script in "nova boot  .....  --user-data <user-data>"</div>
<div>As agent installed in image  you can also use something simple like this script  <a href="http://code.google.com/p/gentoo-aws/source/browse/trunk/packages/gentoo-ec2/bin/ec2-get-metadata.sh?spec=svn2&r=2">http://code.google.com/p/gentoo-aws/source/browse/trunk/packages/gentoo-ec2/bin/ec2-get-metadata.sh?spec=svn2&r=2</a></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Another way is to use file injection "nova boot ...... --file <dst-path=src-path> " you can inject it somewhere , for example in /etc/init.d/ </div>
<div><br></div><div><br></div><div>Anton<br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 12:11 PM, James R Penick <span dir="ltr"><<a href="mailto:penick@yahoo-inc.com" target="_blank">penick@yahoo-inc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hey Salman,</div><div> Check out the cloud-init stuff here: <a href="https://help.ubuntu.com/community/CloudInit" target="_blank">https://help.ubuntu.com/community/CloudInit</a> that'll allow you to run arbitrary commands during boot time. Though it's not what you're looking for, it's probably exactly what you need. :)</div>
<div><br></div><div>-James</div><div><br></div><div><br></div><span><div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span> Salman Toor <<a href="mailto:salman.toor@it.uu.se" target="_blank">salman.toor@it.uu.se</a>><br><span style="font-weight:bold">Date: </span> Monday, November 19, 2012 11:47 PM<br>
<span style="font-weight:bold">To: </span> Anton Haldin <<a href="mailto:ahaldin@griddynamics.com" target="_blank">ahaldin@griddynamics.com</a>><br><span style="font-weight:bold">Cc: </span> "<a href="mailto:openstack-operators@lists.openstack.org" target="_blank">openstack-operators@lists.openstack.org</a>" <<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span> Re: [Openstack-operators] ISO containing the user data. How to    attach it at boot time?<br></div><div><div class="h5"><div><br></div><div><div style="word-wrap:break-word">
Hi, 
<div><br></div><div>Thanks for your answer Anton. </div><div><br></div><div>Actually the images we have required to  fetch/enable some components while booting the instance. In order to do that, we are using some scripts. ISO contains those scripts. We have mount the iso to the image at boot time by defining it into the image
 config file. </div><div><br></div><div>The bottom line is that we need to run some scripts. Can you please give me an example how do I run the scripts at the boot time in Openstack?  And also where should I place those scripts? </div>
<div><br></div><div>Regards..</div><div>Salman. </div><div><br></div><div><div><div style="font-family:Helvetica;font-size:medium">Salman Toor</div><div style="font-family:Helvetica;font-size:medium"><a href="mailto:salman.toor@it.uu.se" target="_blank">salman.toor@it.uu.se</a></div>
<div style="font-family:Helvetica;font-size:medium"><br></div><br></div><br><div><div>On Nov 19, 2012, at 7:51 PM, Anton Haldin wrote:</div><br><blockquote type="cite">Hi Salman 
<div><br></div><div>I'm not sure if I understand your question.</div><div>If you want to launch instances by using your image , you need to load it in glance (storage service for images) </div><div><br></div><div>If you want to push some data to the new instance ,  you can use "user data" parameter with "nova boot" command .Value of this parameter would be pushed into instance by file injection.  You can also use meta data with "nova boot" command. Values of meta
 data ( tags) would be available in instance through metadata service.</div><div><br></div><div><br></div><div>Anton.</div><div><br><div><div class="gmail_quote">On Mon, Nov 19, 2012 at 5:06 PM, Salman Toor <span dir="ltr">
<<a href="mailto:salman.toor@it.uu.se" target="_blank">salman.toor@it.uu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">
Hi, 
<div><br></div><div>I have created a user-data.iso (only contains startup script) and I am using KVM in my setup. Right now I have tested my user-data.iso with virsh tool and now I want to use that iso file everytime I boot my instance in openstack. I read that there is a
 service call metadata service. Can somebody guide me how do I upload/use my iso file at boot time with the instances in openstack?</div><div><br></div><div>Thanks in advance. </div><div><br></div><div>Regards </div><span><font color="#888888"><div>
<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>Salman.</div></div></span></span></div></div><div><br></div><br></font></span></div><br>
_______________________________________________<br>
OpenStack-operators mailing list<br><a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br></div></div></blockquote></div><br></div></div></div></div></div></span></div>
</blockquote></div><br></div>
</blockquote></div><br></div></body></html>