Hello Evgeniy,
On Thu, Oct 3, 2013 at 9:15 AM, Evgeniy Suvorov <eesuvo...@gmail.com> wrote: > Hello, > `And define the $searchdomain variable in your network template` > Where i can find network template? > If you've already created your vnets inside OpenNebula you can update the variables using $ onevnet update <vnet_id> Define SEARCHDOMAIN="domain.tld" and save it. Use SEARCHDOMAIN inside CONTEXT like SEARCHDOMAIN="$NIC[SEARCHDOMAIN, NETWORK=\"private\"]" private being the name of your network the VM template uses. Afterwards modify or add new scripts to the contextualization packages. Enjoy your work. Good Will, > > > 2013/9/26 Campbell, Bill <bcampb...@axcess-financial.com> > > 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. >> >> echo search $searchdomain >> /etc/resolv.conf >> >> And define the $searchdomain variable in your network template. >> >> >> Be advised, I only see this script on the Ubuntu context packages (not >> RHEL/Cent, but could be added either way) >> ------------------------------ >> *From: *"jerry steele" <jerry.ste...@cgg.com> >> *To: *users@lists.opennebula.org >> *Sent: *Thursday, September 26, 2013 6:42:23 AM >> *Subject: *[one-users] DNS search domains and rc.local not being read in >> VMs >> >> >> Hello, >> >> >> >> 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. >> >> >> >> So now I have a separate,, but related issue. >> >> >> >> 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. >> >> >> >> 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… >> >> >> >> Any help greatly appreciated. >> >> >> >> Thanks >> >> *______** **______** **______*** >> >> * * >> >> * * >> >> *Jerry Steele* >> >> IT Support Specialist >> >> Subsurface Imaging >> >> >> >> CGGVeritas Services (UK) Ltd >> >> Crompton Way >> >> Crawley >> >> W Sussex >> >> RH10 9QN >> >> >> >> T +44 (0)1293 683264 (Internal: 233264) >> >> M +44 (0)7920 237105 >> >> >> >> www.cgg.com >> >> >> >> *This email and any accompanying attachments are confidential. The >> information >> is intended solely for the use of the individual to whom it is addressed. >> Any review, >> disclosure, copying, distribution, or use of the email by others is >> strictly prohibited.* >> >> >> >> *This email and any accompanying attachments are confidential. If you >> received this email by mistake, please delete >> it from your system. Any review, disclosure, copying, distribution, or >> use of the email by others is strictly prohibited.* >> >> _______________________________________________ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> >> *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.* >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> > > > -- > Regards, Evgeniy. > > Tel.: +79060665574 > ICQ: 380264507 > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Valentin Bud http://databus.pro | valen...@databus.pro
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org