| 929 | |
| 930 | * LXCコンテナ内で、udevdが起動しないことが原因の模様 |
| 931 | * strace -f dhcpcd |
| 932 | * コンテナホスト(検証はKVMゲストで行った) |
| 933 | {{{ |
| 934 | access("/run/udev/control", F_OK) = 0 |
| 935 | |
| 936 | open("/sys/devices/virtual/net/lo/uevent", O_RDONLY|O_CLOEXEC) = 9 |
| 937 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 938 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 939 | read(9, "INTERFACE=lo\nIFINDEX=1\n", 4096) = 23 |
| 940 | read(9, "", 4096) = 0 |
| 941 | read(9, "", 4096) = 0 |
| 942 | close(9) = 0 |
| 943 | open("/run/udev/data/n1", O_RDONLY|O_CLOEXEC) = 9 |
| 944 | |
| 945 | open("/sys/devices/pci0000:00/0000:00:03.0/virtio0/net/ens3/uevent", O_RDONLY|O_CLOEXEC) = 9 |
| 946 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 947 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 948 | read(9, "INTERFACE=ens3\nIFINDEX=2\n", 4096) = 25 |
| 949 | read(9, "", 4096) = 0 |
| 950 | read(9, "", 4096) = 0 |
| 951 | close(9) = 0 |
| 952 | open("/run/udev/data/n2", O_RDONLY|O_CLOEXEC) = 9 |
| 953 | }}} |
| 954 | * LXCコンテナ |
| 955 | {{{ |
| 956 | access("/run/udev/control", F_OK) = -1 ENOENT (No such file or directory) |
| 957 | |
| 958 | open("/sys/devices/virtual/net/lo/uevent", O_RDONLY|O_CLOEXEC) = 9 |
| 959 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 960 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 961 | read(9, "INTERFACE=lo\nIFINDEX=1\n", 4096) = 23 |
| 962 | read(9, "", 4096) = 0 |
| 963 | read(9, "", 4096) = 0 |
| 964 | close(9) = 0 |
| 965 | open("/run/udev/data/n1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) |
| 966 | |
| 967 | open("/sys/devices/virtual/net/eth0/uevent", O_RDONLY|O_CLOEXEC) = 9 |
| 968 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 969 | fstat(9, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 |
| 970 | read(9, "INTERFACE=eth0\nIFINDEX=6\n", 4096) = 25 |
| 971 | read(9, "", 4096) = 0 |
| 972 | read(9, "", 4096) = 0 |
| 973 | close(9) = 0 |
| 974 | open("/run/udev/data/n6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) |
| 975 | write(2, "no valid interfaces found", 25) = 25 |
| 976 | write(2, "\n", 1) = 1 |
| 977 | |
| 978 | write(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) |
| 985 | Condition: 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の設定を行ったが効果なし |