Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 2022 vm is really slow and cpu is 100% pinned #848

Open
MindlessGamingDE opened this issue Nov 4, 2024 · 3 comments
Open

windows 2022 vm is really slow and cpu is 100% pinned #848

MindlessGamingDE opened this issue Nov 4, 2024 · 3 comments

Comments

@MindlessGamingDE
Copy link

Operating system

ubuntu 24.04

Description

the windows vm is really slow and the cpu cores of the vm are 100% all the time even im idle

Docker compose

GNU nano 7.2 docker-compose.yml services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "2022"
VMX: "Y"
DISK_SIZE: "50G"
RAM_SIZE: "6G"
CPU_CORES: "2"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
volumes:
- /root/windows:/storage

Docker log

❯ Starting Windows for Docker v4.00...
❯ For support visit https://github.com/dockur/windows
❯ CPU: AMD Ryzen 7 2700X Eight Core Processor | RAM: 7/8 GB | DISK: 42 GB (ext4) | HOST: 6.8.0-48...

❯ Warning: your configured RAM_SIZE of 6 GB is very close to the 7 GB of memory available, please consider a lower value.
❯ Booting Windows using QEMU v9.1.0...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,7CCD9614-2FC1-4769-8343-4017DD677380,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,7CCD9614-2FC1-4769-8343-4017DD677380,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
❯ Windows started succesfully, visit http://localhost:8006/ to view the screen...
root@ubuntu:~/windows#

Screenshots (optional)

grafik
grafik

@abbbi
Copy link

abbbi commented Nov 4, 2024

not sure if passed, but there could be the possibilty to add the hyperv extensios to the -cpu call that often seem to help: https://www.qemu.org/docs/master/system/i386/hyperv.html

try something like:

     environment:
       VERSION: "win11"
       ARGUMENTS: "-cpu host,hv_relaxed,hv_vpindex,hv_time"

@kroese
Copy link
Contributor

kroese commented Nov 4, 2024

@abbbi Hyper-V extensions are already enabled by default. You can see the flags that are passed by setting:

     environment:
       DEBUG: "Y"

so the only thing worth trying might be to disable Hyper-V, which can be done like this:

     environment:
       HV: "N"

@MindlessGamingDE
Copy link
Author

Hey sorry for the late response..

Ill try it out.. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants