View previous topic :: View next topic |
Author |
Message |
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Mon Dec 15, 2008 4:52 pm Post subject: chroot network issues |
|
|
All I had was some Ubuntu 8.10 media to install Gentoo with on my new laptop(everything works on my thinkpad W500 with this livecd WOW).
So I proceeded, everything went ok, I shut it down moved it from home to work, rebooted to the LiveCD mounted my drives copied /etc/resolv.conf over and chroot'ed but I can not resolv host names in the chroot only from the LiveCD user(in this case Ubuntu).
Not the end of the world but trying to emerge anything dies with cant resolve host name when downloading sources. ANyone have any thoughts on mwhat I did wrong? It worked ok at home on my wireless connection.
Thanks in advance.
Marc |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Mon Dec 15, 2008 5:18 pm Post subject: |
|
|
your dns server at home may be different from your work dns.
with the livcd if the network connection it picksup again you have to copy the resolv.conf. at your work and back again at your home. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Mon Dec 15, 2008 5:42 pm Post subject: |
|
|
Unfortunately, that isnt the problem as I am writing this from the browser running off the LiveCd. It is only an issue from with in the chroot environment.
I have tried env-update, recopying the resolv.conf but if I launch wget, emerge, etc from with in the chroot I can not resolve names. |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon Dec 15, 2008 8:28 pm Post subject: |
|
|
mroconnor wrote: | Unfortunately, that isnt the problem as I am writing this from the browser running off the LiveCd. It is only an issue from with in the chroot environment.
I have tried env-update, recopying the resolv.conf but if I launch wget, emerge, etc from with in the chroot I can not resolve names. | Can you ping from within the chroot, or browse via links using ip addresses?
What's actually in the resolv.conf you copied? _________________ "You have to invite me in" |
|
Back to top |
|
|
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Mon Dec 15, 2008 8:50 pm Post subject: |
|
|
I can ping local machines on this network by DNS and IP from with in the chroot. The /etc/resolv.conf and /mnt/gentoo/etc/resolv.conf are identical.
Im wondering if I buggered something up by copying things to /mnt/gentoo/etc from my other working laptop a little too soon. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Mon Dec 15, 2008 9:36 pm Post subject: |
|
|
mroconnor,
Do you have a typo in the file name inside the chroot ?
resolve.conf is a popular one ... there is no e on the end of resolve _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Tue Dec 16, 2008 2:41 am Post subject: |
|
|
can you run a traceroute to yahoo.com
it may provide some clue about gateway ip address dns etc in the first few lines.
you may even find the isp address. first from cd environment and from chroot env. if it sees ip and dns _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Dec 16, 2008 4:06 am Post subject: |
|
|
Either
In the cd system with the installed system mounted at /mnt/gentoo, run:
Code: | echo "nameserver 4.2.2.6" >> /mnt/gentoo/etc/resolv.conf |
Or in the chroot, run:
Code: | echo "nameserver 4.2.2.6" >> /etc/resolv.conf |
This will direct dns queries to a public server known to be currently working.
Then in the chroot run:
if this fails run: (tell us what the error message was)
Code: | ping -c 2 74.125.47.104 |
if this fails run: (tell us what the error message was)
Code: | traceroute 74.125.47.104 |
tell us what addresses were returned. |
|
Back to top |
|
|
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Tue Dec 16, 2008 2:47 pm Post subject: |
|
|
I have checked spelling errors, DNS servers, etc and nothing seems to work.
On the wired connection in my office(I manage the DNS servers and can confirm they are functional) I have no luck resolving names in the chroot and no issues from the livecd. Just to test I took it home last and used both my wired and wireless connections. Same issue. With the wireless connection I have no isses(chroot or LiveCD) once I use a wired connection I can not resolve names in the chroot.
It is really odd, but I can manage around it was just trying to get the new laptop up and running while I should be working .
I'm going to assume it is how the ubuntu livecd handles the connection with networkmanager etc. Just for shits and giggles I am going to try a SystemRescueCD as well.
I'll report back. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Tue Dec 16, 2008 5:21 pm Post subject: |
|
|
the eth0 trouble can be due to udev version and configuration of rule 70.
check it if it is 130 or less version of udev. or make it 130. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Tue Dec 16, 2008 7:34 pm Post subject: |
|
|
I hate to say this after I have received all this help but I trashed the install and started over. When I went to reboot it would not mount my reiserfs /usr/portage partition. I went back to my old standy the SystemRescueCD.
Thanks for everyone's help. |
|
Back to top |
|
|
|