/dev/kvm permission denied on Ubuntu 18.04

Edit (06.06.2018):
You can follow the simple tutorial here to install KVM. Thanks to azbest!

I got this error when I was trying to create an emulator:

/dev/kvm permission denied

I did several things to fix it.

  1. sudo apt install qemu-kvm
  2. sudo chown /dev/kvm <your_username>
  3. Logout and Login again

The error should not be there. You could also create a permissions group and associate it with the file and add your current user to that group like:

  1. sudo groupadd -g 123456 kvm
  2. sudo chgrp -R kvm /dev/kvm
  3. sudo adduser <your_username> kvm

You can try this approach too.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s