PDA

View Full Version : No network in chroot



brancaleone
2016-05-14, 16:18
Hi

Up to now, chrooting between different linux systems was quite easy. Mounting /dev, /sys, /proc and /boot to $chroot and copying /etc/resolv.conf to get network access. Anyway, after updating kali-rolling, there is a link from
lrwxrwxrwx 1 root root /kali/etc/resolv.conf -> /var/run/NetworkManager/resolv.conf

I guess, that's a 'feature' of the new Network Manager. But it makes internet access impossible, because copying resolv.conf to the new directory works, but doesn't give a connection. To me that's a big problem, because
1) I use chroot a lot to update while working from my primary Debian OS
2) I use debootstrap to install clean, neat systems, which doesn't work without network
3) I believe, that other distributions will follow with upgrading Network Manager. Which means, today it's kali, tomorrow most of all distributions, which will get many, many user stuck following the "traditional" way.

So - KISS Theory - how do I get network in a kali rolling chroot?

Thanks

BL