On Sat, 2020-10-10 at 11:39 +1100, Fosca via blfs-support wrote: > > Hello Everyone, > > Nice to meet you all. > > Well I have just managed to do LFS-10.0 in VirtualBox. > > The way I set it up was to install ArchLinux with the Anarchy- > Installer > since Arch is quite uptodate with packaages; the one exception being > that 'sudo pacman -S make' needs to be done. > > Using VB allowed me to Snapshot progressively and so saved me from > long > spells on the keyboard and having to re-do when something went > haywire. > > Now the issue I'm having is that 'ping -c 5 www.google.com' does not > work in the new LFS-10.0 (which I have on sda3). > > My '/etc/sysconfig/ifconfig.enp0s3' reads as follows: > > ONBOOT=yes > IFACE=enp0s3 > SERVICE=ipv4-static > IP=192.168.1.222 > GATEWAY=192.168.1.154 > PREFIX=24 > BROADCAST=192.168.1.255 > > And it's not working in VB. > > Now if I look at Arch in VB on sda2, it says that it has an > IP - 10.0.2.15 > Broadcast - 10.0.2.255 > if that should mean anything in this case. > > My modem-router is a Billion BiPAC 8700AX(L)-1600 > > I would much appreciate some pointers on how solve this little > problem.
This depends on how you set up VB for networking. First, you have to check that the virtual network card is recognized by the kernel by running: ip link list If it does not work, you have to enable the right options in the kernel for the network card. Second, VB has several networking modes. You may want to read the VB doc https://www.virtualbox.org/manual/ch06.html. According to what you say above for archlinux, you are using the NAT mode. This means the host acts as a gateway between your local home network (probably with addresses beginning with 192.168.1), and a virtual network with addresses beginning with 10.0.2. In that case, you can choose any address in the range 10.0.2.5-253 for your host, use a network mask of 10.0.2.255, and a prefix of 24. The gateway address is 10.0.2.2, and the DNS address (in /etc/resolv.conf) is 10.0.2.3. Note that I cannot find information for that last one in the VB doc, so I am not sure, and you might want to look at /etc/resolv.conf on archlinux... Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
