windows icon indicating copy to clipboard operation
windows copied to clipboard

Can't get it to boot to my locally dowloaded iso, keeps trying to download from cloud

Open walshak opened this issue 1 year ago • 2 comments

Operating system

Linux mint 22

Description

I have tired different iterations of this section, 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'. - ${HOME}/Desktop/uuu/t/tiny11.iso:/custom.iso # Uncomment to use a custom Windows ISO. If specified, 'VERSION' (e.g. 'tiny11') will be ignored.

to get it to boot up froma local iso, but it keeps going online to source for a boot image

Docker compose

sudo docker compose --file ./compose.yaml up

Docker log

❯ Starting Windows for Docker v3.12... ❯ For support visit https://github.com/dockur/windows ❯ CPU: Intel Core TM i3 8130U CPU | RAM: 3/8 GB | DISK: 45 GB (ext4) | HOST: 6.8.0-39...

❯ Downloading Tiny 11 from cnxiaobai.com...

 0K                                      0%  220K=0.1s


 0K
 0K ....❯ Starting Windows for Docker v3.12...

❯ For support visit https://github.com/dockur/windows ❯ CPU: Intel Core TM i3 8130U CPU | RAM: 3/8 GB | DISK: 45 GB (ext4) | HOST: 6.8.0-39...

❯ Downloading Tiny 11 from cnxiaobai.com...

 0K ........ .......                     0% 75.8K=3m33s


 0K ,,,,,,,, ,,,,,,,. ........ .......   0% 71.1K=3m47s


 0K ,,,,,,,, ,,,,,,,, ,,,,,,,, ,,,,,,,.  0% 3.19M 19h3m

The following is my yaml file


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: "3G" # 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'.
      - ${HOME}/Desktop/uuu/t/tiny11.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).```


### Screenshots (optional)

_No response_

walshak avatar Aug 17 '24 11:08 walshak

set VERSION: "custom.iso"

xsy420 avatar Aug 17 '24 20:08 xsy420

Try ~ or /home/your-username instead of ${HOME}

MMaaxx3253 avatar Aug 18 '24 19:08 MMaaxx3253

Rename your locally downloaded "tiny11.iso" to "custom.iso". It worked on me. btw I am using Unraid.

ryu091 avatar Aug 27 '24 06:08 ryu091

Thanks Guys @ryu091 @MMaaxx3253 and @xsy420 I applied all of you suggestions, no sure whic one of them was the real solution, but it worked. thanks

walshak avatar Sep 04 '24 11:09 walshak