How to fix KVM permission denied error on Ubuntu 18.04

Rahul Shukla
1 min readFeb 2, 2019

--

/dev/kvm device: permission denied is the error that I got while trying to run Android Virtual Device(AVD) on a fresh install of Ubuntu 18.04.

The error message also shows a hint on what could be wrong: Grant current user access to /dev/kvm. A quick google search reveals that this is a common problem.

The easiest way to fix this would be to install qemu-kvm and then give appropriate permission to the current user.

Install qemu-kvm.

$ sudo apt install qemu-kvm

Use the adduser command to add your user to the kvm group.

$ sudo adduser <username> kvm

And then own the file /dev/kvm using chown.

$ sudo chown <username> /dev/kvm

After the above steps the AVD should work as expected.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Rahul Shukla
Rahul Shukla

Written by Rahul Shukla

Back-End Developer & Hybrid App Developer

Responses (7)

Write a response