[GH-ISSUE #55] qemu-system-x86_64: failed to initialize kvm: Permission denied #46

Closed
opened 2026-02-27 22:07:38 +03:00 by kerem · 6 comments
Owner

Originally created by @0x8f701 on GitHub (Jun 24, 2020).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/55

ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-LW022K2LIb: Connection refused
Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied

Originally created by @0x8f701 on GitHub (Jun 24, 2020). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/55 ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-LW022K2LIb: Connection refused Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize kvm: Permission denied
kerem closed this issue 2026-02-27 22:07:38 +03:00
Author
Owner

@0x8f701 commented on GitHub (Jun 24, 2020):

I followed all the instructions but still it gives me this error

<!-- gh-comment-id:648768535 --> @0x8f701 commented on GitHub (Jun 24, 2020): I followed all the instructions but still it gives me this error
Author
Owner

@sickcodes commented on GitHub (Jun 24, 2020):

OS?

<!-- gh-comment-id:648786844 --> @sickcodes commented on GitHub (Jun 24, 2020): OS?
Author
Owner

@0x8f701 commented on GitHub (Jun 24, 2020):

@sickcodes sorry it's Linux mint v19.3 cinamon

<!-- gh-comment-id:648864732 --> @0x8f701 commented on GitHub (Jun 24, 2020): @sickcodes sorry it's Linux mint v19.3 cinamon
Author
Owner

@sickcodes commented on GitHub (Jun 24, 2020):

try all the troubleshooting instructions
namely, try
sudo chmod 666 /dev/kvm

<!-- gh-comment-id:648928212 --> @sickcodes commented on GitHub (Jun 24, 2020): try all the troubleshooting instructions namely, try `sudo chmod 666 /dev/kvm`
Author
Owner

@0x8f701 commented on GitHub (Jun 26, 2020):

@sickcodes works like a charm thanks

<!-- gh-comment-id:650294192 --> @0x8f701 commented on GitHub (Jun 26, 2020): @sickcodes works like a charm thanks
Author
Owner

@netsafe commented on GitHub (Nov 17, 2022):

The only right way is to add the unprivileged user to kvm group, do not make chmod 666 ! Instead, do this as a root
usermod -a -G kvm yourUserName

<!-- gh-comment-id:1319054445 --> @netsafe commented on GitHub (Nov 17, 2022): The only right way is to add the unprivileged user to kvm group, do **not** make chmod 666 ! Instead, do this as a root `usermod -a -G kvm yourUserName`
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#46
No description provided.