dockur / windows

Windows inside a Docker container.
MIT License
16.96k stars 1.44k forks source link

ERROR: Timeout while waiting for QEMU to boot the machine #635

Closed gustavoleo closed 2 weeks ago

gustavoleo commented 2 months ago

Operating system

Ubuntu 22.04.4 LTS

Description

I have tried this Verify Hyper-V is Disabled: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

Docker compose

services: windows: image: dockurr/windows container_name: windows11 environment: VERSION: "win11"

RAM_SIZE: "16GB"

  DISK_SIZE: "84G"
  CPU_CORES: "7"
volumes:
- /home/tony/windows_docker:/storage
- /home/tony/windows_docker:/shared
devices:
  - /dev/kvm
cap_add:
  - NET_ADMIN
ports:
  - 8006:8006
  - 3389:3389/tcp
  - 3389:3389/udp
stop_grace_period: 2m
privileged: true

Docker log

2024-07-03 08:45:36 windows11 | ❯ Starting Windows for Docker v3.12... 2024-07-03 08:45:36 windows11 | ❯ For support visit https://github.com/dockur/windows 2024-07-03 08:45:36 windows11 | ❯ CPU: 12th Gen Intel Core TM i7 12700H | RAM: 45/48 GB | DISK: 919 GB (ext4) | HOST: 5.15.133.1-microsoft-standard-WSL2... 2024-07-03 08:45:36 windows11 | 2024-07-03 08:45:37 windows11 | ❯ Warning: you are using Windows 10 which has no KVM support, this will cause a major loss of performance. 2024-07-03 08:45:37 windows11 | ❯ Booting Windows using QEMU v8.2.4... 2024-07-03 08:45:47 windows11 | ❯ ERROR: Timeout while waiting for QEMU to boot the machine! 2024-07-03 08:45:47 windows11 | qemu-system-x86_64: terminating on signal 15 from pid 207 () 2024-07-03 08:45:49 windows11 | ❯ Shutdown completed! 2036-01-01 00:00:00 windows11 exited with code 0

Screenshots (optional)

No response

spasche commented 2 months ago

I had the same issue on one of my Ubuntu host, running a Windows 11 VM. It used to work fine but I notice the issue today when restarting the VM.

A workaround I found is to use a longer timeout:

FROM dockurr/windows:3.12

RUN sed -i 's/sleep 10/sleep 30/' /run/entry.sh

Not sure what caused the regression (host or Windows update).