[SOLVED] failed to start network service LFS systemd 9.1
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 see you're doing that in Qemu. What you are trying to do with the static configuration in the guest like that simply will not work with the "user" (NAT) networking that will be in use by default as you will have no communication with the network. You would need to create a bridged interface on the host, a TAP interface on the host, and use the TAP interface in the guest in order for that to work.
How you would do so depends on the distro you are using. Kali Linux on the host? I'm not familiar with it, but I believe it's debian based. You can use your network manager, or search for information on the network system you are using. For example ifup/down or systemd-networkd.
I used to specify them directly, but I'm running dnsmasq on my router (that's why I have those OpenDNS nameservers commented out, they are configured in my router). I would not put a search domain in my resolv.conf as most instructions say to do. It tends to cause delays.
Another thing, if you're going to use your NIC as "eth0" you probably need to edit a udev rule or it's going to want to use that "enp?S?" naming. Something like:
Well, your NIC is not eth0, it's enp0s3 so there's no way it's going to start with the network config you have. You can just make it easier on yourself and use Name=enp0s3
Now that error that systemd-networkd is throwing (200/CHDIR) generally means the service's working directory is unavailable at the time the service is trying to start. That could simply be due to a misconfiguration.
The first step would be to fix your network configuration and go from there.
Well, the chapters for systemd and networking would be:
6.73. Systemd-244
7.2. General Network Configuration
I have never built a LFS system with systemd and while I've had to use it in various distros, I'm not as familiar with it. I find it pretty cryptic when things are broken.
I thought of something else later... your NIC is enp0s3 in the Qemu guest, that may not be what it is in the host. It should be the same as in your Kali Linux host distro, for the real install of LFS.
You can also figure it out from lspci. It works like this:
enp0s3
en - type of device, ethernet
p - from bus type (PCI includes PCI-E)
0 - PCI bus number (00:00.0) <---- unlikely on the host
s3 - slot number
I tried rebuilding from scratch but same error. I loaded alx kernel module which is used by my host syatem. But after booting into LFS and type lspci it is showing e1000 but why is it not changing i also tried modprobe alx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.