> Is it possible to connect to the internet in chroot > while being connected in the host system? > > Steve Berman
For all practical purposes, no, it's not worth doing. Simply put, a chroot is not a "virtual machine". (For comparison, there's a fair amount of work one needs to do to get a virtual machine connected to the host's network/router--*far* more than just a simple chroot.) What I have done, which is *nearly* as good ;^) , is do the chroot in an xterm and have another xterm beside it NOT in the chroot but "cd"ed there, then use that to fetch things by hand. But I spend so much time preparing that's rarely necessary. So, once LFS is finished, then there may be some "essentials" one needs immediately, e.g. preferred editor, environment, iptables firewall, etc., but soon after that one needs to get networking running, boot and run in the new system. Yes, the LFS system is so Spartan it's unpleasant to use, but there's no good reason to put off booting too long. It's better done before there are too many added complications. > > Paul, why do you say that about perl modules ? I have been known to > build a few in chroot. Many can be, but testing in those that involve any networking or internet stuff will try to access the network interfaces, and even internet. > replies is that until you actually boot the LFS system you won't > know if your kernel config, and the boot= part of its entry in grub, > is correct. Agreed. IMO, it's best to not get *too* far ahead in the chroot before verifying one has a functional system. > Some people spend days getting their kernel config to be bootable in > LFS (no modules for your LFS filesystem(s) and disk controller(s)). > > ĸen Here, in the Ch8 kernel I concentrate on only what is necessary to bare-bones boot on whatever compatible boxen I will possibly have, i.e. no SMP, sound, graphics, even networking, but lots of disk drivers. One of my essentials mentioned above is patching the LFS kernel version up, and then I build a second kernel much the same, though in this one I add all the netfilter modules my firewall will need. These two kernels are "templates" I use in cloning my "distro". It's presumed that once the clone lands on a specific box, then a specific kernel will be built for that box in its intended purpose configuration. I don't think I've ever deleted those first two kernels on any cloned box--fallbacks. WFM. -- Paul Rogers [email protected] Rogers' Second Law: "Everything you do communicates." (I do not personally endorse any additions after this line. TANSTAAFL :-) -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
