linuxkit getty getting stuck - docker

I am currently trying out linuxkit external disk.
However, getty is getting stuck whenever I placed binds definition, it would not go pass the login prompt.
kernel:
image: linuxkit/kernel:4.9.52
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
onboot:
- name: sysctl
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
- name: dhcpcd
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:158d992b7bf7ab984100c697d7e72161ea7d7382
- name: mount
image: linuxkit/mount:96ac4d32d340ac6e4ddfbf506fa3a497d23649da
command: ["/usr/bin/mountie", "/tmp"]
services:
- name: getty
image: linuxkit/getty:bf6872ce0a9f3ab519b3e502cc41ba3958bda2a6
capabilities:
- all
binds:
- /tmp:/tmp
- name: rngd
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
files:
- path: etc/getty.shadow
# sample sets password for root to "abcdefgh" (without quotes)
contents: 'root:$6$6tPd2uhHrecCEKug$8mKfcgfwguP7f.BLdZsT1Wz7WIIJOBY1oUFHzIv9/O71M2J0EPdtFqFGTxB1UK5ejqQxRFQ.ZSG9YXR0SNsc11:17322:0:::::'
And my linuxkit run command is as follows:
linuxkit -v run qemu -disk /home/tweakmy/slowdisk/linuxkit/getty/blank.img,size=3G,format=qcow2 getty2.iso
This is the screen where I am stuck:
> [ 0.000000] Linux version 4.9.52-linuxkit (root#b81a1f7ba2ff) (gcc version 6.3.0 (Alpine 6.3.0) ) #1 SMP Thu Sep 28 15:02:54 UTC
> 2017
> [ 0.000000] Command line: BOOT_IMAGE=/boot/kernel console=tty0 console=ttyS0 console=ttyAMA0 root=/dev/sr0
> [ 0.000000] x86/fpu: Legacy x87 FPU detected.
> [ 0.000000] x86/fpu: Using 'eager' FPU context switches.
> [ 0.000000] e820: BIOS-provided physical RAM map:
> [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
> [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffdefff] usable
> [ 0.000000] BIOS-e820: [mem 0x000000003ffdf000-0x000000003fffffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
> [ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
> [ 0.000000] NX (Execute Disable) protection: active
> [ 0.000000] SMBIOS 2.8 present.
> [ 0.000000] e820: last_pfn = 0x3ffdf max_arch_pfn = 0x400000000
> [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT
> [ 0.000000] found SMP MP-table at [mem 0x000f6630-0x000f663f] mapped at [ffff92a1000f6630]
> [ 0.000000] ACPI: Early table checksum verification disabled
> [ 0.000000] ACPI: RSDP 0x00000000000F6460 000014 (v00 BOCHS )
> [ 0.000000] ACPI: RSDT 0x000000003FFE2267 000038 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
> [ 0.000000] ACPI: FACP 0x000000003FFE1E32 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
> [ 0.000000] ACPI: DSDT 0x000000003FFE0040 001DF2 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
> [ 0.000000] ACPI: FACS 0x000000003FFE0000 000040
> [ 0.000000] ACPI: SSDT 0x000000003FFE1EA6 0002D5 (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)
> [ 0.000000] ACPI: APIC 0x000000003FFE217B 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
> [ 0.000000] ACPI: HPET 0x000000003FFE21F3 000038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
> [ 0.000000] ACPI: MCFG 0x000000003FFE222B 00003C (v01 BOCHS BXPCMCFG 00000001 BXPC 00000001)
> [ 0.000000] Zone ranges:
> [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
> [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003ffdefff]
> [ 0.000000] Normal empty
> [ 0.000000] Movable zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
> [ 0.000000] node 0: [mem 0x0000000000100000-0x000000003ffdefff]
> [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffdefff]
> [ 0.000000] ACPI: PM-Timer IO Port: 0x608
> [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
> [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
> [ 0.000000] Using ACPI (MADT) for SMP configuration information
> [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
> [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
> [ 0.000000] e820: [mem 0x40000000-0xafffffff] available for PCI devices
> [ 0.000000] Booting paravirtualized kernel on bare hardware
> [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
> [ 0.000000] percpu: Embedded 35 pages/cpu #ffff92a13fc00000 s105240 r8192 d29928 u2097152
> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 257896
> [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/kernel console=tty0 console=ttyS0 console=ttyAMA0 root=/dev/sr0
> [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
> [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
> [ 0.000000] Memory: 1014172K/1048052K available (8035K kernel code, 1367K rwdata, 2696K rodata, 1380K init, 568K bss, 33880K
> reserved, 0K cma-reserved)
> [ 0.000000] Hierarchical RCU implementation.
> [ 0.000000] Build-time adjustment of leaf fanout to 64.
> [ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
> [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
> [ 0.000000] NR_IRQS:8448 nr_irqs:256 16
> [ 0.000000] Console: colour VGA+ 80x25
> [ 0.000000] console [tty0] enabled
> [ 0.000000] console [ttyS0] enabled
> [ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
> [ 0.000000] tsc: Fast TSC calibration using PIT
> [ 0.000000] tsc: Detected 3394.161 MHz processor
> [ 0.020805] Calibrating delay loop (skipped), value calculated using timer frequency.. 6788.32 BogoMIPS (lpj=33941610)
> [ 0.021301] pid_max: default: 32768 minimum: 301
> [ 0.021766] ACPI: Core revision 20160831
> [ 0.051169] ACPI: 2 ACPI AML tables successfully acquired and loaded
> [ 0.052932] Security Framework initialized
> [ 0.053092] Yama: becoming mindful.
> [ 0.054186] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
> [ 0.054407] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
> [ 0.065666] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
> [ 0.065816] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
> [ 0.213551] Freeing SMP alternatives memory: 20K
> [ 0.218208] ftrace: allocating 35516 entries in 139 pages
> [ 0.316894] smpboot: Max logical packages: 1
> [ 0.323220] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
> [ 0.430000] smpboot: CPU0: AMD QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: 0x3)
> [ 0.430000] Performance Events: PMU not available due to virtualization, using software events only.
> [ 0.430000] x86: Booted up 1 node, 1 CPUs
> [ 0.430000] smpboot: Total of 1 processors activated (6788.32 BogoMIPS)
> [ 0.431509] NMI watchdog: disabled (cpu0): hardware events not enabled
> [ 0.431704] NMI watchdog: Shutting down hard lockup detector on all cpus
> [ 0.440776] devtmpfs: initialized
> [ 0.443633] x86/mm: Memory block size: 128MB
> [ 0.478379] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [ 0.478698] futex hash table entries: 256 (order: 2, 16384 bytes)
> [ 0.483445] NET: Registered protocol family 16
> [ 0.489199] cpuidle: using governor ladder
> [ 0.489359] cpuidle: using governor menu
> [ 0.490130] ACPI: bus type PCI registered
> [ 0.491828] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xb0000000-0xbfffffff] (base 0xb0000000)
> [ 0.492159] PCI: MMCONFIG at [mem 0xb0000000-0xbfffffff] reserved in E820
> [ 0.492812] PCI: Using configuration type 1 for base access
> [ 0.531450] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> [ 0.538790] ACPI: Added _OSI(Module Device)
> [ 0.538902] ACPI: Added _OSI(Processor Device)
> [ 0.539012] ACPI: Added _OSI(3.0 _SCP Extensions)
> [ 0.539147] ACPI: Added _OSI(Processor Aggregator Device)
> [ 0.585379] ACPI: Interpreter enabled
> [ 0.585758] ACPI: (supports S0 S5)
> [ 0.586102] ACPI: Using IOAPIC for interrupt routing
> [ 0.587008] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> [ 0.619328] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> [ 0.619839] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
> [ 0.623139] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME PCIeCapability]
> [ 0.625196] PCI host bridge to bus 0000:00
> [ 0.625377] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
> [ 0.625564] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
> [ 0.625743] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
> [ 0.625948] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
> [ 0.626226] pci_bus 0000:00: root bus resource [bus 00-ff]
> [ 0.651380] pci 0000:00:1f.0: quirk: [io 0x0600-0x067f] claimed by ICH6 ACPI/GPIO/TCO
> [ 0.671821] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
> [ 0.673270] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> [ 0.674330] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> [ 0.675368] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
> [ 0.676522] ACPI: PCI Interrupt Link [LNKE] (IRQs 5 *10 11)
> [ 0.677613] ACPI: PCI Interrupt Link [LNKF] (IRQs 5 *10 11)
> [ 0.678626] ACPI: PCI Interrupt Link [LNKG] (IRQs 5 10 *11)
> [ 0.679460] ACPI: PCI Interrupt Link [LNKH] (IRQs 5 10 *11)
> [ 0.679860] ACPI: PCI Interrupt Link [GSIA] (IRQs *16)
> [ 0.680257] ACPI: PCI Interrupt Link [GSIB] (IRQs *17)
> [ 0.680507] ACPI: PCI Interrupt Link [GSIC] (IRQs *18)
> [ 0.680763] ACPI: PCI Interrupt Link [GSID] (IRQs *19)
> [ 0.681018] ACPI: PCI Interrupt Link [GSIE] (IRQs *20)
> [ 0.681270] ACPI: PCI Interrupt Link [GSIF] (IRQs *21)
> [ 0.681531] ACPI: PCI Interrupt Link [GSIG] (IRQs *22)
> [ 0.681773] ACPI: PCI Interrupt Link [GSIH] (IRQs *23)
> [ 0.684151] ACPI: Enabled 16 GPEs in block 00 to 3F
> [ 0.687071] SCSI subsystem initialized
> [ 0.688025] ACPI: bus type USB registered
> [ 0.688723] usbcore: registered new interface driver usbfs
> [ 0.689160] usbcore: registered new interface driver hub
> [ 0.690058] usbcore: registered new device driver usb
> [ 0.690710] pps_core: LinuxPPS API ver. 1 registered
> [ 0.690836] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti#linux.it>
> [ 0.691124] PTP clock support registered
> [ 0.691748] wmi: Mapper loaded
> [ 0.692310] PCI: Using ACPI for IRQ routing
> [ 0.702615] NetLabel: Initializing
> [ 0.702735] NetLabel: domain hash size = 128
> [ 0.702860] NetLabel: protocols = UNLABELED CIPSOv4
> [ 0.703897] NetLabel: unlabeled traffic allowed by default
> [ 0.704460] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
> [ 0.705076] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
> [ 0.705363] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
> [ 0.710792] clocksource: Switched to clocksource hpet
> [ 0.853794] VFS: Disk quotas dquot_6.6.0
> [ 0.854214] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [ 0.855696] FS-Cache: Loaded
> [ 0.858617] CacheFiles: Loaded
> [ 0.859503] pnp: PnP ACPI init
> [ 0.870398] pnp: PnP ACPI: found 5 devices
> [ 0.902634] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
> [ 0.904149] NET: Registered protocol family 2
> [ 0.908186] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
> [ 0.908544] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
> [ 0.908888] TCP: Hash tables configured (established 8192 bind 8192)
> [ 0.910261] UDP hash table entries: 512 (order: 2, 16384 bytes)
> [ 0.910503] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
> [ 0.911805] NET: Registered protocol family 1
> [ 0.912306] pci 0000:00:01.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
> [ 0.929224] PCLMULQDQ-NI instructions are not detected.
> [ 0.929727] AVX or AES-NI instructions are not detected.
> [ 0.929918] CPU feature 'AVX registers' is not supported.
> [ 0.930322] CPU feature 'AVX registers' is not supported.
> [ 0.930516] CPU feature 'AVX registers' is not supported.
> [ 0.930679] CPU feature 'AVX registers' is not supported.
> [ 0.930853] AVX2 or AES-NI instructions are not detected.
> [ 0.931025] AVX2 instructions are not detected.
> [ 0.934248] audit: initializing netlink subsys (disabled)
> [ 0.935302] audit: type=2000 audit(1507033386.930:1): initialized
> [ 0.939467] workingset: timestamp_bits=46 max_order=18 bucket_order=0
> [ 0.943051] FS-Cache: Netfs 'cifs' registered for caching
> [ 0.943453] fuse init (API version 7.26)
> [ 0.944703] SGI XFS with ACLs, security attributes, no debug enabled
> [ 0.946675] 9p: Installing v9fs 9p2000 file system support
> [ 0.946881] FS-Cache: Netfs '9p' registered for caching
> [ 0.963743] NET: Registered protocol family 38
> [ 0.964009] Key type asymmetric registered
> [ 0.964162] Asymmetric key parser 'x509' registered
> [ 0.964553] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
> [ 0.965177] io scheduler noop registered
> [ 0.965335] io scheduler deadline registered (default)
> [ 0.965680] io scheduler cfq registered
> [ 0.967207] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [ 0.967409] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [ 0.967786] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
> [ 0.968171] hv_vmbus: registering driver hyperv_fb
> [ 0.970941] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
> [ 0.971483] ACPI: Power Button [PWRF]
> [ 0.974145] GHES: HEST is not enabled!
> [ 0.979701] ACPI: PCI Interrupt Link [GSIG] enabled at IRQ 22
> [ 0.981277] virtio-pci 0000:00:02.0: virtio_pci: leaving for legacy driver
> [ 0.986222] ACPI: PCI Interrupt Link [GSIH] enabled at IRQ 23
> [ 0.986554] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver
> [ 0.987788] xenfs: not registering filesystem on non-xen platform
> [ 0.989043] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> [ 1.011940] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
> [ 1.018118] Non-volatile memory driver v1.3
> [ 1.021651] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
> [ 1.051511] loop: module loaded
> [ 1.058762] nbd: registered device at major 43
> [ 1.085048] lpc_ich 0000:00:1f.0: RCBA is disabled by hardware/BIOS, device disabled
> [ 1.085414] lpc_ich 0000:00:1f.0: I/O space for GPIO uninitialized
> [ 1.085629] lpc_ich 0000:00:1f.0: No MFD cells added
> [ 1.086574] VMware PVSCSI driver - version 1.0.7.0-k
> [ 1.086921] hv_vmbus: registering driver hv_storvsc
> [ 1.092274] ACPI: PCI Interrupt Link [GSIA] enabled at IRQ 16
> [ 1.095960] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
> [ 1.096204] ahci 0000:00:1f.2: flags: ncq only
> [ 1.111650] scsi host0: ahci
> [ 1.113866] scsi host1: ahci
> [ 1.115211] scsi host2: ahci
> [ 1.116497] scsi host3: ahci
> [ 1.117772] scsi host4: ahci
> [ 1.119029] scsi host5: ahci
> [ 1.120130] ata1: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2100 irq 24
> [ 1.120448] ata2: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2180 irq 24
> [ 1.120645] ata3: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2200 irq 24
> [ 1.120847] ata4: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2280 irq 24
> [ 1.121067] ata5: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2300 irq 24
> [ 1.121290] ata6: SATA max UDMA/133 abar m4096#0xfebd2000 port 0xfebd2380 irq 24
> [ 1.127988] tun: Universal TUN/TAP device driver, 1.6
> [ 1.128131] tun: (C) 1999-2004 Max Krasnyansky <maxk#qualcomm.com>
> [ 1.135619] VMware vmxnet3 virtual NIC driver - version 1.4.a.0-k-NAPI
> [ 1.136192] hv_vmbus: registering driver hv_netvsc
> [ 1.136435] Fusion MPT base driver 3.04.20
> [ 1.136628] Copyright (c) 1999-2008 LSI Corporation
> [ 1.136939] Fusion MPT SPI Host driver 3.04.20
> [ 1.138154] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
> [ 1.141004] serio: i8042 KBD port at 0x60,0x64 irq 1
> [ 1.141291] serio: i8042 AUX port at 0x60,0x64 irq 12
> [ 1.143263] hv_vmbus: registering driver hyperv_keyboard
> [ 1.144518] mousedev: PS/2 mouse device common for all mice
> [ 1.146480] random: fast init done
> [ 1.147649] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
> [ 1.149387] input: PC Speaker as /devices/platform/pcspkr/input/input2
> [ 1.152614] rtc_cmos 00:00: RTC can wake from S4
> [ 1.156152] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
> [ 1.157273] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram, hpet irqs
> [ 1.157913] i2c /dev entries driver
> [ 1.159306] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel#redhat.com
> [ 1.163046] usbcore: registered new interface driver usbhid
> [ 1.163345] usbhid: USB HID core driver
> [ 1.163761] hv_utils: Registering HyperV Utility Driver
> [ 1.163992] hv_vmbus: registering driver hv_util
> [ 1.164204] hv_vmbus: registering driver hv_balloon
> [ 1.164536] oprofile: using NMI interrupt.
> [ 1.165219] GACT probability on
> [ 1.165513] Mirror/redirect action on
> [ 1.166086] Simple TC action Loaded
> [ 1.166446] u32 classifier
> [ 1.166583] Performance counters on
> [ 1.166761] input device check on
> [ 1.166934] Actions configured
> [ 1.167295] Netfilter messages via NETLINK v0.30.
> [ 1.167631] nfnl_acct: registering with nfnetlink.
> [ 1.168502] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
> [ 1.170713] ctnetlink v0.93: registering with nfnetlink.
> [ 1.173036] nf_tables: (c) 2007-2009 Patrick McHardy <kaber#trash.net>
> [ 1.173555] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo#netfilter.org>
> [ 1.174999] xt_time: kernel timezone is -0000
> [ 1.175250] ip_set: protocol 6
> [ 1.175601] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
> [ 1.175912] IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
> [ 1.176885] IPVS: Creating netns size=2104 id=0
> [ 1.178270] IPVS: ipvs loaded.
> [ 1.178429] IPVS: [rr] scheduler registered.
> [ 1.178613] IPVS: [wrr] scheduler registered.
> [ 1.178781] IPVS: [lc] scheduler registered.
> [ 1.178943] IPVS: [wlc] scheduler registered.
> [ 1.179104] IPVS: [fo] scheduler registered.
> [ 1.179258] IPVS: [ovf] scheduler registered.
> [ 1.179479] IPVS: [lblc] scheduler registered.
> [ 1.179701] IPVS: [lblcr] scheduler registered.
> [ 1.179882] IPVS: [dh] scheduler registered.
> [ 1.180044] IPVS: [sh] scheduler registered.
> [ 1.180598] IPVS: [sed] scheduler registered.
> [ 1.180857] IPVS: [nq] scheduler registered.
> [ 1.181507] IPVS: ftp: loaded support on port[0] = 21
> [ 1.182279] ipip: IPv4 and MPLS over IPv4 tunneling driver
> [ 1.186673] gre: GRE over IPv4 demultiplexor driver
> [ 1.188779] ip_tables: (C) 2000-2006 Netfilter Core Team
> [ 1.191375] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
> [ 1.191803] arp_tables: arp_tables: (C) 2002 David S. Miller
> [ 1.193550] NET: Registered protocol family 10
> [ 1.199911] ip6_tables: (C) 2000-2006 Netfilter Core Team
> [ 1.204865] NET: Registered protocol family 17
> [ 1.205437] Bridge firewalling registered
> [ 1.205702] Ebtables v2.0 registered
> [ 1.206749] 8021q: 802.1Q VLAN Support v1.8
> [ 1.207607] 9pnet: Installing 9P2000 support
> [ 1.208453] Key type dns_resolver registered
> [ 1.209055] microcode: AMD CPU family 0x6 not supported
> [ 1.211556] registered taskstats version 1
> [ 1.221238] Key type big_key registered
> [ 1.222689] Key type encrypted registered
> [ 1.224875] rtc_cmos 00:00: setting system clock to 2017-10-03 12:23:07 UTC (1507033387)
> [ 1.452864] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [ 1.456756] ata3.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
> [ 1.457129] ata3.00: applying bridge limits
> [ 1.458326] ata2: SATA link down (SStatus 0 SControl 300)
> [ 1.459404] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [ 1.460621] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
> [ 1.460936] ata1.00: 6291456 sectors, multi 16: LBA48 NCQ (depth 31/32)
> [ 1.461326] ata1.00: applying bridge limits
> [ 1.462129] ata1.00: configured for UDMA/100
> [ 1.463843] ata6: SATA link down (SStatus 0 SControl 300)
> [ 1.464096] ata5: SATA link down (SStatus 0 SControl 300)
> [ 1.464642] ata4: SATA link down (SStatus 0 SControl 300)
> [ 1.465121] ata3.00: configured for UDMA/100
> [ 1.476104] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
> [ 1.481672] sd 0:0:0:0: [sda] 6291456 512-byte logical blocks: (3.22 GB/3.00 GiB)
> [ 1.483328] sd 0:0:0:0: [sda] Write Protect is off
> [ 1.483818] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [ 1.486493] sd 0:0:0:0: Attached scsi generic sg0 type 0
> [ 1.490757] scsi 2:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5
> [ 1.492993] sr 2:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
> [ 1.493262] cdrom: Uniform CD-ROM driver Revision: 3.20
> [ 1.501226] sr 2:0:0:0: Attached scsi generic sg1 type 5
> [ 1.502777] sda: sda1
> [ 1.509588] sd 0:0:0:0: [sda] Attached SCSI disk
> [ 1.545030] FAT-fs (sr0): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
> [ 1.547194] FAT-fs (sr0): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
> [ 1.551881] VFS: Mounted root (iso9660 filesystem) readonly on device 11:0.
> [ 1.632754] Freeing unused kernel memory: 1380K
> [ 1.632905] Write protecting the kernel read-only data: 12288k
> [ 1.636369] Freeing unused kernel memory: 140K
> [ 1.703301] Freeing unused kernel memory: 1400K
> [ 1.920501] tsc: Refined TSC clocksource calibration: 3394.155 MHz
> [ 1.920948] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x30ecbcc6c3d, max_idle_ns: 440795207542 ns
> [ 2.940581] clocksource: Switched to clocksource tsc
>
> Welcome to LinuxKit
>
> ## .
> ## ## ## ==
> ## ## ## ## ## ===
> /"""""""""""""""""\___/ ===
> { / ===-
> \______ O __/
> \ \ __/
> \____\_______/
>
> [ 6.609377] 8021q: adding VLAN 0 to HW filter on device eth0
> [ 7.123456] IPVS: Creating netns size=2104 id=1
> [ 7.123918] IPVS: ftp: loaded support on port[0] = 21
> [ 8.354013] IPVS: Creating netns size=2104 id=2
> [ 8.354294] IPVS: ftp: loaded support on port[0] = 21
> [ 9.536923] random: crng init done
> [ 9.604634] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
> [ 9.609077] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
> [ 9.661331] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
> [ 14.967631] IPVS: Creating netns size=2104 id=3
> [ 14.968941] IPVS: ftp: loaded support on port[0] = 21
I can see the mounting. But I am not too sure the mounting did eventually happend on the linuxkit guest?

The documentation is a little bit unclear on this: binds doesn't add the mount points, but replaces them. The documentation update is pending, but to solve your particular problem, just please put all the existing binds into the .yml (an example below shows how to add the custom aliases to getty):
services:
- name: getty
image: linuxkit/getty:bf6872ce0a9f3ab519b3e502cc41ba3958bda2a6
env:
- INSECURE=true
binds:
- /etc/resolv.conf:/etc/resolv.conf
- /run:/run
- /tmp:/tmp
- /etc:/hostroot/etc
- /usr/bin/ctr:/usr/bin/ctr
- /usr/bin/runc:/usr/bin/runc
- /containers:/containers
- /var/log:/var/log
- /dev:/dev
- /sys:/sys
- /etc/profile.d/aliases.sh:/etc/profile.d/aliases.sh
files:
- path: etc/profile.d/aliases.sh
contents: |
alias c='clear'

Related

Problems with OpenWRT LTE driver adaptation

everyone.
I tried to adapt the SLM730 LTE module to openwrt.
I use the latest v21.02.3 version
I added usb-modeswitch, kmod-mii, kmod-usb-net, kmod-usb-wdm, kmod-usb-net-qmi-wwan, uqmi, kmod-usb-serial-option, kmod-usb-serial, kmod-usb-serial-wwan, luci, luci-proto-qmi and modified the following files:
net/usb/qmi_wwan.c
usb/serial/option.c
usb/serial/usb_wwan.c
But it has been unable to dial successfully, only TX has data sent, RX is always 0.
The device should be successfully recognized.
root#OpenWrt:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=, Driver=option, 480M
|__ Port 2: Dev 3, If 1, Class=, Driver=option, 480M
|__ Port 2: Dev 3, If 2, Class=, Driver=option, 480M
|__ Port 2: Dev 3, If 3, Class=, Driver=option, 480M
|__ Port 2: Dev 3, If 4, Class=, Driver=, 480M
|__ Port 2: Dev 3, If 5, Class=, Driver=qmi_wwan, 480M
Here is the output of dmesg:
root#OpenWrt:~# dmesg
[ 0.000000] Linux version 5.4.188 (xu#xu-virtual-machine) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Asus RT-AC51U
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] Normal zone: 288 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00035bf1
[ 0.000000] Readback ErrCtl register=00035bf1
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 122288K/131072K available (4745K kernel code, 206K rwdata, 1048K rodata, 1224K init, 205K bss, 8784K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007611] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
[ 0.045493] pid_max: default: 32768 minimum: 301
[ 0.050185] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.057240] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.071776] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.081258] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.087942] pinctrl core: initialized pinctrl subsystem
[ 0.093612] NET: Registered protocol family 16
[ 0.474655] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[ 0.481162] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.510746] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.516229] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.522244] GPIO line 10 (enable-leds) hogged as output/low
[ 0.527990] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.533337] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.544501] clocksource: Switched to clocksource systick
[ 0.551104] NET: Registered protocol family 2
[ 0.555548] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.563304] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.571455] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.578865] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.585705] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.592020] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.598370] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.605409] NET: Registered protocol family 1
[ 0.609655] PCI: CLS 0 bytes, default 32
[ 0.616407] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.624774] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.639628] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.645300] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.673582] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.681013] printk: console [ttyS0] disabled
[ 0.685220] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.694838] printk: console [ttyS0] enabled
[ 0.711374] printk: bootconsole [early0] disabled
[ 0.736465] spi spi0.0: force spi mode3
[ 0.755771] spi-nor spi0.0: w25q128 (16384 Kbytes)
[ 0.765400] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.778065] Creating 4 MTD partitions on "spi0.0":
[ 0.787625] 0x000000000000-0x000000030000 : "u-boot"
[ 0.798620] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.810317] 0x000000040000-0x000000050000 : "factory"
[ 0.821535] 0x000000050000-0x000001000000 : "firmware"
[ 0.836226] 2 uimage-fw partitions found on MTD device firmware
[ 0.848103] Creating 2 MTD partitions on "firmware":
[ 0.858012] 0x000000000000-0x0000001e828c : "kernel"
[ 0.869101] 0x0000001e828c-0x000000fb0000 : "rootfs"
[ 0.880012] mtd: device 5 (rootfs) set to be root filesystem
[ 0.893263] 1 squashfs-split partitions found on MTD device rootfs
[ 0.905655] 0x00000056d000-0x000000fb0000 : "rootfs_data"
[ 0.928631] gsw: setting port4 to ephy mode
[ 0.937039] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 3 link up (100Mbps/Full duplex)
[ 0.955759] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 0.968361] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.985429] rt2880_wdt 10000120.watchdog: Initialized
[ 0.997153] NET: Registered protocol family 10
[ 1.010488] Segment Routing with IPv6
[ 1.018010] NET: Registered protocol family 17
[ 1.026942] 8021q: 802.1Q VLAN Support v1.8
[ 1.044632] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.065693] Freeing unused kernel memory: 1224K
[ 1.074737] This architecture does not have kernel memory protection.
[ 1.087570] Run /sbin/init as init process
[ 1.376461] random: fast init done
[ 1.986622] init: Console is alive
[ 1.993833] init: - watchdog -
[ 3.420622] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.635304] usbcore: registered new interface driver usbfs
[ 3.646413] usbcore: registered new interface driver hub
[ 3.657139] usbcore: registered new device driver usb
[ 3.674675] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.689736] ehci-fsl: Freescale EHCI Host controller driver
[ 3.702634] ehci-platform: EHCI generic platform driver
[ 3.723451] phy phy-usbphy.0: remote usb device wakeup disabled
[ 3.735261] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 3.744124] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 3.755613] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 3.771544] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 3.788422] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 3.801994] hub 1-0:1.0: USB hub found
[ 3.809990] hub 1-0:1.0: 1 port detected
[ 3.823568] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.837841] ohci-platform: OHCI generic platform driver
[ 3.848666] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 3.862262] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 3.878194] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 3.915374] hub 2-0:1.0: USB hub found
[ 3.923373] hub 2-0:1.0: 1 port detected
[ 3.936495] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.955358] init: - preinit -
[ 4.080508] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 4.668805] hub 1-1:1.0: USB hub found
[ 4.768271] hub 1-1:1.0: 4 ports detected
[ 4.848520] random: procd: uninitialized urandom read (4 bytes read)
[ 5.231629] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
[ 5.251938] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.431566] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.916295] urandom_read: 4 callbacks suppressed
[ 5.916304] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.396876] 8021q: adding VLAN 0 to HW filter on device eth0
[ 8.040037] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.058390] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.181039] procd: - early -
[ 8.187091] procd: - watchdog -
[ 8.847980] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.948155] procd: - watchdog -
[ 8.955179] procd: - ubus -
[ 9.185351] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.221234] procd: - init -
[ 11.701987] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.988760] usbcore: registered new interface driver cdc_wdm
[ 12.017931] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
[ 12.033279] Backport generated by backports.git v5.10.110-1-0-g1fbde860
[ 12.113347] usbcore: registered new interface driver usbserial_generic
[ 12.126509] usbserial: USB Serial support registered for generic
[ 12.193556] xt_time: kernel timezone is -0000
[ 12.239731] urngd: jent-rng init failed, err: 2
[ 12.401783] PPP generic driver version 2.4.2
[ 12.413893] NET: Registered protocol family 24
[ 12.426633] qmi_wwan 1-1.2:1.5: work on RawIP mode
[ 12.437478] qmi_wwan 1-1.2:1.5: cdc-wdm0: USB WDM device
[ 12.449206] qmi_wwan 1-1.2:1.5 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, 7a:a8:ae:e9:6e:86
[ 12.470905] usbcore: registered new interface driver qmi_wwan
[ 12.627036] usbcore: registered new interface driver option
[ 12.638338] usbserial: USB Serial support registered for GSM modem (1-port)
[ 12.652833] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 12.665686] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 12.679853] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 12.692748] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 12.706902] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 12.719824] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 12.733958] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 12.746833] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 12.943757] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[ 12.958194] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 12.973669] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 12.987503] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.031948] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 24.722303] crng init done
[ 46.735943] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 46.779026] jffs2_build_filesystem(): unlocking the mtd device...
[ 46.779981] done.
[ 46.796204] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 48.934666] 8021q: adding VLAN 0 to HW filter on device eth0
[ 49.060777] br-lan: port 1(eth0.1) entered blocking state
[ 49.071639] br-lan: port 1(eth0.1) entered disabled state
[ 49.082849] device eth0.1 entered promiscuous mode
[ 49.092455] device eth0 entered promiscuous mode
[ 49.237050] br-lan: port 1(eth0.1) entered blocking state
[ 49.247889] br-lan: port 1(eth0.1) entered forwarding state
[ 49.938878] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 293.242138] done.
[ 293.246035] jffs2: notice: (2443) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 293.495834] overlayfs: upper fs does not support tmpfile.
Attach a screenshot of the network interface
The modified driver code is attached, please refer to
drivers.zip
After two weeks of research, I really have no clue. Please forgive my English writing.
Please give me some pointers. Thank you!

How to write fluent bit input logs to localhost syslog server

I'm working on collecting logs from docker containerized application. I'm able to bring the logs to stdout output plugin but when I am trying syslog output plugin then it is not writing on syslog server.
Below is the configuration file.
[SERVICE]
Parsers_File /etc/td-agent-bit/parsers.conf
[INPUT]
Name forward
[Output]
name syslog
match *
host 127.0.0.1
port 514
mode udp
syslog_format rfc5424
syslog_hostname_key hostname
syslog_appname_key appname
syslog_procid_key procid
syslog_message_key log
The logging property for container application is set to
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
tag: logs
After running the fluent bit /opt/td-agent-bit/bin/td-agent-bit -c fluent.conf
[2021/09/20 08:47:16] [ warn] [engine] failed to flush chunk '8481-1632152835.361162854.flb', retry in 7 seconds: task_id=0, input=forward.0 > output=syslog.0 (out_id=0)
[2021/09/20 08:47:23] [ warn] [engine] chunk '8481-1632152835.361162854.flb' cannot be retried: task_id=0, input=forward.0 > output=syslog.0
[2021/09/20 08:47:26] [ warn] [engine] failed to flush chunk '8481-1632152845.361118393.flb', retry in 6 seconds: task_id=0, input=forward.0 > output=syslog.0 (out_id=0)
[2021/09/20 08:47:32] [ warn] [engine] chunk '8481-1632152845.361118393.flb' cannot be retried: task_id=0, input=forward.0 > output=syslog.0
[2021/09/20 08:47:36] [ warn] [engine] failed to flush chunk '8481-1632152855.361556013.flb', retry in 8 seconds: task_id=0, input=forward.0 > output=syslog.0 (out_id=0)
Can anyone tell what is going wrong here?
Even for simple cpu input plugin syslog does not work. like
/opt/td-agent-bit/bin/td-agent-bit -i cpu -o syslog
output
[2021/09/20 08:53:43] [ info] [cmetrics] version=0.2.1
[2021/09/20 08:53:43] [ info] [output:syslog:syslog.0] setup done for 127.0.0.1:514
[2021/09/20 08:53:43] [ info] [sp] stream processor started
[2021/09/20 08:53:48] [ warn] [engine] failed to flush chunk '8765-1632153224.515974981.flb', retry in 10 seconds: task_id=0, input=cpu.0 > output=syslog.0 (out_id=0)
[2021/09/20 08:53:53] [ warn] [engine] failed to flush chunk '8765-1632153228.516869744.flb', retry in 6 seconds: task_id=1, input=cpu.0 > output=syslog.0 (out_id=0)
[2021/09/20 08:53:58] [ warn] [engine] chunk '8765-1632153224.515974981.flb' cannot be retried: task_id=0, input=cpu.0 > output=syslog.0
i faced similar issue, happening because fluentbit pod itself is 127.0.0.1. i created another rsyslog pod and used its IP to get logs from fluentbit.
https://artifacthub.io/packages/helm/rsyslog/rsyslog

Docker daemon out of memory but memory available on host

I have been looking here and elsewhere on Internet and didn't find answer to my problem.
Here is the situation.
My system is not running out of memory:
System information as of Sat May 23 12:06:56 CEST 2020
System load: 0.02 Users logged in: 0
Usage of /: 72.8% of 38.71GB IP address for ens3: 92.222.89.93
Memory usage: 12% IP address for docker_gwbridge: 172.18.0.1
Swap usage: 0% IP address for docker0: 172.17.0.1
Processes: 126
My docker daemon does not show any problem:
top - 12:14:46 up 2 days, 22:11, 1 user, load average: 37.87, 21.54, 26.91
Tasks: 187 total, 2 running, 140 sleeping, 0 stopped, 1 zombie
%Cpu(s): 0.8 us, 92.4 sy, 0.0 ni, 0.0 id, 6.5 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 3941032 total, 118616 free, 3720504 used, 101912 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 14676 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
34 root 20 0 0 0 0 R 71.6 0.0 28:08.90 kswapd0
11405 root 20 0 117504 3920 0 S 0.9 0.1 0:00.32 caddy
1005 root 20 0 934736 61288 0 S 0.7 1.6 19:09.86 dockerd
But I get an out of memory error when I invoke docker commands:
# docker ps
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x55d00d234abc, 0x16)
/usr/local/go/src/runtime/panic.go:617 +0x74 fp=0x7ffc081913c0 sp=0x7ffc08191390 pc=0x55d00bc58574
runtime.sysMap(0xc000000000, 0x4000000, 0x55d00f1ddf98)
/usr/local/go/src/runtime/mem_linux.go:170 +0xc9 fp=0x7ffc08191400 sp=0x7ffc081913c0 pc=0x55d00bc43889
runtime.(*mheap).sysAlloc(0x55d00f1c4a80, 0x2000, 0x55d00f1c4a90, 0x1)
/usr/local/go/src/runtime/malloc.go:633 +0x1cf fp=0x7ffc081914a8 sp=0x7ffc08191400 pc=0x55d00bc3669f
runtime.(*mheap).grow(0x55d00f1c4a80, 0x1, 0x0)
/usr/local/go/src/runtime/mheap.go:1222 +0x44 fp=0x7ffc08191500 sp=0x7ffc081914a8 pc=0x55d00bc50c94
runtime.(*mheap).allocSpanLocked(0x55d00f1c4a80, 0x1, 0x55d00f1ddfa8, 0x0)
/usr/local/go/src/runtime/mheap.go:1150 +0x381 fp=0x7ffc08191538 sp=0x7ffc08191500 pc=0x55d00bc50b81
runtime.(*mheap).alloc_m(0x55d00f1c4a80, 0x1, 0x2a, 0x6e43a318)
/usr/local/go/src/runtime/mheap.go:977 +0xc6 fp=0x7ffc08191588 sp=0x7ffc08191538 pc=0x55d00bc501d6
runtime.(*mheap).alloc.func1()
/usr/local/go/src/runtime/mheap.go:1048 +0x4e fp=0x7ffc081915c0 sp=0x7ffc08191588 pc=0x55d00bc812fe
runtime.(*mheap).alloc(0x55d00f1c4a80, 0x1, 0x55d00b01002a, 0x7ffc08191660)
/usr/local/go/src/runtime/mheap.go:1047 +0x8c fp=0x7ffc08191610 sp=0x7ffc081915c0 pc=0x55d00bc504ac
runtime.(*mcentral).grow(0x55d00f1c5880, 0x0)
/usr/local/go/src/runtime/mcentral.go:256 +0x97 fp=0x7ffc08191658 sp=0x7ffc08191610 pc=0x55d00bc43307
runtime.(*mcentral).cacheSpan(0x55d00f1c5880, 0x7ff733676000)
/usr/local/go/src/runtime/mcentral.go:106 +0x301 fp=0x7ffc081916b8 sp=0x7ffc08191658 pc=0x55d00bc42e11
runtime.(*mcache).refill(0x7ff733676008, 0x2a)
/usr/local/go/src/runtime/mcache.go:135 +0x88 fp=0x7ffc081916d8 sp=0x7ffc081916b8 pc=0x55d00bc428a8
runtime.(*mcache).nextFree(0x7ff733676008, 0x55d00f1ba92a, 0x7ff733676008, 0x7ff733676000, 0x8)
/usr/local/go/src/runtime/malloc.go:786 +0x8a fp=0x7ffc08191710 sp=0x7ffc081916d8 pc=0x55d00bc36eda
runtime.mallocgc(0x180, 0x55d00df28480, 0x1, 0x55d00f1de000)
/usr/local/go/src/runtime/malloc.go:939 +0x780 fp=0x7ffc081917b0 sp=0x7ffc08191710 pc=0x55d00bc37810
runtime.newobject(0x55d00df28480, 0x4000)
/usr/local/go/src/runtime/malloc.go:1068 +0x3a fp=0x7ffc081917e0 sp=0x7ffc081917b0 pc=0x55d00bc37c1a
runtime.malg(0x22b1800008000, 0x55d00f1c70f0)
/usr/local/go/src/runtime/proc.go:3220 +0x33 fp=0x7ffc08191820 sp=0x7ffc081917e0 pc=0x55d00bc61a23
runtime.mpreinit(...)
/usr/local/go/src/runtime/os_linux.go:311
runtime.mcommoninit(0x55d00f1bed40)
/usr/local/go/src/runtime/proc.go:618 +0xc6 fp=0x7ffc08191858 sp=0x7ffc08191820 pc=0x55d00bc5b396
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:540 +0x78 fp=0x7ffc081918b0 sp=0x7ffc08191858 pc=0x55d00bc5b028
runtime.rt0_go(0x7ffc081919b8, 0x2, 0x7ffc081919b8, 0x0, 0x7ff732ca9b97, 0x2, 0x7ffc081919b8, 0x200008000, 0x55d00bc83370, 0x0, ...)
/usr/local/go/src/runtime/asm_amd64.s:195 +0x11e fp=0x7ffc081918b8 sp=0x7ffc081918b0 pc=0x55d00bc8349e
Any suggestion is welcome although I am not sure to be able to reproduce the problem
After I set a memory limit on one of my container as advised by #John Manko the problem didn't arise anymore. It seems that this fixed my problem.

Job Fails with odd message

I have a job that is failing at the very start of the message:
"#*" and "#N" are reserved sharding specs. Filepattern must not contain any of them.
I have altered the destination location to be something other than the default (an email address) which would include the # symbol but I can still see it is using temporary destinations within that path that I am unable to edit.
Did anyone experience this issue before? I've got a file which is only 65k rows long, I can preview all of the complete data in Data Prep but when I run the job it fails which is super tedious and ~3hrs of cleaning down the drain if this won't run. (I appreciate it's not designed for this, but Excel was being a mare so it seemed like a good solution!)
Edit - Adding Logs:
2018-03-10 (13:47:34) Value "PTableLoadTransformGCS/Shuffle/GroupByKey/Session" materialized.
2018-03-10 (13:47:34) Executing operation PTableLoadTransformGCS/SumQuoteAndDelimiterCounts/GroupByKey/Read+PTableLoadTran...
2018-03-10 (13:47:38) Executing operation PTableLoadTransformGCS/Shuffle/GroupByKey/Close
2018-03-10 (13:47:38) Executing operation PTableStoreTransformGCS/WriteFiles/GroupUnwritten/Create
2018-03-10 (13:47:39) Value "PTableStoreTransformGCS/WriteFiles/GroupUnwritten/Session" materialized.
2018-03-10 (13:47:39) Executing operation PTableLoadTransformGCS/Shuffle/GroupByKey/Read+PTableLoadTransformGCS/Shuffle/Gr...
2018-03-10 (13:47:39) Executing failure step failure49
2018-03-10 (13:47:39) Workflow failed. Causes: (c759db2a23a80ea): "#*" and "#N" are reserved sharding specs. Filepattern m...
(c759db2a23a8c5b): Workflow failed. Causes: (c759db2a23a80ea): "#*" and "#N" are reserved sharding specs. Filepattern must not contain any of them.
2018-03-10 (13:47:39) Cleaning up.
2018-03-10 (13:47:39) Starting worker pool teardown.
2018-03-10 (13:47:39) Stopping worker pool...
And StackDriver warnings or higher:
W ACPI: RSDP 0x00000000000F23A0 000014 (v00 Google)
W ACPI: RSDT 0x00000000BFFF3430 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001)
W ACPI: FACP 0x00000000BFFFCF60 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001)
W ACPI: DSDT 0x00000000BFFF3470 0017B2 (v01 Google GOOGDSDT 00000001 GOOG 00000001)
W ACPI: FACS 0x00000000BFFFCF00 000040
W ACPI: FACS 0x00000000BFFFCF00 000040
W ACPI: SSDT 0x00000000BFFF65F0 00690D (v01 Google GOOGSSDT 00000001 GOOG 00000001)
W ACPI: APIC 0x00000000BFFF5D10 00006E (v01 Google GOOGAPIC 00000001 GOOG 00000001)
W ACPI: WAET 0x00000000BFFF5CE0 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001)
W ACPI: SRAT 0x00000000BFFF4C30 0000B8 (v01 Google GOOGSRAT 00000001 GOOG 00000001)
W ACPI: 2 ACPI AML tables successfully acquired and loaded
W ACPI: Executed 2 blocks of module-level executable AML code
W acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
W ACPI: Enabled 16 GPEs in block 00 to 0F
W ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
W ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
W i8042: Warning: Keylock active
W GPT:Primary header thinks Alt. header is not at the end of the disk.
W GPT:41943039 != 524287999
W GPT:Alternate GPT header not at the end of the disk.
W GPT:41943039 != 524287999
W GPT: Use GNU Parted to correct GPT errors.
W device-mapper: verity: Argument 0: 'payload=PARTUUID=245B0EEC-6404-8744-AAF2-E8C6BF78D7B2'
W device-mapper: verity: Argument 1: 'hashtree=PARTUUID=245B0EEC-6404-8744-AAF2-E8C6BF78D7B2'
W device-mapper: verity: Argument 2: 'hashstart=2539520'
W device-mapper: verity: Argument 3: 'alg=sha1'
W device-mapper: verity: Argument 4: 'root_hexdigest=244007b512ddbf69792d485fdcbc3440531f1264'
W device-mapper: verity: Argument 5: 'salt=5bacc0df39d2a60191e9b221ffc962c55e251ead18cf1472bf8d3ed84383765b'
E EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities
W [/usr/lib/tmpfiles.d/var.conf:12] Duplicate line for path "/var/run", ignoring.
W Could not stat /dev/pstore: No such file or directory
W Kernel does not support crash dumping
W Could not load the device policy file.
W [CLOUDINIT] cc_write_files.py[WARNING]: Undecodable permissions None, assuming 420
W [CLOUDINIT] cc_write_files.py[WARNING]: Undecodable permissions None, assuming 420
W [CLOUDINIT] cc_write_files.py[WARNING]: Undecodable permissions None, assuming 420
W [CLOUDINIT] cc_write_files.py[WARNING]: Undecodable permissions None, assuming 420
W [WARNING:persistent_integer.cc(75)] cannot open /var/lib/metrics/version.cycle for reading: No such file or directory
W No API client: no api servers specified
W Unable to update cni config: No networks found in /etc/cni/net.d
W unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp 127.0.0.1:15441: getsockopt: connection refused
W No api server defined - no events will be sent to API server.
W Hairpin mode set to "promiscuous-bridge" but kubenet is not enabled, falling back to "hairpin-veth"
W Unable to update cni config: No networks found in /etc/cni/net.d
E Image garbage collection failed once. Stats initialization may not have completed yet: unable to find data for container /
W No api server defined - no node status update will be sent.
E Failed to check if disk space is available for the runtime: failed to get fs info for "runtime": unable to find data for container /
E Failed to check if disk space is available on the root partition: failed to get fs info for "root": unable to find data for container /
E [ContainerManager]: Fail to get rootfs information unable to find data for container /
W Registration of the rkt container factory failed: unable to communicate with Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp 127.0.0.1:15441: getsockopt: connection refused
E Could not find capacity information for resource storage.kubernetes.io/scratch
W eviction manager: no observation found for eviction signal allocatableNodeFs.available
W Profiling Agent not found. Profiles will not be available from this worker.
E debconf: delaying package configuration, since apt-utils is not installed
W [WARNING:metrics_daemon.cc(598)] cannot read /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
E % Total % Received % Xferd Average Speed Time Time Time Current
E Dload Upload Total Spent Left Speed
E
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3698 100 3698 0 0 64248 0 --:--:-- --:--:-- --:--:-- 64877

Chronos framework connect and disconnect from Mesos

this is my first question, I hope to do all correctly.
I have 3 dockers on differents hosts with zookeeper, mesos, and chronos.
Mesos slaves are correctly subscribed to the master. Chronos tasks are syncronized with each host.
The problem is: chronos framework is connecting and disconnecting:
0915 12:12:11.132375 49 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
I0915 12:12:11.132647 49 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [ ]
I0915 12:12:11.133229 49 master.cpp:2312] Framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740 already subscribed, resending acknowledgement
W0915 12:12:11.133322 49 master.hpp:1764] Master attempted to send message to disconnected framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
E0915 12:12:11.133745 55 process.cpp:1958] Failed to shutdown socket with fd 41: Transport endpoint is not connected
I0915 12:12:25.648849 52 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
I0915 12:12:25.649029 52 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [ ]
I0915 12:12:25.649060 52 master.cpp:2312] Framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740 already subscribed, resending acknowledgement
W0915 12:12:25.649116 52 master.hpp:1764] Master attempted to send message to disconnected framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
E0915 12:12:25.649433 55 process.cpp:1958] Failed to shutdown socket with fd 41: Transport endpoint is not connected
I0915 12:13:15.146510 50 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
I0915 12:13:15.146759 50 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [ ]
I0915 12:13:15.146848 50 master.cpp:2312] Framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740 already subscribed, resending acknowledgement
W0915 12:13:15.146939 50 master.hpp:1764] Master attempted to send message to disconnected framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
E0915 12:13:15.147408 55 process.cpp:1958] Failed to shutdown socket with fd 41: Transport endpoint is not connected
I0915 12:14:04.957185 51 master.cpp:2231] Received SUBSCRIBE call for framework 'chronos-2.4.0' at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
I0915 12:14:04.957341 51 master.cpp:2302] Subscribing framework chronos-2.4.0 with checkpointing enabled and capabilities [ ]
I0915 12:14:04.957363 51 master.cpp:2312] Framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740 already subscribed, resending acknowledgement
W0915 12:14:04.957392 51 master.hpp:1764] Master attempted to send message to disconnected framework 71c69a28-ef16-4ed1-b869-04df66f84b5d-0000 (chronos-2.4.0) at scheduler-e6ebc7bc-8edb-45e9-ad68-3fa36566b55b#10.xxx.xxx.xxx:61740
E0915 12:14:04.957844 55 process.cpp:1958] Failed to shutdown socket with fd 41: Transport endpoint is not connected
In this case, mesos-master and chronos framework are in the same docker, but I suspect that can not connect to Chronos at port 61740 (That is a ephemeral port)
netstat capture:
tcpdump capture:
root#HOSTNAME:/# tcpdump -i eth0 port 61740 -v
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
12:30:41.013731 IP (tos 0x0, ttl 64, id 12013, offset 0, flags [DF], proto TCP (6), length 60)
172.xxx.xxx.xxx.29468 > HOSTNAME.61740: Flags [S], cksum 0xb989 (incorrect -> 0xa894), seq 1155265525, win 14600, options [mss 1460,sackOK,TS val 852942104 ecr 0,nop,wscale 6], len gth 0
12:30:41.013780 IP (tos 0x0, ttl 64, id 49727, offset 0, flags [DF], proto TCP (6), length 40)
HOSTNAME.61740 > 172.xxx.xxx.xxx.29468: Flags [R.], cksum 0x595a (correct), seq 0, ack 1155265526, win 0, length 0
12:31:18.129849 IP (tos 0x0, ttl 64, id 64040, offset 0, flags [DF], proto TCP (6), length 60)
172.xxx.xxx.xxx.30564 > HOSTNAME.61740: Flags [S], cksum 0xb989 (incorrect -> 0x97fb), seq 535270461, win 14600, options [mss 1460,sackOK,TS val 852979221 ecr 0,nop,wscale 6], leng th 0
12:31:18.129892 IP (tos 0x0, ttl 64, id 6441, offset 0, flags [DF], proto TCP (6), length 40)
HOSTNAME.61740 > 172.xxx.xxx.xxx.30564: Flags [R.], cksum 0xd9be (correct), seq 0, ack 535270462, win 0, length 0
12:31:36.451417 IP (tos 0x0, ttl 64, id 21303, offset 0, flags [DF], proto TCP (6), length 60)
172.xxx.xxx.xxx.31103 > HOSTNAME.61740: Flags [S], cksum 0xb989 (incorrect -> 0x10c7), seq 186377873, win 14600, options [mss 1460,sackOK,TS val 852997542 ecr 0,nop,wscale 6], leng th 0
12:31:36.451470 IP (tos 0x0, ttl 64, id 13169, offset 0, flags [DF], proto TCP (6), length 40)
HOSTNAME.61740 > 172.xxx.xxx.xxx.31103: Flags [R.], cksum 0x9a1b (correct), seq 0, ack 186377874, win 0, length 0
12:31:41.619076 IP (tos 0x0, ttl 64, id 41997, offset 0, flags [DF], proto TCP (6), length 60)
172.xxx.xxx.xxx.31252 > HOSTNAME.61740: Flags [S], cksum 0xb989 (incorrect -> 0xfe18), seq 2176478683, win 14600, options [mss 1460,sackOK,TS val 853002710 ecr 0,nop,wscale 6], length 0
12:31:41.619119 IP (tos 0x0, ttl 64, id 13179, offset 0, flags [DF], proto TCP (6), length 40)
HOSTNAME.61740 > 172.xxx.xxx.xxx.31252: Flags [R.], cksum 0x9b9d (correct), seq 0, ack 2176478684, win 0, length 0
The IP 172.xxx.xxx.xxx is the container IP, but I actually run mesos-master like this:
mesos-master --log_dir=/var/log/mesos/master/ --work_dir=/var/log/mesos/work/ --quorum=2 --cluster=XXXX --zk=file:///etc/mesos/zk --advertise_ip=10.XXX.XXX.XXX --hostname=HOSTNAME
Any idea or suggestion will be appreciated.
Thanks.
At tcpdump catpure we can see the incorrect checksum. It seem like a bug in kernel version (3.10). This fixes in 3.14+, but i cant check because we cant updating in this enviroment.
https://tech.vijayp.ca/linux-kernel-bug-delivers-corrupt-tcp-ip-data-to-mesos-kubernetes-docker-containers-4986f88f7a19#.w6eui9yc9

Resources