mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 16:45:49 +03:00
[GH-ISSUE #188] BUG: RAM won't overallocate, easily fixed, but considering options! #134
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sickcodes on GitHub (Mar 14, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/188
I'm trying to run but i got this error
Unable to init server: Could not connect: Connection refused qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory QEMU 5.2.0 monitor - type 'help' for more information (qemu)Can anyone help me?
I am trying the start OSX with this command
sudo docker run --device /dev/kvm --device /dev/snd -v /tmp/X11-unix:/tmp/X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latestOriginally posted by @C9-Dev in https://github.com/sickcodes/Docker-OSX/issues/131#issuecomment-798802122
@sickcodes commented on GitHub (Mar 14, 2021):
@C9-Dev I am also getting this Issue, it is because the default RAM is 8GB, and in this case, the server has BELOW that amount and kills.
I am updating the image now, perhaps 90% of MemTotal's
8152908 kB?@sickcodes commented on GitHub (Mar 14, 2021):
user 100% of ram
90% ram
Or shall I set the default RAM to 2000 as that's the bare minimum anyway?
@yansigit commented on GitHub (Mar 18, 2021):
Hi, I'm still getting same issue
I've checked /dev/kvm permissions, xhost +, and if user in groups of libvirt, docker and kvm groups.
I'm not running in root account either.
I'm using these images
@sickcodes commented on GitHub (Mar 19, 2021):
How much RAM do you have
@yansigit commented on GitHub (Mar 19, 2021):
@sickcodes i have 16GB size rams
@sickcodes commented on GitHub (Mar 19, 2021):
Try now since I changed
github.com/sickcodes/Docker-OSX@f6e0bfa202Default RAM is 3GB, you can change to something like 5 or 10 because it will use all of it
-e RAM=5 \@sickcodes commented on GitHub (Mar 19, 2021):
Another suitable candidate for increasing available RAM:
sync; echo 3 > /proc/sys/vm/drop_cachesWhich clears your memory cache.
@sickcodes commented on GitHub (Mar 19, 2021):
I removed
RAM=maxand changed the default to 3^This causes RAM creep. I left an idling machine on for 10 hours and I used about 16 of RAM by the end of it.
2GB is also slightly too small and causes mouse freezes (personally experienced, and seen in https://github.com/sickcodes/Docker-OSX/issues/207)
From the following reddit comment:
https://www.reddit.com/r/Proxmox/comments/8sy4sd/unable_to_start_vm/e13ghrz/?utm_source=reddit&utm_medium=web2x&context=3
@sickcodes commented on GitHub (Mar 24, 2021):
sudo tee /proc/sys/vm/drop_caches <<< 3@gspagoni commented on GitHub (Aug 12, 2024):
How can i specify 16GB, can you post the full command please?