frezbo / lab

RHCE lab setup scripts
4 stars 3 forks source link

Vagrant up without local repo #1

Open jmcalvar opened 7 years ago

jmcalvar commented 7 years ago

I'm trying to run the environment without local environment, and there is a problem when I run vagrant up. When you modify resolv.conf in classroom server, it doesn't works with external dns, so it can't install packages. I modified script and added only Google nameserver, and now it seems that is working

frezbo commented 7 years ago

@jmcalvar I have followed that approach as I had a local repository of centos setup if you don't have such a setup its good to modify the script accordingly. Thanks for checking it out. The recent version of centos needs some more script changes as I did set this up for a friend recently, I will update when I'm free, meanwhile you can PM me for changes.

smidhunraj commented 6 years ago

@jmcalvar Can you give that edited code.I dont have any idea of ruby code.please

frezbo commented 6 years ago

@smidhunraj you can manually edit /etc/resolv.conf and add 1.1.1.1 as a nameserver

smidhunraj commented 6 years ago

@frezbo I appreciate your taking the time to answer my question(s). It still i am stuck up.. When i issue the command vagrant provision i cant get classroom fully installed nor desktop and server machines https://paste.fedoraproject.org/paste/1T2FT1MsqL8eeiyeVIUQsw

smidhunraj commented 6 years ago

I edited /etc/resolv.conf and then added 1.1.1.1 as a nameserver. Then i did sudo vagrant provision x$ sudo vagrant provision i get the error as in the above url. After running vagrant provision and checking in resolv.conf i cant see the name server i have added. [vagrant@classroom ~]$ cat /etc/resolv.conf domain example.com

frezbo commented 6 years ago

@smidhunraj seems like an issue from your side, BTW I cannot guarantee the script even works now, it's beem more than an year and things might have changed

smidhunraj commented 6 years ago

That was definitly my mistake. I am in need for a Rhce lab.