dockur / windows-arm

Windows for ARM in a Docker container.
MIT License
1.08k stars 101 forks source link

[Bug]: ERROR: Failed to download and ERROR: Invalid download link on macOS #211

Closed geerlingguy closed 3 days ago

geerlingguy commented 3 days ago

Operating system

macOS Sonoma 14.6.1

Description

I ran docker run -it --rm -p 8006:8006 --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm, and got a couple error messages:

...
/storage/tmp/win11arm64.esd    99%[+++++++++++++++++++++++++++++++++++++++++++++++++ ]   3.73G  --.-KB/s    in 0s      
/storage/tmp/win11arm64.esd    99%[+++++++++++++++++++++++++++++++++++++++++++++++++ ]   3.73G  --.-KB/s    in 0s      
❯ ERROR: Failed to download http://dl.delivery.mp.microsoft.com/filestreamingservice/files/a0a4e466-0094-4903-9d46-6421eb4b1e83/26100.2033.241004-2336.ge_release_svc_refresh_CLIENTCONSUMER_RET_A64FRE_en-us.esd , network failure!
❯ Failed to download Windows 11, will try another mirror now...
❯ Downloading Windows 11 from massgrave.dev...
/storage/tmp/win11arm64.iso       [ <=>                                              ]  20.58K  --.-KB/s    in 0.001s  
❯ ERROR: Invalid download link: https://drive.massgrave.dev/SW_DVD9_Win_Pro_11_23H2.2_Arm64_English_Pro_Ent_EDU_N_MLF_X23-68023.ISO (is only 21070 bytes?). Please report this at https://github.com/dockur/windows-arm/issues.
❯ Failed to download Windows 11, will try another mirror now...
❯ Downloading Windows 11 from bobpony.com...
/storage/tmp/win11arm64.iso   100%[=================================================>]   5.89G  50.8MB/s    in 1m 56s  
❯ Extracting Windows 11 image...
❯ Adding drivers to image...
❯ Adding win11arm64.xml for automatic installation...
❯ Building Windows 11 image...

Since it asked me to report the issue, I thought I would :)

I also got the KVM error message:

❯ Creating a 64G growable disk image in raw format...
❯ ERROR: KVM acceleration not available (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 added -e KVM=N to get past that. I'm okay with a slowdown to test this on macOS ;)

The second time I tried, it did not have an error downloading from Microsoft's server.

❯ Downloading product information from Microsoft server...
❯ Downloading Windows 11...
/storage/tmp/win11arm64.esd   100%[=================================================>]   3.73G  75.2MB/s    in 50s
...

Docker compose

docker run -it --rm -p 8006:8006 -e KVM=N --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm

Docker log

N/A

Screenshots (optional)

No response

kroese commented 3 days ago

It seems that the fallback download mirror at massgrave.dev changed the URL for the ARM image. So I will update the URL in the next version.

As for why the direct Microsoft download failed, it's hard to tell, might be some temporary issue on their end.

Be aware that the slowdown without KVM will be pretty big. It will basicly need to emulate every instruction without hardware acceleration. This container is more aimed at Raspberry Pi's (which have KVM).

geerlingguy commented 3 days ago

Definitely, just wanted to see the macOS experience as a point of comparison :)

kroese commented 3 days ago

Fixed via https://github.com/dockur/windows-arm/pull/213

Whitelee20151004 commented 1 day ago

当然,只是想看看 macOS 的体验作为比较点 :)

why the speed you downloaded the iso was so fast? @geerlingguy

geerlingguy commented 1 day ago

@Whitelee20151004 - I guess good mirrors and a fiber Internet connection?