Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I finally got my LFS system to boot again (), but I can't really continue without an internet connection to get more packages.
The LFS system is in a VirtualBox VM.
So how do I commect it to the internet? I know hardly anything about networks other than that you can enter a URL or address and you can magically transfer data to and from the address.
Is dhcp used by VirtualBox VM to give network access? If so: Have a look here: BLFS - DHCP and DHCP Client Configuration
LFS already covered the setup for the static configuration (chapters 7.11, 7.12, 7.13).
If dhcp is needed and you did do chapter 7.13.2, do remember to remove the ipv4 file. Make sure that directory holds just the one(!) config file, be it ipv4 for static or dhclient for dhcp.
If you setup your virtual machine to use the NAT-option for the network Virtualbox will run a DHCP-server for the network the VM is in. But off course you can setup your OS with static network settings.
If you setup your virtual machine to use the NAT-option for the network Virtualbox will run a DHCP-server for the network the VM is in. But off course you can setup your OS with static network settings.
What is "NAT", and what do you mean by "the network the VM is in"?
NAT is the abbreviation of Network Address Translation. If your VMs network controller is set to NAT Virtualbox acts the same way as a router. It runs a DHCP server and puts your VM into its own network. If you set it to Bridged the VM will act as it would be in the same network the host is in.
If dhcp is needed and you did do chapter 7.13.2, do remember to remove the ipv4 file. Make sure that directory holds just the one(!) config file, be it ipv4 for static or dhclient for dhcp.
About the dhclient file: You probably do not need the <add additional start parameters here> parts, just leave the -q and -q -r setting as is.
Can you download them on to a pen drive then transfer them to lfs, I know it,s long way round, but if you get all the packages on to pendrive you could just get them as you want. I done lfs 6.7 they supply a tar ball of all packages, I just exploded it into source dir. 6.8 dosn't do a complete tar of all packages so a pendrive is next best
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.