Giter Site home page Giter Site logo

windows-arm's People

Contributors

kroese avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-arm's Issues

Failed Download

I finished my docker compose with this configuration:

version: "3"
services:
  windows:
    container_name: windows
    image: dockurr/windows-arm
    devices:
      - /dev/tty1
    volumes:
      - /var/win:/storage
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    environment:
      RAM_SIZE: "4G"
      CPU_CORES: "2"
      DISK_SIZE: "25G"
      VERSION: "win10"

    networks:
      - net-windows

networks:
  net-windows:
    driver: bridge

I'm not user /dev/kvm caused my macbook not support it, I used /dev/tty1.
but, during download file to microsofr server, I found error like this:

ERROR: Failed to download http://dl.delivery.mp.microsoft.com/filestreamingservice/files/0796d7b4-b59c-4aac-9b29-64666728c3e3/19045.3803.231204-0204.22h2_release_svc_refresh_CLIENTCONSUMER_RET_A64FRE_en-us.esd , reason: 3

Increasing hardware specs

Hello I have tried to add the environment: with RAM and CPU request, and it got compose errors saying can't be added, i found an update for docker that says use this

      resources:
        limits:
          cpus: "4.0" # Adjust as needed
  

None of these seem to be working as I am running on a P{ineTab2 with 4 CPUs, and it seems locked to just 2 CPUs at the moment.

Can you show an example of where to put it for KVM to translate it? I am not finding any working references.

[Bug]: awk error when trying to start 1.14

Is there an existing issue for this?

  • I have searched the existing issues

Machine specifications

RaspberryPi 5 / 8 GB

Operating system

Debian 12 (stable)

Docker version

26.0.1

Description

Using version 1.12 it works but when trying to start 1.14 it fails.

Docker compose

services:
  app:
    image: dockurr/windows-arm:1.14
    volumes:
      - ./data/storage:/storage
    environment:
      - VERSION=win11
      - RAM_SIZE=4G
      - CPU_CORES=2
      - DISK_SIZE=128G
    ports:
      - 3389:3389
      - 3389:3389/udp
    restart: on-failure
    devices:
      - /dev/kvm
    stop_grace_period: 2m
    cap_add:
      - NET_ADMIN

Docker log

app-1  | ❯ Starting Windows for Docker v1.14...
app-1  | ❯ For support visit https://github.com/dockur/windows-arm
app-1  | 
app-1  | reset.sh: line 47: qemu-system-x86_64: command not found
app-1  | ❯ ERROR: Status 127 while: awk '{ print $NF }' (line 47/11)
app-1  | ❯ ERROR: Status 127 while: VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }') (line 47/11)

Screenshots (optional)

No response

Cant running on RK3399 Board with Error "kvm_arm_vcpu_init failed: Invalid argument"

This is Docker log
❯ Starting Windows for Docker v1.09...
❯ For support visit https://github.com/dockur/windows-arm

❯ Downloading product information from Microsoft...
❯ Downloading Windows 10 for ARM...
/storage/tmp/win10arm64.esd 77%[==========================================> ] 2.65G 3.02MB/s in 17m 5s
/storage/tmp/win10arm64.esd 100%[+++++++++++++++++++++++++++++++++++++++++++============>] 3.41G 1.34MB/s in 10m 54s
❯ Extracting Windows 10 for ARM bootdisk...
❯ Extracting Windows 10 for ARM environment...
❯ Extracting Windows 10 for ARM setup...
❯ Extracting Windows 10 for ARM image...
❯ Adding XML file for automatic installation...
❯ Building Windows 10 for ARM image...
❯ Creating a 64G growable disk image in raw format...
❯ Booting Windows using QEMU emulator version 8.2.1 ...
❯ ERROR: kvm_arm_vcpu_init failed: Invalid argument

how can i solve this problem?

no such file: /dev/kvm

exec "docker-compose up" on mac OS with m1 chip, then show the follow error:

Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory

can i run it on my mac?

ERROR BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK "

Hi!

This product very interesting for users who use MacOs M chip ^)

Iam run this command

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

and them result

BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
2024-03-04 17:06:54 BdsDxe: loading Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)
2024-03-04 17:06:54 BdsDxe: starting Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)

Raspberry Pi 5

Hi!

I've installed dockur in a Raspberry Pi 5 successfully, but when I start windows I only have a resolution of 800X600 and it does not allow me to change it, have anyone encountered this issue?

Cheers

Unable to deploy on ARM server

I use the docker command line provided by this project on my ARM server, and the system prompts "Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory."

Then I used the "cpu-checker" command to query and it showed "FATAL: Module msr not found in directory /lib/modules/6.2.0-39-generic". So is it because my server does not support KVM?

Startup error after modifying configuration.

When I added configuration to Docker Compose.yml to modify RAM and CPU, there was a startup error, whether it was the first creation or modification after creation.

    environment:
      VERSION: "win11"
      RAM_SIZE: "4G"
      CPU_CORES: "4"
root@orangepi5:/root/win# docker-compose up
[+] Building 0.0s (0/0)                                                                                                      docker:default
[+] Running 1/1
 ✔ Container windows  Recreated                                                                                                        0.2s 
Attaching to windows
windows  | ❯ Starting Windows for Docker v1.08...
windows  | ❯ For support visit https://github.com/dockur/windows-arm
windows  | 
windows  | ❯ Booting Windows using QEMU emulator version 8.2.1 ...
windows  | ❯ ERROR: qemu-system-aarch64: Failed to put registers after init: Invalid argument
windows exited with code 0

If the default configuration is used, there will be no errors.

Error QEMU

Hello.
I'm trying to install on the orange pi 3b. Running casaOs. But it is showing the following error:

windows | ❯ Starting Windows for Docker v1.10...
windows | ❯ For support visit https://github.com/dockur/windows-arm
windows |
windows | �[1;31m❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.�[0m
windows | �[1;31m❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).�[0m

This error occurs after unzipping the windows11 image.
Previously, I tried to install the x64 version (I thought it was this version) and it just shows great slowness, but Windows actually goes to the installation part.

I ran sudo kvm-ok and it showed no errors.

windows | ❯ Starting Windows for Docker v1.10...
windows | ❯ For support visit https://github.com/dockur/windows-arm
windows |
windows | �[1;34m❯ �[1;36mDownloading product information from Microsoft...�[0m
windows | �[1;34m❯ �[1;36mDownloading Windows 11 for ARM...�[0m
windows |
windows | 0K ........ ........ ........ ........ 0% 22.7M 3m38s
windows | 5079040K ........ ........ ........ ........ 99% 31.9M 0s
windows | 5111808K ....... 100% 25.0M=3m2s
windows |
windows | �[1;34m❯ �[1;36mExtracting Windows 11 for ARM bootdisk...�[0m
windows | �[1;34m❯ �[1;36mExtracting Windows 11 for ARM environment...�[0m
windows | �[1;34m❯ �[1;36mExtracting Windows 11 for ARM setup...�[0m
windows | �[1;34m❯ �[1;36mExtracting Windows 11 for ARM image...�[0m
windows | �[1;34m❯ �[1;36mAdding XML file for automatic installation...�[0m
windows | �[1;34m❯ �[1;36mBuilding Windows 11 for ARM image...�[0m
windows | �[1;34m❯ �[1;36mCreating a 64G growable disk image in raw format...�[0m
windows | �[1;31m❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.�[0m
windows | �[1;31m❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).�[0m
windows | ❯ Starting Windows for Docker v1.10...
windows | ❯ For support visit https://github.com/dockur/windows-arm
windows |
windows | �[1;31m❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.�[0m
windows | �[1;31m❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).�[0m
windows | ❯ Starting Windows for Docker v1.10...
windows | ❯ For support visit https://github.com/dockur/windows-arm
windows |
windows | �[1;31m❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.�[0m
windows | �[1;31m❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).�[0m
windows | ❯ Starting Windows for Docker v1.10...
windows | ❯ For support visit https://github.com/dockur/windows-arm

How I fix this problem on my k8s?

Problem:
❯ Starting Windows for Docker v...
❯ For support visit https://github.com/dockur/windows-arm

RTNETLINK answers: File exists
❯ ERROR: Failed to create bridge. Please add the following setting to your container: --cap-add NET_ADMIN

My Deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows
spec:
replicas: 1
selector:
matchLabels:
app: windows
template:
metadata:
labels:
app: windows
spec:
containers:
- name: windows
image: dockurr/windows-arm
imagePullPolicy: Always
ports:
- containerPort: 8006
name: http
- containerPort: 3389
name: rdp
resources:
requests:
memory: "400Mi"
cpu: "20m"
limits:
memory: "4Gi"
cpu: "1500m"
securityContext:
privileged: true
capabilities:
add:
- NET_ADMIN
env:
- name: VERSION
value: "win11"
- name: MANUAL
value: "Y"
- name: RAM_SIZE
value: "4G"
- name: CPU_CORES
value: "2"
volumeMounts:
- name: windows-data
mountPath: /storage
restartPolicy: Always
volumes:
- name: windows-data
persistentVolumeClaim:
claimName: windows-data-pvc

Erroneous disk space error after downloading

services:
  windows:
    container_name: windows
    image: dockurr/windows-arm
    #devices:
      #- /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    environment:
      - RAM_SIZE="2G"
      - CPU_CORES="2"
      - DISK_SIZE="45G"
    volumes:
      - "/path/to/my/data/folder:/storage"
    stop_grace_period: 2m
    restart: unless-stopped

It attempts to download the .esd file but errors out and restarts the download. Error is:

ERROR: Not enough free space in /storage, have 9 GB available but need at least 15 GB.

The path to my /storage is a 1TB drive. Why would such an error be thrown up?

Any way to run on MacOS ?

I installed docker, and Qemu, libvirt, but there is no Kvm ports for MacOS afaik...
And the container stops with the following message:

% docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm

Unable to find image 'dockurr/windows-arm:latest' locally
latest: Pulling from dockurr/windows-arm
eed0d719505a: Pull complete 
31b07b5697c1: Pull complete 
ba02d43f4705: Pull complete 
40c62c6cfc08: Pull complete 
2d881a14a102: Pull complete 
3351de803db4: Pull complete 
f243655be2a5: Pull complete 
Digest: sha256:5cebed2e21525c4cc425f17c5c706cb69cbfe3d43bc240998ef1c1c6db96bc51
Status: Downloaded newer image for dockurr/windows-arm:latest
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

So I removed the following parameter:
--device=/dev/kvm

And then it fails while requiring to start with an option I'm not sure to understand:

% docker run -it --rm -p 8006:8006 --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm 
❯ Starting Windows for Docker v1.00...
❯ For support visit https://github.com/dockur/windows-arm

❯ Downloading product information from Microsoft...
❯ Downloading Windows 11 for ARM...
/storage/tmp/win11a 100%[===================>]   4.88G  38.3MB/s    in 2m 24s  
❯ Extracting Windows 11 for ARM bootdisk...
❯ Extracting Windows 11 for ARM environment...
❯ Extracting Windows 11 for ARM setup...
❯ Extracting Windows 11 for ARM image...
❯ Adding XML file for automatic installation...
❯ Building Windows 11 for ARM image...
❯ 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 enable it, or continue without KVM by setting KVM=N (not recommended).

Do you think about any solution ?
Thank you !

ERROR: Status 1 while: ip tuntap add dev "$VM_NET_TAP" mode tap (line 163/295)

ERROR: Status 1 while: ip tuntap add dev "$VM_NET_TAP" mode tap (line 163/295)

root@orangepi5:~# docker run -it --rm -p 8007:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm
❯ Starting Windows for Docker v1.07...
❯ For support visit https://github.com/dockur/windows-arm

❯ Downloading product information from Microsoft...
❯ Downloading Windows 11 for ARM...
/storage/tmp/win11arm64.esd   100%[=================================================>]   4.88G  7.99MB/s    in 10m 48s
❯ Extracting Windows 11 for ARM bootdisk...
❯ Extracting Windows 11 for ARM environment...
❯ Extracting Windows 11 for ARM setup...
❯ Extracting Windows 11 for ARM image...
❯ Adding XML file for automatic installation...
❯ Building Windows 11 for ARM image...
❯ Creating a 64G growable disk image in raw format...
open: No such device
❯ ERROR: Status 1 while: ip tuntap add dev "$VM_NET_TAP" mode tap (line 163/295)

OS:Linux orangepi5 5.10.110-rockchip-rk3588 #1.1.6 SMP Thu Jun 1 21:23:54 CST 2023 aarch64 GNU/Linux(debian12)
I'm just a rookie, I don't know what this is about, I don't know how to do it, thanks.

[Question]: how to run this on M1 pro

Question

When I run "docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm:1.13" , it says "docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.".
Any idea about enable kvm or install kvm on Apple Silicon Platform?

Doesn't run on OracleCloud ARM?

$ sudo kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/6.5.0-1019-oracle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.