Re: [systemd-devel] systemd-networkd meet the error of "No such file or directory"

2017-02-14 Thread Zhou, Luwei
Hi Lennart,

Thanks for the reply. Is there any command to check whether networkd has been 
installed in my image.  I can find the systemd-nspawn and many system-* in my 
image. Is the networkd part of systemd package? Sorry, I am new to system.


Thanks
Luwei

-Original Message-
From: Lennart Poettering [mailto:lenn...@poettering.net] 
Sent: Tuesday, February 14, 2017 6:59 PM
To: Zhou, Luwei 
Cc: systemd-devel@lists.freedesktop.org
Subject: Re: [systemd-devel] systemd-networkd meet the error of "No such file 
or directory"

On Tue, 14.02.17 07:50, Zhou, Luwei (luwei.z...@intel.com) wrote:

> Hi,
> 
> I am not sure this the place where I can post my problems. Sorry for 
> broadcasting to the mailist.
> I am systemd 2.25 version on  yocto linux.  I meet a problem when try to 
> enable systemd-networkd.service.  It seems I have followed the rule of 
> system-networkd.service but cannot find the file.
> 
> I have added the 25-wired.network to try to enable networking interface under 
> /etc/systemd/network . There are another 3 files under the folder of  
> /lib/systemd/network by default in the image.
> I have listed the file details below. Can anyone give me some suggestions 
> what I have missed or command to debug. Thanks!
> 
> 
> /etc/systemd/network# cat ./25-wired.network [Match]
> Name=enp1s0
> 
> [Network]
> DHCP=ipv4
> 
> [Install]
> WantedBy=multi-user.target
> 
> root@intel-corei7-64:/etc/systemd/network# systemctl enable 
> systemd-networkd.service Failed to execute operation: No such file or 
> directory root@intel-corei7-64:/etc/systemd/network# systemctl status 
> -l  systemd-networkd.service ? systemd-networkd.service
>Loaded: not-found (Reason: No such file or directory)
>Active: inactive (dead)

The above suggests you don't actually have networkd installed. Please contact 
your distro for help, how to install it on your distribution.

Thanks,

Lennart

--
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] slow uefi firmware/boot

2017-02-14 Thread Damien Robert
I apologize for the out of topic question, but since systemd-analyze
incorporate the firmware boot time I wonder if you may have any trick to
share in order to improve it.

Here is my boot timing (using systemd-boot and a lz4 compressed initrd):

$ systemd-analyzed
Startup finished in 14.156s (firmware) + 1.098s (loader) + 7.473s (kernel)
+ 2.608s (initrd) + 1.766s (userspace) = 27.103s

I have a few questions on how to improve things:
- obviously for the firmware time there is not much to do except maybe try
  to turn off some uefi autodiscovery settings
- the loader is perfect, I have configured it with 1s delay for the menu
- I am surprised by the kernel time. What does it include?
- the initrd time is fast but I am surprised too that it is slower than
  userspace [but I guess it is because of the mounting of / which also
  mounts /home as a subvolume]. 
  The initrd is also handled by systemd, so the switch root is
  done by initrd-switch-root.service which calls
  /usr/bin/systemctl --no-block --force switch-root /sysroot
  I don't know how much information is transmitted during this switch,
  is there a 'systemd-analyze blame' I could do to see the time spent in
  the initrd (without using bootchart)?

Thanks!

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Inquiry about research paper

2017-02-14 Thread Jaewon Choi
Dear systemd Devs,

Hello, my name is Irvin Choi I am student from Dwight School Seoul, and I
am writing a extended essay within IB (ibo.org) curriculum research paper
about systemd, service manager for Linux/GNU operating system. There are
few questions that I would like to ask to broaden my understanding
regarding systemd, and I would like to kindly ask you to answer them to
best of your ability.

It is very important for my research paper, as the research paper plays
huge role in my high school curriculum and possibly my future. I would like
to mention that, I may use your questions on the research paper for
credibility purposes.

Here are the questions (please consider explaining your answers and avoid
short answers):

1) Who are you and what do you do for the community?

2) What do you think of the systemd as a service manager? Do you have an
opinion about its pros and cons?

3) What do you think users of the distribution thinks about the systemd? Do
you think they favor systemd? If not, why so?

4) Through my research, I was able to see that there are existing service
managers such as upstart, sysvinit, and others. Why did systemd become the
standard over the others in most of the distributions? Was it worth the
replacement of existing service manager that is seen to be reliable?

5) What changes that do you think systemd should make to improve itself?
For instance, ‘typing systemctl everytime is bothersome. Systemd should
shorten it to sctl instead.)

6) There are lots of Linux/GNU users across the world. To what users are
systemd intended for? Do you think systemd is useful for the servers
administrators, desktop users, laptop users, or others?

7) I’ve heard that there are lots of debate about systemd and it really got
heated at one point, involving personal opinions, politics, and others.
What was the cause and how did it get resolved (if at all)?

8) Is there anything else you would like to tell me about systemd?

Thank you very much time.. It means a lot for me, as I am really interested
in Linux/GNU system, and this became the opportunity to broaden my
understanding.

Have a great day.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemd-networkd meet the error of "No such file or directory"

2017-02-14 Thread Lennart Poettering
On Tue, 14.02.17 07:50, Zhou, Luwei (luwei.z...@intel.com) wrote:

> Hi,
> 
> I am not sure this the place where I can post my problems. Sorry for 
> broadcasting to the mailist.
> I am systemd 2.25 version on  yocto linux.  I meet a problem when try to 
> enable systemd-networkd.service.  It seems I have followed the rule of 
> system-networkd.service but cannot find the file.
> 
> I have added the 25-wired.network to try to enable networking interface under 
> /etc/systemd/network . There are another 3 files under the folder of  
> /lib/systemd/network by default in the image.
> I have listed the file details below. Can anyone give me some suggestions 
> what I have missed or command to debug. Thanks!
> 
> 
> /etc/systemd/network# cat ./25-wired.network
> [Match]
> Name=enp1s0
> 
> [Network]
> DHCP=ipv4
> 
> [Install]
> WantedBy=multi-user.target
> 
> root@intel-corei7-64:/etc/systemd/network# systemctl enable 
> systemd-networkd.service
> Failed to execute operation: No such file or directory
> root@intel-corei7-64:/etc/systemd/network# systemctl status -l  
> systemd-networkd.service
> ? systemd-networkd.service
>Loaded: not-found (Reason: No such file or directory)
>Active: inactive (dead)

The above suggests you don't actually have networkd installed. Please
contact your distro for help, how to install it on your distribution.

Thanks,

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] network.service not starting at boot

2017-02-14 Thread Lennart Poettering
On Tue, 14.02.17 13:32, Zohaib ahmed hassan (zohaib.hassan78...@gmail.com) 
wrote:

> Hi
>I have qcow2 image which i have created with yumbootstrap on a ubuntu
> sysytem. When i try to start the image in kvm i found that networ,service
> is not starting . although networkmanager is working fine . i dont know why
> i am getting this issue here is detail
> 
> -- Unit network.service has begun starting up.
> Feb 14 07:45:56 mincentos systemd[1]: network.service: control process
> exited, code=exited status=6
> Feb 14 07:45:56 mincentos systemd[1]: Failed to start LSB: Bring up/down
> networking.
> -- Subject: Unit network.service has failed
> -- Defined-By: systemd
> -- Support:
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel

This reference to our mailing list is actually misleading. The log
event you are seeing is really something specific to your service, and
you should contact the community of that service instead of systemd
upstream.

More recent versions of systemd actually removed that line.

Please contact the Centos community for help, and ask them what
precisely network.service returning with error status 6 means.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] network.service not starting at boot

2017-02-14 Thread Zohaib ahmed hassan
Hi
   I have qcow2 image which i have created with yumbootstrap on a ubuntu
sysytem. When i try to start the image in kvm i found that networ,service
is not starting . although networkmanager is working fine . i dont know why
i am getting this issue here is detail

-- Unit network.service has begun starting up.
Feb 14 07:45:56 mincentos systemd[1]: network.service: control process
exited, code=exited status=6
Feb 14 07:45:56 mincentos systemd[1]: Failed to start LSB: Bring up/down
networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
Feb 14 07:45:56 mincentos systemd[1]: Unit network.service entered failed
state.
Feb 14 07:45:56 mincentos systemd[1]: network.service failed.
Feb 14 07:45:56 mincentos polkitd[481]: Unregistered Authentication Agent
for unix-process:558:15442 (system bus name :1.9, object path
/org/freedesktop/PolicyKit1/Authen

Thanks Regards
Zohaib Ahmed Hassan
Software Engineer @Tecknox Systems
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel