[GH-ISSUE #170] qemu error #121

Closed
opened 2026-02-27 22:08:05 +03:00 by kerem · 3 comments
Owner

Originally created by @PerennialWheatSA on GitHub (Mar 8, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/170

system specs:
cpu: amd ryzen 9 5900x
gpu: rtx 3080
motherboard chipset: X570
OS: arch linux

When i run the image with
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

I get the error

https://gist.github.com/PerennialWheat/dd0dfdfcbb0fbf41338e0ab1a35e75af

Originally created by @PerennialWheatSA on GitHub (Mar 8, 2021). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/170 system specs: cpu: amd ryzen 9 5900x gpu: rtx 3080 motherboard chipset: X570 OS: arch linux When i run the image with `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` I get the error https://gist.github.com/PerennialWheat/dd0dfdfcbb0fbf41338e0ab1a35e75af
kerem closed this issue 2026-02-27 22:08:05 +03:00
Author
Owner

@sickcodes commented on GitHub (Mar 8, 2021):

Add yourself to kvm group or chmod 666 /dev/kvm but post the output of this and you’ll be able to see

uname -a \
; 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
<!-- gh-comment-id:792996951 --> @sickcodes commented on GitHub (Mar 8, 2021): Add yourself to kvm group or chmod 666 /dev/kvm but post the output of this and you’ll be able to see ```bash uname -a \ ; 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 ```
Author
Owner

@sickcodes commented on GitHub (Mar 8, 2021):

Most conceivable errors are covered here:

https://github.com/sickcodes/Docker-OSX#troubleshooting

In your case, add yourself to the relevant groups and start libvirtd etc should be fine!

If you don’t have a screen, use one one of the headless examples below the original example :)

<!-- gh-comment-id:792998810 --> @sickcodes commented on GitHub (Mar 8, 2021): Most conceivable errors are covered here: https://github.com/sickcodes/Docker-OSX#troubleshooting In your case, add yourself to the relevant groups and start libvirtd etc should be fine! If you don’t have a screen, use one one of the headless examples below the original example :)
Author
Owner

@PerennialWheatSA commented on GitHub (Mar 8, 2021):

Add yourself to kvm group or chmod 666 /dev/kvm but post the output of this and you’ll be able to see

uname -a \
; 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

Thank you it worked

<!-- gh-comment-id:793014377 --> @PerennialWheatSA commented on GitHub (Mar 8, 2021): > Add yourself to kvm group or chmod 666 /dev/kvm but post the output of this and you’ll be able to see > > ```shell > uname -a \ > ; 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 > ``` Thank you it worked
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#121
No description provided.