Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GopherJ opened this issue Jun 24, 2020 · 6 comments
Closed

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

GopherJ opened this issue Jun 24, 2020 · 6 comments

Comments

@GopherJ
Copy link

GopherJ commented 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

@GopherJ
Copy link
Author

GopherJ commented Jun 24, 2020

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

@sickcodes
Copy link
Owner

OS?

@GopherJ
Copy link
Author

GopherJ commented Jun 24, 2020

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

@sickcodes
Copy link
Owner

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

@GopherJ
Copy link
Author

GopherJ commented Jun 26, 2020

@sickcodes works like a charm thanks

@GopherJ GopherJ closed this as completed Jun 26, 2020
@netsafe
Copy link

netsafe commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants