Skip to content

[Bug]: the serial port suddenly cannot receive any data after working for a couple of hours. #1613

@chenxuwei

Description

@chenxuwei

Operating system

Ubuntu24.04

Description

I am passing through a host serial port (/dev/ttyS0) to a Windows 10 VM running via the dockur/windows Docker image.

The serial port functioned normally at first in windows vm. But the serial port suddenly cannot receive any data after working for a couple of hours.
The fault recovery when i restart the docker, but after a couple of hours the symptom appears again.

Is there anyone facing similar symptom, any workaround for this issue?

Docker compose

services:
  windows:
    image: dockurr/windows
    container_name: win10-ltsc
    environment:
      VERSION: "10l"
      REGION: "zh-CN"
      TZ: "Asia/Shanghai"
      KEYBOARD: "en-US"
      DISK_SIZE: "100G"
      RAM_SIZE: "12G"
      CPU_CORES: "10"
      MULTI_NET: "true"
      TAP_INTERFACES: "tap0"
      ARGUMENTS: "-serial /dev/ttyS0"
    devices:
      - /dev/kvm
      - /dev/net/tun
      - /dev/bus/usb
      - /dev/ttyS0
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    volumes:
      - ./windows:/storage
      - /data:/shared
    restart: no
    stop_grace_period: 30s

Docker log

root@bacb9e4ba8af:/# cat /run/shm/qemu.log
root@bacb9e4ba8af:/#

Screenshots (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions