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
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`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
@0x8f701 commented on GitHub (Jun 24, 2020):
I followed all the instructions but still it gives me this error
@sickcodes commented on GitHub (Jun 24, 2020):
OS?
@0x8f701 commented on GitHub (Jun 24, 2020):
@sickcodes sorry it's Linux mint v19.3 cinamon
@sickcodes commented on GitHub (Jun 24, 2020):
try all the troubleshooting instructions
namely, try
sudo chmod 666 /dev/kvm@0x8f701 commented on GitHub (Jun 26, 2020):
@sickcodes works like a charm thanks
@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