这是 openSUSE 13.2 上的 wicked 0.6.12 和 systemd 210。未安装网络管理器。网络接口配置有静态 IPv4 地址。普利茅斯没有安装,因为我更喜欢看看发生了什么。
启动时间长得离谱。在图形目标出现之前,系统显然只是坐在那里什么也不做。
的输出sudo journalctl -b | ack -C 25 wicked
(时间间隔发生在 之前11:29:01
):
Nov 14 11:28:48 ascorbic lvm[458]: /dev/sdb: open failed: No medium found
Nov 14 11:28:48 ascorbic lvm[458]: No volume groups found
Nov 14 11:28:48 ascorbic kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Nov 14 11:28:48 ascorbic systemd-journal[320]: Runtime journal is using 8.0M (max allowed 396.9M, trying to leave 595.3M free of 3.8G available → current limit 396.9M).
Nov 14 11:28:48 ascorbic avahi-daemon[494]: Found user 'avahi' (UID 491) and group 'avahi' (GID 489).
Nov 14 11:28:48 ascorbic avahi-daemon[494]: Successfully dropped root privileges.
Nov 14 11:28:48 ascorbic avahi-daemon[494]: avahi-daemon 0.6.31 starting up.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: Found 2 processor cores.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: fAsync=0 offMin=0x2a8 offMax=0x17a3
Nov 14 11:28:49 ascorbic kernel: vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: Successfully loaded version 4.3.18_OSE (interface 0x001a0008).
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Loading service file /etc/avahi/services/sftp-ssh.service.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Loading service file /etc/avahi/services/ssh.service.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Network interface enumeration completed.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Registering HINFO record with values 'X86_64'/'LINUX'.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Server startup complete. Host name is ascorbic.local. Local service cookie is 142331764.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Service "ascorbic" (/etc/avahi/services/ssh.service) successfully established.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Service "ascorbic" (/etc/avahi/services/sftp-ssh.service) successfully established.
Nov 14 11:28:49 ascorbic kernel: NET: Registered protocol family 17
Nov 14 11:28:49 ascorbic kernel: No iBFT detected.
Nov 14 11:28:49 ascorbic kernel: vboxpci: IOMMU not found (not registered)
Nov 14 11:28:49 ascorbic vboxdrv[493]: Starting VirtualBox kernel modules..done
Nov 14 11:28:49 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link down
Nov 14 11:28:49 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link down
Nov 14 11:28:49 ascorbic kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Nov 14 11:28:49 ascorbic wickedd[528]: lo: address 127.0.0.1 covered by a static lease
Nov 14 11:28:49 ascorbic dns-resolver[606]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic dns-resolver[608]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:49 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:49 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:49 ascorbic wickedd[528]: lo: address ::1 covered by a static lease
Nov 14 11:28:49 ascorbic dns-resolver[733]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic dns-resolver[735]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:49 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:49 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:51 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link up
Nov 14 11:28:51 ascorbic kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Nov 14 11:28:51 ascorbic avahi-daemon[494]: Joining mDNS multicast group on interface enp3s0.IPv4 with address 192.168.222.165.
Nov 14 11:28:51 ascorbic avahi-daemon[494]: New relevant interface enp3s0.IPv4 for mDNS.
Nov 14 11:28:51 ascorbic avahi-daemon[494]: Registering new address record for 192.168.222.165 on enp3s0.IPv4.
Nov 14 11:28:51 ascorbic dns-resolver[877]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:51 ascorbic dns-resolver[879]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:51 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:51 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:51 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:51 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:51 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:51 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:52 ascorbic avahi-daemon[494]: Joining mDNS multicast group on interface enp3s0.IPv6 with address fe80::5246:5dff:fea0:251e.
Nov 14 11:28:52 ascorbic avahi-daemon[494]: New relevant interface enp3s0.IPv6 for mDNS.
Nov 14 11:28:52 ascorbic avahi-daemon[494]: Registering new address record for fe80::5246:5dff:fea0:251e on enp3s0.*.
Nov 14 11:29:01 ascorbic wicked[532]: lo up
Nov 14 11:29:01 ascorbic wicked[532]: enp3s0 up
Nov 14 11:29:01 ascorbic sshd-gen-keys-start[969]: Checking for missing server keys in /etc/ssh
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (Syslog will be used instead of sendmail.)
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 95% if used.)
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (running with inotify support)
Nov 14 11:29:01 ascorbic iscsiadm[981]: iscsiadm: No records found
Nov 14 11:29:01 ascorbic sshd[982]: Server listening on 0.0.0.0 port 22.
Nov 14 11:29:01 ascorbic sshd[982]: Server listening on :: port 22.
Nov 14 11:29:01 ascorbic chronyd[986]: chronyd version 1.29.1 starting
Nov 14 11:29:01 ascorbic chronyd[986]: Could not open RTC file (null) for reading
Nov 14 11:29:01 ascorbic chronyd[986]: Set system time, error in RTC = 0.000000
Nov 14 10:29:01 ascorbic chronyd[986]: Linux kernel major=3 minor=16 patch=6
Nov 14 10:29:01 ascorbic chronyd[986]: hz=100 shift_hz=7 freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000 shift_pll=2
Nov 14 10:29:01 ascorbic chronyd[986]: Frequency 10.585 +/- 0.080 ppm read from /var/lib/chrony/drift
Nov 14 10:29:01 ascorbic chronyd[986]: Can't initialise from real time clock, driver not loaded
Nov 14 10:29:01 ascorbic chronyd[974]: Starting chronyd: ..done
Nov 14 10:29:01 ascorbic display-manager[987]: /etc/vconsole.conf available
Nov 14 10:29:01 ascorbic display-manager[987]: KEYMAP: de-latin1-nodeadkeys
Nov 14 10:29:01 ascorbic display-manager[987]: Command: localectl set-keymap de-latin1-nodeadkeys
Nov 14 10:29:01 ascorbic dbus[505]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Nov 14 10:29:01 ascorbic dbus[505]: [system] Successfully activated service 'org.freedesktop.locale1'
Nov 14 10:29:01 ascorbic display-manager[987]: Starting service kdm..done
Nov 14 10:29:01 ascorbic pdns_recursor[973]: PowerDNS Recursor 3.6.2 ([email protected]) (C) 2001-2014 PowerDNS.COM BV
Nov 14 10:29:01 ascorbic pdns_recursor[973]: Using 64-bits mode. Built on 20141030174804 by abuild@cloud108, gcc 4.8.1 20130909 [gcc-4_8-branch revision 202388].
Nov 14 10:29:01 ascorbic pdns_recursor[973]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Nov 14 10:29:01 ascorbic pdns_recursor[973]: Reading random entropy from '/dev/urandom'
答案1
DHCP 超时时间太长了。编辑并更改和 的/etc/sysconfig/network/dhcp
值。DHCLIENT_WAIT_AT_BOOT
DHCLIENT6_WAIT_AT_BOOT
答案2
试着跑systemd-analyze critical-chain
。我认为输出比日志更容易阅读。好吧,这可能只是证实邪恶是罪魁祸首。我还没有使用 wicked 的经验,但我会尝试在 strace 下启动它,看看它在哪里挂起/超时,或者并行运行 tcpdump 看看它试图在网络上做什么。
编辑:哎呀,我错过了你的情节链接。所以我想关键链确实会表明邪恶是罪魁祸首......所以尝试 strace 和/或 tcpdump。
Edit2:对于使用 strace 我会尝试
ExecStart=/usr/bin/strace -ff -o /tmp/wicked.str -ttt -T /usr/sbin/wicked --systemd ifup all
在邪恶单位的档案中。
免责声明:未经测试。抱歉,手边没有合适的测试系统。