Changes between Version 49 and Version 50 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Apr 2, 2016 11:49:35 PM (9 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v49 v50  
    927927forked to background, child pid 123 
    928928}}} 
     929 
     930 * LXCコンテナ内で、udevdが起動しないことが原因の模様 
     931 * strace -f dhcpcd 
     932  * コンテナホスト(検証はKVMゲストで行った) 
     933{{{ 
     934access("/run/udev/control", F_OK) = 0 
     935 
     936open("/sys/devices/virtual/net/lo/uevent", O_RDONLY|O_CLOEXEC) = 9 
     937fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     938fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     939read(9, "INTERFACE=lo\nIFINDEX=1\n", 4096) = 23 
     940read(9, "", 4096)                 = 0 
     941read(9, "", 4096)                 = 0 
     942close(9)                          = 0 
     943open("/run/udev/data/n1", O_RDONLY|O_CLOEXEC) = 9 
     944 
     945open("/sys/devices/pci0000:00/0000:00:03.0/virtio0/net/ens3/uevent", O_RDONLY|O_CLOEXEC) = 9 
     946fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     947fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     948read(9, "INTERFACE=ens3\nIFINDEX=2\n", 4096) = 25 
     949read(9, "", 4096)                 = 0 
     950read(9, "", 4096)                 = 0 
     951close(9)                          = 0 
     952open("/run/udev/data/n2", O_RDONLY|O_CLOEXEC) = 9 
     953}}} 
     954  * LXCコンテナ 
     955{{{ 
     956access("/run/udev/control", F_OK) = -1 ENOENT (No such file or directory) 
     957 
     958open("/sys/devices/virtual/net/lo/uevent", O_RDONLY|O_CLOEXEC) = 9 
     959fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     960fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     961read(9, "INTERFACE=lo\nIFINDEX=1\n", 4096) = 23 
     962read(9, "", 4096)                 = 0 
     963read(9, "", 4096)                 = 0 
     964close(9)                          = 0 
     965open("/run/udev/data/n1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 
     966 
     967open("/sys/devices/virtual/net/eth0/uevent", O_RDONLY|O_CLOEXEC) = 9 
     968fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     969fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 
     970read(9, "INTERFACE=eth0\nIFINDEX=6\n", 4096) = 25 
     971read(9, "", 4096)                 = 0 
     972read(9, "", 4096)                 = 0 
     973close(9)                          = 0 
     974open("/run/udev/data/n6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 
     975write(2, "no valid interfaces found", 25) = 25 
     976write(2, "\n", 1)                 = 1 
     977 
     978write(1, "no interfaces have a carrier\n", 29) = 29 
     979}}} 
     980   * [root@test /]# systemctl status systemd-udevd 
     981{{{ 
     982● systemd-udevd.service - udev Kernel Device Manager 
     983   Loaded: loaded (/usr/lib/systemd/system/systemd-udevd.service; static; vendor preset: disabled) 
     984   Active: inactive (dead) 
     985Condition: start condition failed at Sat 2016-04-02 08:30:59 UTC; 5h 9min ago 
     986           ConditionPathIsReadWrite=/sys was not met 
     987     Docs: man:systemd-udevd.service(8) 
     988           man:udev(7) 
     989}}} 
     990 * arch:Linux_Containers#Systemd_considerations_.28required.29 
     991  * 上記を参考にsystemdの設定を行ったが効果なし