Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New install - can't access network after chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The Goose
n00b
n00b


Joined: 27 May 2003
Posts: 11

PostPosted: Mon Mar 05, 2007 5:09 pm    Post subject: New install - can't access network after chroot Reply with quote

I'm in the middle of a new gentoo install (I had hoped that I was done, but I apparently didn't complete the networking properly, and the system complained about not having a dhcp client installed.)

So... I rebooted from the install CD (which get's the networking right). I have network access just fine after booting from the install CD. However when I chroot to my new installation, connectivity is lost (see below). Any suggestions on how I can get this working again, so that I finish installing the necessary packages?[/quote]

Quote:
Welcome to the Gentoo Linux Minimal Installation CD!

The root password on this system has been auto-scrambled for security.

If any ethernet adapters were detected at boot, they should be auto-configured
if DHCP is available on your network. Type "net-setup eth0" to specify eth0 IP
address settings by hand.

Check /etc/kernels/kernel-config-* for kernel configuration(s).
The latest version of the Handbook is always available from the Gentoo web
site by typing "links http://www.gentoo.org/doc/en/handbook/handbook.xml".

To start an ssh server on this system, type "/etc/init.d/sshd start". If you
need to log in remotely as root, type "passwd root" to reset root's password
to a known value.

Please report any bugs you find to https://bugs.gentoo.org. Be sure to include
detailed information about how to reproduce the bug you are reporting.
Thank you for using Gentoo Linux!

small ~ # ping yahoo.com
PING yahoo.com (66.94.234.13) 56(84) bytes of data.
64 bytes from w2.rc.vip.scd.yahoo.com (66.94.234.13): icmp_seq=1 ttl=50 time=91.6 ms
64 bytes from w2.rc.vip.scd.yahoo.com (66.94.234.13): icmp_seq=2 ttl=50 time=92.5 ms
64 bytes from w2.rc.vip.scd.yahoo.com (66.94.234.13): icmp_seq=3 ttl=50 time=92.4 ms

--- yahoo.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2019ms
rtt min/avg/max/mdev = 91.693/92.232/92.536/0.518 ms
small ~ # chroot /mnt/gentoo /bin/bash
small / # ping yahoo.com
ping: unknown host yahoo.com
small / # emerge net-misc/dhcpcd
Calculating dependencies... done!

>>> Emerging (1 of 1) net-misc/dhcpcd-2.0.5-r1 to /
>>> Downloading 'http://mirrors.acm.cs.rpi.edu/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2'
--07:11:58-- http://mirrors.acm.cs.rpi.edu/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2
=> `/usr/portage/distfiles/dhcpcd-2.0.5.tar.bz2'
Resolving mirrors.acm.cs.rpi.edu... failed: Temporary failure in name resolution.
>>> Downloading 'http://mirror.utdlug.org/linux/distributions/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2'
--07:11:58-- http://mirror.utdlug.org/linux/distributions/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2
=> `/usr/portage/distfiles/dhcpcd-2.0.5.tar.bz2'
Resolving mirror.utdlug.org... failed: Temporary failure in name resolution.
>>> Downloading 'http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2'
--07:11:58-- http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2
=> `/usr/portage/distfiles/dhcpcd-2.0.5.tar.bz2'
Resolving distro.ibiblio.org... failed: Temporary failure in name resolution.
>>> Downloading 'http://www.gtlib.gatech.edu/pub/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2'
--07:11:58-- http://www.gtlib.gatech.edu/pub/gentoo/distfiles/dhcpcd-2.0.5.tar.bz2
=> `/usr/portage/distfiles/dhcpcd-2.0.5.tar.bz2'
Resolving www.gtlib.gatech.edu... failed: Temporary failure in name resolution.
>>> Downloading 'http://download.berlios.de/dhcpcd/dhcpcd-2.0.5.tar.bz2'
--07:11:58-- http://download.berlios.de/dhcpcd/dhcpcd-2.0.5.tar.bz2
=> `/usr/portage/distfiles/dhcpcd-2.0.5.tar.bz2'
Resolving download.berlios.de... failed: Temporary failure in name resolution.
!!! Couldn't download 'dhcpcd-2.0.5.tar.bz2'. Aborting.
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon Mar 05, 2007 5:23 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1_sect2

Hth
Back to top
View user's profile Send private message
The Goose
n00b
n00b


Joined: 27 May 2003
Posts: 11

PostPosted: Mon Mar 05, 2007 6:03 pm    Post subject: Reply with quote

Thanks. executing
Code:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
before chroot fixed it!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum