Changes between Version 52 and Version 53 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Apr 10, 2016 11:15:52 PM (8 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v52 v53  
    10071007 * 古い情報 
    10081008  * [http://blog.oddbit.com/2013/02/01/dhcpcd-under-lxc/ Odd Bits] {{{dhcpcd[492]: eth0: if_init: Read-only file system}}} 
     1009 
     1010 == Dependency failed for dhcpcd on eth0. == 
     1011 * # systemctl start dhcpcd@eth0 
     1012{{{ 
     1013A dependency job for dhcpcd@eth0.service failed. See 'journalctl -xe' for details. 
     1014}}} 
     1015 * # journalctl -xe 
     1016{{{ 
     1017Apr 10 20:00:56 test3 systemd[1]: Starting of sys-subsystem-net-devices-eth0.device not supported. 
     1018-- Subject: Unit sys-subsystem-net-devices-eth0.device has failed 
     1019-- Defined-By: systemd 
     1020-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
     1021-- 
     1022-- Unit sys-subsystem-net-devices-eth0.device has failed. 
     1023-- 
     1024-- The result is unsupported. 
     1025Apr 10 20:00:56 test3 systemd[1]: Dependency failed for dhcpcd on eth0. 
     1026-- Subject: Unit dhcpcd@eth0.service has failed 
     1027-- Defined-By: systemd 
     1028-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
     1029-- 
     1030-- Unit dhcpcd@eth0.service has failed. 
     1031-- 
     1032-- The result is dependency. 
     1033Apr 10 20:00:56 test3 systemd[1]: dhcpcd@eth0.service: Job dhcpcd@eth0.service/start failed with result 'dependency'. 
     1034}}} 
     1035 
     1036 * /usr/lib/systemd/system/dhcpcd@.service 
     1037{{{ 
     1038[Unit] 
     1039Description=dhcpcd on %I 
     1040Wants=network.target 
     1041Before=network.target 
     1042BindsTo=sys-subsystem-net-devices-%i.device 
     1043After=sys-subsystem-net-devices-%i.device 
     1044 
     1045[Service] 
     1046Type=forking 
     1047PIDFile=/run/dhcpcd-%I.pid 
     1048ExecStart=/usr/bin/dhcpcd -q -w %I 
     1049ExecStop=/usr/bin/dhcpcd -x %I 
     1050 
     1051[Install] 
     1052WantedBy=multi-user.target 
     1053}}} 
     1054  * {{{BindsTo=}}}, {{{After=}}}の行を削除することで対応可能 
     1055 
     1056 * see also 
     1057  * [https://bbs.archlinux.org/viewtopic.php?id=164753 Netctl doesn't work in LXC (Linux containers) due to udev dependency / Networking, Server, and Protection / Arch Linux Forums] 
     1058  * [https://bugs.archlinux.org/task/35715 FS#35715 : (netctl) fails to start network inside Linux Container]