/dev/kvm permission denied.

After updating Ubuntu to 18.04 version you should install qemu-kvm

sudo apt install qemu-kvm

Check the owner of /dev/kvm 

ls -al /dev/kvm

It should return User root, group kvm.
To check which users are in kvm group:

grep kvm /etc/group

It should return something like that:

kvm:x:some_number:

There was not a value after the last colon after I've updated my OS. This means that no users are present in kvm Group.

To add your user to kvm Group use the command:

sudo adduser $USER kvm

Check if the user was added:

grep kvm /etc/group.

 

If after those actions you still see an error message - try to re-login to make user permission refreshed.

Add new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed.
 ooo        ooooo  ooooooooo.     .o88o.        .o    oooooooooooo  ooooooooo.   
`88. .888' `888 `Y88. 888 `" .d88 `888' `8 `888 `Y88.
888b d'888 888 .d88' o888oo .d'888 888 888 .d88'
8 Y88. .P 888 888ooo88P' 888 .d' 888 888oooo8 888ooo88P'
8 `888' 888 888`88b. 888 88ooo888oo 888 " 888
8 Y 888 888 `88b. 888 888 888 888
o8o o888o o888o o888o o888o o888o o888o o888o


Enter the code depicted in ASCII art style.