qemu-system-x86_64: failed to initialize kvm: Permission denied #48

Closed
opened 2025-12-28 23:22:33 +01:00 by adam · 6 comments
Owner

Originally created by @0x8f701 on GitHub (Jun 24, 2020).

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). 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
adam closed this issue 2025-12-28 23:22:33 +01:00
Author
Owner

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

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

@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?

@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

@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

@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

@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

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

No dependencies set.

Reference: starred/Docker-OSX#48