M BUZZ CRAZE NEWS
// general

Submit a command "sudo chmod 777 -R /dev/kvm" for ever

By John Parsons

My AVD in android studio has a problem when i want to run it then i searched and i used this command sudo chmod 777 -R /dev/kvm and it works.

My problem is when i start my PC , i should type this for using emulator , it has a way for submitted it for ever.

My OS : "Ubuntu 18.04.5 LTS"

3

1 Answer

That is never going to work: /dev/ is rebuild every boot. Besides that chmod 777 is never the correct solution. The only time chmod 777 is a solution is when it is for a tmp situation where you also use the sticky bit.

The way to do this: please check the GROUP of /dev/kvm (with ls -l /dev/kvm) and add the user you want to use that device to that group.

The group is likely to be kvm so what you need to do is

sudo adduser $USER kvm

Adjust it to the group /dev/kvm shows though. You need to logout before it is activated too.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy