windows icon indicating copy to clipboard operation
windows copied to clipboard

[Bug]: ERROR: Timeout while waiting for QEMU to boot the machine

Open itiligent opened this issue 1 year ago • 1 comments

Operating system

Ubuntu 24 & Mint 22 (Debian 12 works OK)

Description

When creating a new windows container with a compse file that has a macvlan configured, I see:

 qemu-system-x86_64: terminating on signal 15 from pid 378 (bash)
| ❯ Shutdown completed!

However, if I first create the new Windwos container with a compose file that uses the default network, and then relaunch that container with the attached compose file that uses a macvlan, it all boots and builds just fine and the macvlan works

I am using a quite mature build script that has worked many times before, and this script works absolutely on Debian 12 & LMDE with macvlan builds.

Any ideas?

Docker compose

name: "$PROJECT_NAME"
volumes:
  data:
services:
  windows:
    image: "$DOCKER_REPOSITORY"
    container_name: "$CONTAINER_NAME"
    environment:
      DHCP: "Y"
      VERSION: "$VERSION"
      RAM_SIZE: "$RAM_SIZE"
      CPU_CORES: "$CPU_CORES"
      DISK_SIZE: "$DISK_SIZE"
      #DISK2_SIZE: "32G"
      USERNAME: "$USERNAME" 
      PASSWORD: "$PASSWORD" 
      HOME: "${HOME}"
    privileged: true
    ports:
      - ${NET_ACCESS_OPTION}8006:8006
      - ${NET_ACCESS_OPTION}3389:3389/tcp
      - ${NET_ACCESS_OPTION}3389:3389/udp
    stop_grace_period: 120s
    restart: on-failure
    volumes:
      - data:/storage
      - ${HOME}:/shared
      - ./oem:/oem
    devices:
      - /dev/kvm 
      - /dev/vhost-net 
      #- /dev/sdX:/disk1 
      #- /dev/sdY:/disk2 
    device_cgroup_rules:
      - 'c *:* rwm' 
    networks:
      vlan:
        ipv4_address: $container_ip
networks:
  vlan:
    external: true
    name: ${MAC_VLAN_NAME}

Docker log

❯ Extracting local ISO image...
❯ Detecting version from ISO image...
❯ Detected: Windows 10 IoT
❯ Adding drivers to image...
❯ Adding OEM folder to image...
❯ Adding win10x64-iot.xml for automatic installation...
❯ Building Windows 10 image...
❯ Creating a 64G growable disk image in raw format...
❯ Warning: container IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!
❯ Booting Windows securely using QEMU v8.2.4...
❯ ERROR: Timeout while waiting for QEMU to boot the machine!
qemu-system-x86_64: terminating on signal 15 from pid 378 (bash)
❯ Shutdown completed!
❯ Starting Windows for Docker v3.12...
❯ For support visit https://github.com/dockur/windows
❯ CPU: 11th Gen Intel Core TM i5 1135G7 | RAM: 14/16 GB | DISK: 73 GB (ext4) | HOST: 6.8.0-39...

❯ Warning: container IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!
❯ Booting Windows securely using QEMU v8.2.4...
❯ ERROR: Timeout while waiting for QEMU to boot the machine!
qemu-system-x86_64: terminating on signal 15 from pid 201 (bash)
❯ Shutdown completed!

Screenshots (optional)

No response

itiligent avatar Aug 06 '24 16:08 itiligent

Can you try again using the latest version (v3.20)?

kroese avatar Oct 05 '24 12:10 kroese