<div dir="ltr">Hello,<div><span style="color:rgb(0,0,0);font-family:'trebuchet ms',sans-serif;font-size:13px">`And define the $searchdomain variable in your network template`</span><br></div><div><span style="color:rgb(0,0,0);font-family:'trebuchet ms',sans-serif;font-size:13px">Where i can find </span><span style="color:rgb(0,0,0);font-family:'trebuchet ms',sans-serif;font-size:13px">network template?</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/26 Campbell, Bill <span dir="ltr"><<a href="mailto:bcampbell@axcess-financial.com" target="_blank">bcampbell@axcess-financial.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:trebuchet ms,sans-serif"><div>There should be DNS scripts in the contextualization packages that provide some assignment of DNS. You should be able to slightly modify a script to pick up that variable you define, i.e.<br>
</div><div><br></div><div>echo search $searchdomain >> /etc/resolv.conf</div><div><br></div><div>And define the $searchdomain variable in your network template.</div><div><br></div><div><br></div><div>Be advised, I only see this script on the Ubuntu context packages (not RHEL/Cent, but could be added either way)</div>
<hr><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal"><b>From: </b>"jerry steele" <Jerry.Steele@CGG.com><br><b>To: </b><a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br>
<b>Sent: </b>Thursday, September 26, 2013 6:42:23 AM<br><b>Subject: </b>[one-users] DNS search domains and rc.local not being read in VMs<div><div class="h5"><br><div><br></div>
<div>
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I posted a few days ago about network configuration seemingly not being picked up properly – I think that was mainly due to my contextualisation packages being for the wrong version, and so the context CDROM device wasn’t being mounted.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">So now I have a separate,, but related issue.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I need to be able to have DNS search domains in my /etc/resolv.conf. I tried to achieve this by adding a SEARCH attribute to the virtual network template, but it doesn’t seem to be picked up (looking in the context scripts, there’s nothing
there to pick it up, so that’s kind of expected). I then tried to add it in /etc/rc.local, along with some lines to correctly set the hostname based on IP, but this doesn’t appear to be being picked up either.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Could anyone tell me what might be going wrong here? Could it be the case that rc.local is not being run for some reason at boot? When I test the VM outside ONE, rc.local runs fine…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any help greatly appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#0093d0">______</span></b><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#8cc63f">______</span></b><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#fcb034">______</span></b><b><span style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b"></span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif";color:#6a737b"> </span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif";color:#6a737b"> </span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif";color:#6a737b">Jerry Steele</span></b></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#6a737b">IT Support Specialist</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#6a737b">Subsurface Imaging</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#6a737b"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#6a737b">CGGVeritas Services (UK) Ltd</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">Crompton Way</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">Crawley</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">W Sussex</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">RH10 9QN</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b"> </span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">T +44 (0)1293 683264 (Internal: 233264)</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">M +44 (0)7920 237105</span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b"> </span></p>
<p class="MsoNormal"><span><a href="http://www.cgg.com/" target="_blank"><span style="font-family:"Arial","sans-serif";color:blue">www.cgg.com</span></a></span><span style="font-family:"Arial","sans-serif";color:#6a737b"></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b"> </span></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#6a737b">This email and any accompanying attachments are confidential. The information<br>
is intended solely for the use of the individual to whom it is addressed. Any review,<br>
disclosure, copying, distribution, or use of the email by others is strictly prohibited.</span></i></p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"><i><span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#6a737b">This email and any accompanying attachments are confidential. If you received this email by mistake, please delete<br>
it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited.</span></i></p>
<br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div><div><br></div></div>
<br><div><b>NOTICE: Protect the information in this message in accordance with the company's security policies. If you received this message in error, immediately notify the sender and destroy all copies.</b></div>
<br></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,0)">Regards</span>, Evgeniy.<br><br><div>Tel.: +79060665574</div><div>ICQ: 380264507</div></div>
</div>