qemu error #122

Closed
opened 2025-12-28 23:25:25 +01:00 by adam · 3 comments
Owner

Originally created by @PerennialWheatSA on GitHub (Mar 8, 2021).

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). 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
adam closed this issue 2025-12-28 23:25:25 +01: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
@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 :)

@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

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#122