Thank you for the tutorial! I was running Slackware based environment (Backtrack3) chrooting into an Ubuntu environment. However, I ran into some difficulties regarding network connectivity; the chroot environment didn't have an IP address but couldn't get one as the Slackware environment had a dhcp client running. Here's what happened:
Code:
/# dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:08:74:e5:90:6b
Sending on LPF/eth1/00:08:74:e5:90:6b
Listening on LPF/eth0/00:16:6f:55:68:77
Sending on LPF/eth0/00:16:6f:55:68:77
Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
Oh nose! So I went into the host machine (non-chroot environment) and found the process of the dhcp program and killed it:
Code:
bt ~ # ps aux | grep dhcp
root 7830 0.0 0.0 1676 224 ? Ss 22:18 0:00 /sbin/dhcpcd -t 60 eth0
root 8413 0.0 0.2 1760 512 pts/2 R+ 22:54 0:00 grep dhcp
bt ~ # kill 7830
In other environments, the dhcp program may be different. Debian based operating systems (such as Ubuntu) usually use dhclient.
Hope this info helps someone...
Bookmarks