/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.

Коментувати

Вміст цього поля є приватним і не буде доступний широкому загалу.
  • Не дозволено жодних HTML теґів.
 ooooooo  ooooo    .oooo.     .ooooo.                .oooooo.      .o8       
`8888 d8' .dP""Y88b 888' `Y88. d8P' `Y8b "888
Y888..8P ]8P' 888 888 .oooo.o 888 888oooo.
`8888' <88b. `Vbood888 d88( "8 888 d88' `88b
.8PY888. `88b. 888' `"Y88b. 888 ooooo 888 888
d8' `888b o. .88P .88P' o. )88b `88. .88' 888 888
o888o o88888o `8bd88P' .oP' 8""888P' `Y8bood8P' `Y8bod8P'


Уведіть код, зображений у стилі Ascii-Арт.