docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.
Any help would be much appreciated.
Originally created by @tomcallaghan97 on GitHub (Jun 9, 2022).

Tried to run
_docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx_
But getting the following errors:
_kvm version too old
qemu-system-x86_64: failed to initialize kvm: Inappropriate ioctl for device
qemu-system-x86_64: falling back to tcg_
I am running docker inside of linux ec2 instance.
I also tried running this
_docker run -it \
--device /dev/kvm \
-p 50922:10022 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
sickcodes/docker-osx:latest_
But get this error
_docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory._
Any help would be much appreciated.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tomcallaghan97 on GitHub (Jun 9, 2022).
Tried to run
docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
But getting the following errors:
kvm version too old
qemu-system-x86_64: failed to initialize kvm: Inappropriate ioctl for device
qemu-system-x86_64: falling back to tcg
I am running docker inside of linux ec2 instance.
I also tried running this
docker run -it
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
sickcodes/docker-osx:latest
But get this error
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.
Any help would be much appreciated.
@dumbasPL commented on GitHub (Jun 13, 2022):
AFAIK ec2 does not support virtualization