Giter Club home page Giter Club logo

Comments (15)

bywenshu avatar bywenshu commented on August 22, 2024 1

May I know where to add KVM=N?

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024 1

Thank you, that works.

from windows-arm.

kroese avatar kroese commented on August 22, 2024 1

You mean Oracle Cloud Ampere A1 server? It will not be possible to enable KVM because Oracle does not allow that on VPS. Almost no cloud provider does allow KVM.

from windows-arm.

kroese avatar kroese commented on August 22, 2024

Seems like you to install some kernel module, but if you mean by server a cloud server, then its likely your provider disabled KVM.

You can still run the container by adding KVM=N variable to your compose/run command. But it will run much more slowly without hardware acceleration for the CPU.

from windows-arm.

kroese avatar kroese commented on August 22, 2024

-e "KVM=N"

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024
root@warm2:~/Warm# docker-compose up -d --e "KVM=N"
WARNING: using --exit-code-from implies --abort-on-container-exit
ERROR: No service named "KVM=N" was found in your compose file.
ERROR: 2
root@warm2:~/Warm# docker-compose up -d --e KVM=N
WARNING: using --exit-code-from implies --abort-on-container-exit
ERROR: No service named "KVM=N" was found in your compose file.
ERROR: 2

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024
version: "3"
services:
  windows:
    image: dockurr/windows-arm
    container_name: windows
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    environment:
      VERSION: "win11"
      RAM_SIZE: "8G"
      CPU_CORES: "4"
      DISK_SIZE: "160G"

    stop_grace_period: 2m
    restart: on-failure

from windows-arm.

kroese avatar kroese commented on August 22, 2024

You said "Docker commandline" before, so I thought u were using the run command not a compose file. If you have a compose file you must add:

environment:
  KVM: "N"

to it instead.

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024

Sorry about that…

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024
root@warm2:~/Warm# docker-compose up -d
Removing windows
Recreating 2fafd7f8d605_windows ... error

ERROR: for 2fafd7f8d605_windows  Cannot start service windows: error gathering device information while adding custom device "/dev/kvm": no such file or directory

ERROR: for windows  Cannot start service windows: error gathering device information while adding custom device "/dev/kvm": no such file or directory
ERROR: Encountered errors while bringing up the project.

from windows-arm.

kroese avatar kroese commented on August 22, 2024

Remove

    devices:
      - /dev/kvm

from windows-arm.

kroese avatar kroese commented on August 22, 2024

Without KVM it will run at 10% of the speed, so it will be so slow that its not usable. The only real solution is to find out why your server does not have KVM.

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024

My server is ORACLE ARM VPS.

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024

Can I "install" KVM to it?

from windows-arm.

bywenshu avatar bywenshu commented on August 22, 2024

All right... Thanks.

from windows-arm.

Related Issues (20)

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.