Comments (9)
Your action solved the problem.
Windows installs correctly on Qnap ContainerStation
Thank you for your help
from windows.
I think you can ignore that iptables message, as long as everything works okay.
from windows.
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.
Once added, the behavior is the same
from windows.
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.
@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.
@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.
@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.
@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)
- Docker compose file error HOT 1
- Nvidia container toolkit HOT 1
- Is there a way to deploy an app on the image post install? HOT 3
- Works with BlueIris on Unraid and Unraid Vlans. HOT 1
- Cannot Boot Win 11 Docker v2.04 HOT 7
- pci passthrough possible for smbus? HOT 1
- mknod: /dev/vhost-net AND mknod: /dev/net/tun Operation not permitted HOT 5
- run other OS HOT 3
- ERROR: Status 3 while: iptables -t nat -A POSTROUTING -o "$VM_NET_DEV" -j MASQUERADE (line 178/301) HOT 1
- Option to disable networking HOT 4
- failed to deploy when trying to pull an IP address from router DHCP server issue HOT 5
- Multiple disks and custom credentials? HOT 3
- [Feature] Environment option for VirtIO Drivers HOT 1
- [Feature] Add option to set noVNC password HOT 1
- [Improvements] Enhance Windows performance HOT 5
- Add windows for ARM support HOT 1
- iptables Error HOT 3
- 80 failed (97: Address family not supported by protocol) HOT 8
- Windows 8.1 error. rs: Assertion `ret < cpu->num_ases && ret >= 0' failed. HOT 3
- RDP Session Closing after open Discord e.g HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows.