-
Notifications
You must be signed in to change notification settings - Fork 326
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
[Question]: How can i run with more than one CPU core instead of just 1 core on Linux with and AMD processor? #61
Comments
I get this same issue, however, I have never managed to get this to boot even with default docker compose. |
up |
For what it's worth I'm able to see more than 1 CPU core on my end (at least, according to "System Report" within Sonoma): Host system
Docker Compose Config image: dockurr/macos
cap_add:
- NET_ADMIN
devices:
- /dev/kvm
environment:
CPU_CORES: "16"
RAM_SIZE: "8G"
VERSION: "sonoma"
ports:
- 8006:8006
restart: unless-stopped
stop_grace_period: 2m
volumes:
- type: bind
source: /data/osx-storage
target: /storage |
|
Are you using nested virtualization by any chance? |
How can i check this? |
@Santosl2 If you are running your OS (and the container) inside a Virtual Machine or bare metal. |
Ooo, no |
i've found that it's all about clock sources. For me (Ryzen 5 4500u), it's only TSC that works. nested virtualization with kvm clocksource or other sources like HPET does not work. If anyone wondering, you can check your clock source using Manually switching to TSC with grub's setting GRUB_CMDLINE_LINUX="tsc=reliable clocksource=tsc" fixed multiple cores issue for me. It was HPET before thou. And be careful with boot settings! Keep in mind that it won't work in nested virtualization. |
Is your question not already answered in the FAQ?
Is this a general question and not a technical issue?
Question
So i'm trying run on Linux, my PC config is:
However, when i try to use more than one CPU core, macOS doesn't boot and gets stuck on this screen:
When i change
CPU_CORES
to ONE works fineMy docker.compose.yml
The text was updated successfully, but these errors were encountered: