Comments (5)
Thanks, the funny thing is I already used that article to optimize the container. All Hyper-V enlightments are already enabled. That causes problems on some machines, but you can disable enlightments by setting HV: "N"
in the compose file.
The only thing I did not add is hugepages support, because I read very conflicting opinions on wether it was a good idea or not. It seems to be very dependant on the actual machine if enabling it makes it faster or slower. So to be on the safe side, I did not implement that feature yet.
from windows.
There already exists an environment variable to add extra QEMU parameters, so you can already use hugepages with something like:
ARGUMENTS: "-mem-prealloc -mem-path /storage/hugepages/"
So adding an environment variable especially for hugepages would not change much, except that it could look like:
HUGEPAGES: "/storage/hugepages/"
Which is only slightly shorter.
from windows.
Is it possible to add a docker environment variable and set the default to "no"?
from windows.
I've tried it, with
ARGUMENTS: "-mem-prealloc -mem-path /storage/hugepages/"
But get this error in docker.
windows | β― ERROR: qemu-system-x86_64: can't open backing store /storage/hugepages/ for guest RAM: Is a directory
My complete docker-compose.yml looks like this
version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
environment:
VERSION: "ltsc10"
RAM_SIZE: "12G"
CPU_CORES: "6"
DISK_SIZE: "256G"
ARGUMENTS: "-mem-prealloc -mem-path /storage/hugepages/"
volumes:
- ./disks:/storage
from windows.
It expects it to be a file, and not a directory. So maybe create an empty file of 32 GB for example (by using the linux fallocate
command) and then call it hugepages
and remove the last slash so it reads -mem-path /storage/hugepages
.
But I never worked with hugepages so I am also just guessing.
from windows.
Related Issues (20)
- Permanent auto admin login to containers + other defaults = large security bug
- Wrong time in VM, keeps resetting HOT 5
- How can I run this on Apple M1 Max Macbook? HOT 2
- [Bug]: Error when pausing container: OCI runtime pause failed: timeout of 10s reached on Fedora 40 with Docker Compose
- docker compose error HOT 5
- Cannot pass sd-card to container HOT 3
- `C:\\oem\install.bat` not executing HOT 1
- Add ipvlan L2 installer support (as macvlans are incompatible with Wifi)
- Unable to connect through RDP: Connection reset by peer HOT 2
- Access Shared folders from Unraid
- [Question]: How Can I config ipv6 address on win7 or win11?
- β― ERROR: Timeout while waiting for QEMU to boot the machine![Bug]:
- [Bug]: ERROR: Timeout while waiting for QEMU to boot the machine
- [Feature]: New OS
- [Question]: WSL sharing Folder HOT 2
- Stuck on a boot circle (Win10) HOT 2
- [Question]: Can i passthrough my IGPU intel ?
- Container restarts every hour HOT 1
- [Feature]: Pterodactyl Egg
- Language of the input keyboard is not respected HOT 2
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.