dockur / windows

Windows inside a Docker container.
MIT License
17.07k stars 1.45k forks source link

Could not open UnixIO socket: Permission denied #700

Open mapagm opened 4 weeks ago

mapagm commented 4 weeks ago

Operating system

KDE Neon 6.0

Description

Hi all,

I wanted to install windows docker and i'm facing an error: swtpm: Could not open UnixIO socket: Permission denied ❯ ERROR: Failed to start TPM emulator, reason: 0 ❯ Starting Windows for Docker v3.13... ❯ For support visit https://github.com/dockur/windows ❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

Could anyone help me?

Docker compose

name: "winapps" # Docker Compose Project Name.
volumes:
  # Create Volume 'data'.
  # Located @ '/var/lib/docker/volumes/winapps_data/_data' (Docker).
  # Located @ '/var/lib/containers/storage/volumes/winapps_data/_data' or '~/.local/share/containers/storage/volumes/winapps_data/_data' (Podman).
  data:
services:
  windows:
    image: dockurr/windows # https://hub.docker.com/r/dockurr/windows
    container_name: WinApps # Created Docker VM Name.
    environment:
      # Version of Windows to configure. For valid options, visit:
      # https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-select-the-windows-version
      # https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-install-a-custom-image
      VERSION: "tiny11"
      RAM_SIZE: "4G" # RAM allocated to the Windows VM.
      CPU_CORES: "4" # CPU cores allocated to the Windows VM.
      DISK_SIZE: "64G" # Size of the primary hard disk.
      #DISK2_SIZE: "32G" # Uncomment to add an additional hard disk to the Windows VM. Ensure it is mounted as a volume below.
      #USERNAME: "Docker" # Uncomment to set a custom Windows username. The default is 'Docker'.
      #PASSWORD: "" # Uncomment to set a password for the Windows user. There is no default password.
      HOME: "${HOME}" # Set path to Linux user home folder.
    privileged: true # Grant the Windows VM extended privileges.
    ports:
      - 8006:8006 # Map '8006' on Linux host to '8006' on Windows VM --> For VNC Web Interface @ http://127.0.0.1:8006.
      - 3389:3389/tcp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
      - 3389:3389/udp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
    stop_grace_period: 120s # Wait 120 seconds before sending SIGTERM when attempting to shut down the Windows VM.
    restart: on-failure # Restart the Windows VM if the exit code indicates an error.
    volumes:
      - data:/storage # Mount volume 'data' to use as Windows 'C:' drive.
      - ${HOME}:/shared # Mount Linux user home directory @ '\\host.lan\Data'.
      #- /path/to/second/hard/disk:/storage2 # Uncomment to mount the second hard disk within the Windows VM. Ensure 'DISK2_SIZE' is specified above.
      - ./oem:/oem # Enables automatic post-install execution of 'oem/install.bat', applying Windows registry modifications contained within 'oem/RDPApps.reg'.
      #- /path/to/windows/install/media.iso:/custom.iso # Uncomment to use a custom Windows ISO. If specified, 'VERSION' (e.g. 'tiny11') will be ignored.
    devices:
      - /dev/kvm # Enable KVM.
      #- /dev/sdX:/disk1 # Uncomment to mount a disk directly within the Windows VM (Note: 'disk1' will be mounted as the main drive).
      #- /dev/sdY:/disk2 # Uncomment to mount a disk directly within the Windows VM (Note: 'disk2' and higher will be mounted as secondary drives).

Docker log

❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 102 GB (ext4) | HOST: 6.8.0-40...

❯ Downloading Tiny 11 from archive.org...

     0K ........ ........ ........ ........  0% 2.55M 23m23s
 32768K ........ ........ ........ ........  1% 1.45M 32m0s
 65536K ........ ........ ........ ........  2% 2.09M 30m29s
 98304K ........ ........ ........ ........  3% 2.51M 28m26s
131072K ........ ........ ........ ........  4% 2.09M 28m4s
163840K ........ ........ ........ ........  5% 2.37M 27m11s
196608K ........ ........ ........ ........  6% 1.43M 28m44s
229376K ........ ........ ........ ........  7% 1.28M 30m23s
262144K ........ ........ ........ ........  7%  756K 35m5s
294912K ........ ........ ........ ........  8% 1.78M 34m22s
327680K ........ ........ ........ ........  9% 1.98M 33m26s
360448K ........ ........ ........ ........ 10% 2.33M 32m17s
393216K ........ ........ ........ ........ 11% 2.64M 31m3s
425984K ........ ........ ........ ........ 12% 2.08M 30m21s
458752K ........ ........ ........ ........ 13% 1.26M 30m49s
491520K ........ ........ ........ ........ 14% 1.83M 30m21s
524288K ........ ........ ........ ........ 15%  744K 32m25s
557056K ........ ........ ........ ........ 15% 1.04M 33m0s
589824K ........ ........ ........ ........ 16% 1.15M 33m13s
622592K ........ ........ ........ ........ 17% 3.09M 32m1s
655360K ........ ........ ........ ........ 18% 3.32M 30m52s
688128K ........ ........ ........ ........ 19% 1.96M 30m16s
720896K ........ ........ ........ ........ 20% 1.69M 29m52s
753664K ........ ........ ........ ........ 21% 2.35M 29m9s
786432K ........ ........ ........ ........ 22% 1.91M 28m39s
819200K ........ ........ ........ ........ 23% 4.56M 27m37s
851968K ........ ........ ........ ........ 23% 2.38M 27m0s
884736K ........ ........ ........ ........ 24% 3.09M 26m16s
917504K ........ ........ ........ ........ 25% 2.73M 25m37s
950272K ........ ........ ........ ........ 26% 2.57M 25m3s
983040K ........ ........ ........ ........ 27% 1.97M 24m40s
1015808K ........ ........ ........ ........ 28% 1.87M 24m19s
1048576K ........ ........ ........ ........ 29%  944K 24m42s
1081344K ........ ........ ........ ........ 30% 1.60M 24m26s
1114112K ........ ........ ........ ........ 31% 2.24M 23m58s
1146880K ........ ........ ........ ........ 31% 1.64M 23m42s
1179648K ........ ........ ........ ........ 32% 1.40M 23m32s
1212416K ........ ........ ........ ........ 33% 2.48M 23m2s
1245184K ........ ........ ........ ........ 34% 2.36M 22m35s
1277952K ........ ........ ........ ........ 35% 3.76M 21m58s
1310720K ........ ........ ........ ........ 36% 3.49M 21m25s
1343488K ........ ........ ........ ........ 37% 1.41M 21m15s
1376256K ........ ........ ........ ........ 38% 2.24M 20m51s
1409024K ........ ........ ........ ........ 38% 1.58M 20m37s
1441792K ........ ........ ........ ........ 39% 1.31M 20m29s
1474560K ........ ........ ........ ........ 40% 1.36M 20m18s
1507328K ........ ........ ........ ........ 41%  726K 20m38s
1540096K ........ ........ ........ ........ 42% 1.21M 20m30s
1572864K ........ ........ ........ ........ 43% 1.25M 20m19s
1605632K ........ ........ ........ ........ 44% 2.02M 19m56s
1638400K ........ ........ ........ ........ 45% 1.97M 19m34s
1671168K ........ ........ ........ ........ 46% 2.37M 19m8s
1703936K ........ ........ ........ ........ 46% 2.74M 18m42s
1736704K ........ ........ ........ ........ 47% 1.84M 18m21s
1769472K ........ ........ ........ ........ 48% 1.93M 18m0s
1802240K ........ ........ ........ ........ 49% 1.15M 17m51s
1835008K ........ ........ ........ ........ 50% 2.26M 17m28s
1867776K ........ ........ ........ ........ 51% 1.05M 17m20s
1900544K ........ ........ ........ ........ 52% 1.09M 17m11s
1933312K ........ ........ ........ ........ 53% 1.67M 16m52s
1966080K ........ ........ ........ ........ 54% 2.10M 16m29s
1998848K ........ ........ ........ ........ 54% 1.70M 16m10s
2031616K ........ ........ ........ ........ 55% 1.60M 15m52s
2064384K ........ ........ ........ ........ 56% 1.38M 15m36s
2097152K ........ ........ ........ ........ 57%  926K 15m29s
2129920K ........ ........ ........ ........ 58% 1.87M 15m8s
2162688K ........ ........ ........ ........ 59% 1.58M 14m49s
2195456K ........ ........ ........ ........ 60% 1.04M 14m37s
2228224K ........ ........ ........ ........ 61% 2.01M 14m15s
2260992K ........ ........ ........ ........ 62%  991K 14m4s
2293760K ........ ........ ........ ........ 62% 1.35M 13m47s
2326528K ........ ........ ........ ........ 63% 1.01M 13m34s
2359296K ........ ........ ........ ........ 64% 1.54M 13m14s
2392064K ........ ........ ........ ........ 65% 3.81M 12m48s
2424832K ........ ........ ........ ........ 66% 3.49M 12m23s
2457600K ........ ........ ........ ........ 67% 2.39M 12m1s
2490368K ........ ........ ........ ........ 68% 1.72M 11m41s
2523136K ........ ........ ........ ........ 69% 2.07M 11m19s
2555904K ........ ........ ........ ........ 69% 2.60M 10m57s
2588672K ........ ........ ........ ........ 70% 1.31M 10m39s
2621440K ........ ........ ........ ........ 71% 4.10M 10m15s
2654208K ........ ........ ........ ........ 72% 2.52M 9m54s
2686976K ........ ........ ........ ........ 73% 1.74M 9m34s
2719744K ........ ........ ........ ........ 74% 1.39M 9m16s
2752512K ........ ........ ........ ........ 75% 1.59M 8m57s
2785280K ........ ........ ........ ........ 76% 3.37M 8m35s
2818048K ........ ........ ........ ........ 77% 2.87M 8m13s
2850816K ........ ........ ........ ........ 77% 1.61M 7m55s
2883584K ........ ........ ........ ........ 78% 3.14M 7m33s
2916352K ........ ........ ........ ........ 79% 2.51M 7m13s
2949120K ........ ........ ........ ........ 80%  842K 6m59s
2981888K ........ ........ ........ ........ 81% 1.74M 6m39s
3014656K ........ ........ ........ ........ 82% 2.57M 6m19s
3047424K ........ ........ ........ ........ 83% 1.29M 6m1s
3080192K ........ ........ ........ ........ 84% 1.96M 5m41s
3112960K ........ ........ ........ ........ 85% 2.17M 5m21s
3145728K ........ ........ ........ ........ 85% 2.79M 5m1s
3178496K ........ ........ ........ ........ 86% 2.46M 4m41s
3211264K ........ ........ ........ ........ 87% 3.18M 4m21s
3244032K ........ ........ ........ ........ 88% 3.84M 4m1s
3276800K ........ ........ ........ ........ 89% 1.37M 3m43s
3309568K ........ ........ ........ ........ 90% 1.33M 3m25s
3342336K ........ ........ ........ ........ 91% 1.50M 3m6s
3375104K ........ ........ ........ ........ 92% 1.85M 2m47s
3407872K ........ ........ ........ ........ 93% 3.88M 2m28s
3440640K ........ ........ ........ ........ 93% 3.31M 2m8s
3473408K ........ ........ ........ ........ 94% 3.13M 1m49s
3506176K ........ ........ ........ ........ 95% 2.18M 91s
3538944K ........ ........ ........ ........ 96% 3.10M 72s
3571712K ........ ........ ........ ........ 97% 4.25M 53s
3604480K ........ ........ ........ ........ 98% 2.98M 35s
3637248K ........ ........ ........ ........ 99% 1.70M 16s
3670016K ........ ........ ........ ....    100% 3.69M=34m13s

❯ Extracting Tiny 11 image...
❯ Adding drivers to image...
❯ Adding OEM folder to image...
❯ Adding win11x64.xml for automatic installation...
❯ Building Windows 11 image...
❯ Creating a 64G growable disk image in raw format...
swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 13/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0
❯ Starting Windows for Docker v3.13...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 14700K | RAM: 14/16 GB | DISK: 99 GB (ext4) | HOST: 6.8.0-40...

swtpm: Could not open UnixIO socket: Permission denied
❯ ERROR: Failed to start TPM emulator, reason: 0

Screenshots (optional)

No response

kroese commented 4 weeks ago

The quickest way would be to disable the TPM support:

environment:
      TPM: "N"

But it would be interesting to know why it gets enabled in the first place, because normally I disable it by default. Does your motherboard has dual cpu sockets? Because I believe thats the only case where I enable "secure boot" by default.

mapagm commented 4 weeks ago

Adding TPM: "N" in the compose file didn't resolve the problem - still the same error. My motherboard has 1 CPU socket.

kroese commented 4 weeks ago

Does your /storage folder contains a file called windows.mode? I think it has the contents windows_secure that enabled secure boot, if you change it to just windows it will continue.

Did you ever perform a manual install (with MANUAL=Y), because that is another condition on which it tries to enable secure boot.

mapagm commented 4 weeks ago

Well, there is no /storage folder at all... I have only /oem folder.

mapagm commented 4 weeks ago

I did everything from scratch, and now I have other error:

ERROR: KVM acceleration not availible (device file missing), this will cause a major loss of performance
ERROR: See the FAQ on how to diagnose the cause, or continue without KVM by setting KVM=N (not recommended).

But the output of the command kvm-ok i get:

INFO: /dev/kvm exists
KVM acceleration can be used
mapagm commented 3 weeks ago

Ok, I got it working! It's strange but it works only if I run the command: docker compose --file ./compose.yaml up as sudo... When I run it as a normal user I get errors as I mentioned above.

Any hint to get it working without sudo privileges?

1tbfree commented 3 weeks ago

add yourself to kvm group (i think) or sudo chmod +777 /dev/kvm