mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 13:53:28 +01:00
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory. #297
Reference in New Issue
Block a user
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 @mattpackwood on GitHub (Dec 19, 2021).
OS related issued, please help us identify the issue by posting the output of this
uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
I get:
@sickcodes commented on GitHub (Dec 21, 2021):
Hey Matt, your device/service/VM unfortunately does not support KVM.
You will need either a dedicated or compute optimized instance, for example.
@mattpackwood commented on GitHub (Dec 22, 2021):
Can you make a suggestion on what OS to use? I am running VMWare ESXi.
@mattpackwood commented on GitHub (Dec 26, 2021):
I turned on Hardware virtualization, now I am getting:
@sickcodes commented on GitHub (Jan 5, 2022):
Cannot allocate memoryBut it also appears that the server does not support nested virtualization
@mattpackwood commented on GitHub (Jan 6, 2022):
I fixed that, turned it on in the UEFI / VM Settings...
@mattpackwood commented on GitHub (Jan 12, 2022):
Is there an "optimum" OS I should run this on?
@mattpackwood commented on GitHub (Jan 26, 2022):
@sickcodes What OS do people "typically" use?
@sickcodes commented on GitHub (Jan 26, 2022):
Arch (btw), Ubuntu
In the tests folder is my exact script to create the upload images via digital ocean
@mattpackwood commented on GitHub (Jan 26, 2022):
I will give that a try!
@mattpackwood commented on GitHub (Jan 28, 2022):
I set up a Droplet, ran the test.sh script and got "this"

Now I need to work out how to get VNC to connect....
@mattpackwood commented on GitHub (Feb 3, 2022):
@sickcodes No luck with VNC, are there any instructions?
@sickcodes commented on GitHub (Mar 11, 2022):
test.sh makes every image and takes screenshots of every image working.
So they're definitely working, albeit in a virtual framebuffer :)
The best VNC to use is native qemu VNC: https://github.com/sickcodes/Docker-OSX#building-a-headless-container-which-allows-insecure-vnc-on-localhost-for-local-use-only