Coder Social home page Coder Social logo

Qnap - Container Station about windows HOT 9 CLOSED

dockur avatar dockur commented on June 25, 2024
Qnap - Container Station

from windows.

Comments (9)

dzinks avatar dzinks commented on June 25, 2024 2

Your action solved the problem.

Windows installs correctly on Qnap ContainerStation

Thank you for your help

from windows.

kroese avatar kroese commented on June 25, 2024 1

I think you can ignore that iptables message, as long as everything works okay.

from windows.

kroese avatar kroese commented on June 25, 2024

It looks like it has something to do with your CPU (Intel Atom). I enable Hyper-V extensions for faster acceleration, but that CPU is missing some instruction set for Hyper-V eVMCS (nested virtualization) it seems.

Maybe it is a bug in QEMU that thinks that all Intel CPUs have support for this feature, but this Intel Atom has not. Can you try if you add this variable to your compose file:

environment:
  CPU_FLAGS: "-hv-evmcs"

If it fixes the problem? Otherwise I will make a flag for you to disable all Hyper-V Enlightments in a new version.

from windows.

dzinks avatar dzinks commented on June 25, 2024

Once added, the behavior is the same

from windows.

kroese avatar kroese commented on June 25, 2024

Okay, I now added a flag to disable all Hyper-V features, that should fix your issue. Please re-pull the latest image and add this to your compose file:

environment:
  HV: "N"

from windows.

televisi avatar televisi commented on June 25, 2024

@kroese I have a similar issue with QNAP TVS-671, which uses Dual-Core (4 threads) Intel i3-4150 3.5 GHz with 16GB Memory

docker-compose I used:

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows11
    environment:
      - "VERSION: win11"
      - "RAM_SIZE: 1G"
      - "CPU_CORES: 1"
      - "DISK_SIZE: 100G"
      - "HV: N"
      - "CPU_FLAGS: -hv-evmcs"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 13389:3389/tcp
      - 13389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    volumes:
      - /share/Container-Data/windows11:/storage

Error logs:

Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
❯ Booting Windows using QEMU emulator version 8.2.1 ...
❯ ERROR: qemu-system-x86_64: eVMCS version range [1..1] is not supported by kernel (supported: [0..0])
qemu-system-x86_64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Operation not supported
❯ Starting Windows for Docker v2.04...
❯ For support visit https://github.com/dockur/windows

What do you think would be the problem here?

Thanks

from windows.

kroese avatar kroese commented on June 25, 2024

@televisi It looks like your environment flags are formatted wrongly.

Instead of:

    environment:
      - "VERSION: win11"
      - "RAM_SIZE: 1G"
      - "CPU_CORES: 1"
      - "DISK_SIZE: 100G"
      - "HV: N"
      - "CPU_FLAGS: -hv-evmcs"

Try this

    environment:
      - VERSION: "win11"
      - RAM_SIZE: "1G"
      - CPU_CORES: "1"
      - DISK_SIZE: "100G"
      - HV: "N"

from windows.

televisi avatar televisi commented on June 25, 2024

@kroese thanks for your reply!

I tried that combination, unfortunately, docker thrown this error:

failed to deploy a stack: validating /data/compose/47/v1/docker-compose.yml: services.windows.environment must be a mapping

I then changed it to the following:

    environment:
      - VERSION="win11"
      - RAM_SIZE="1G"
      - CPU_CORES="1"
      - DISK_SIZE="100G"
      - HV="N"

And the container thrown this error

> ERROR: Invalid value for DISK_SIZE: "100G"

I then changed it to the following:

    environment:
      - VERSION="win11"
      - RAM_SIZE="1G"
      - CPU_CORES="1"
      - DISK_SIZE=100G
      - HV="N"

And the container thrown this error

> ERROR: qemu-system-x86_64: -m "1G": Parameter 'size' expects a non-negative number below 2^64
Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
and exabytes, respectively.

I then changed it to the following:

    environment:
      - VERSION="win11"
      - RAM_SIZE=1G
      - CPU_CORES=1
      - DISK_SIZE=100G
      - HV="N"

And now, I'm going back to square 1 :(

❯ ERROR: qemu-system-x86_64: eVMCS version range [1..1] is not supported by kernel (supported: [0..0])
qemu-system-x86_64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Operation not supported

Surely I missed something here?

Thanks

from windows.

televisi avatar televisi commented on June 25, 2024

@kroese Okay, I removed all of the " sign now, and seems working now.

My updated docker compose now:

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows11
    environment:
      - VERSION=win11
      - RAM_SIZE=2G
      - CPU_CORES=1
      - DISK_SIZE=100G
      - HV=N
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 13389:3389/tcp
      - 13389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    volumes:
      - "/share/Container-Data/windows11:/storage"

Now, I have a different error - but I can access the UI now!

Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
❯ Booting Windows using QEMU emulator version 8.2.1 ...
3h3h3hBdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
BdsDxe: loading Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)

THANK YOU for your guidance!

from windows.

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.