KVM is required to run this AVD
I am on Ubuntu 18.04 LTS and I am trying to set up Android Studio for the first time. When I run my simple "Hello World" app, it gives me a pop-up that says
KVM is required to run this AVD.
Unknown Error
Please file a bug against Android Studio
But when I run simply kvm-ok
it outputs:
INFO: /dev/kvm exists
KVM acceleration can be used
18.04 kvm android-studio
add a comment |
I am on Ubuntu 18.04 LTS and I am trying to set up Android Studio for the first time. When I run my simple "Hello World" app, it gives me a pop-up that says
KVM is required to run this AVD.
Unknown Error
Please file a bug against Android Studio
But when I run simply kvm-ok
it outputs:
INFO: /dev/kvm exists
KVM acceleration can be used
18.04 kvm android-studio
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
1
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56
add a comment |
I am on Ubuntu 18.04 LTS and I am trying to set up Android Studio for the first time. When I run my simple "Hello World" app, it gives me a pop-up that says
KVM is required to run this AVD.
Unknown Error
Please file a bug against Android Studio
But when I run simply kvm-ok
it outputs:
INFO: /dev/kvm exists
KVM acceleration can be used
18.04 kvm android-studio
I am on Ubuntu 18.04 LTS and I am trying to set up Android Studio for the first time. When I run my simple "Hello World" app, it gives me a pop-up that says
KVM is required to run this AVD.
Unknown Error
Please file a bug against Android Studio
But when I run simply kvm-ok
it outputs:
INFO: /dev/kvm exists
KVM acceleration can be used
18.04 kvm android-studio
18.04 kvm android-studio
edited Jun 30 at 5:01
Zanna
50k13131238
50k13131238
asked Jun 29 at 5:26
Nauman Afsar
612
612
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
1
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56
add a comment |
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
1
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
1
1
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56
add a comment |
3 Answers
3
active
oldest
votes
Change sdk emulator folder permission. This is worked for me.
chmod 777 -R {sdk folder}/emulator
https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
add a comment |
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.
Official answer on StackOverflow
add a comment |
I usually run
sudo chown username -R /dev/kvm
but this is only good for a while. Looking for a better solution.
There is also another command:
sudo adduser username kvm
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1050621%2fkvm-is-required-to-run-this-avd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Change sdk emulator folder permission. This is worked for me.
chmod 777 -R {sdk folder}/emulator
https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
add a comment |
Change sdk emulator folder permission. This is worked for me.
chmod 777 -R {sdk folder}/emulator
https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
add a comment |
Change sdk emulator folder permission. This is worked for me.
chmod 777 -R {sdk folder}/emulator
https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi
Change sdk emulator folder permission. This is worked for me.
chmod 777 -R {sdk folder}/emulator
https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi
edited Oct 28 at 10:03
answered Oct 28 at 9:42
T. Toir427
113
113
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
add a comment |
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
It is actually a permission denied on KVM rather on android emulator.
– G. Spyridakis
Dec 9 at 18:15
add a comment |
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.
Official answer on StackOverflow
add a comment |
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.
Official answer on StackOverflow
add a comment |
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.
Official answer on StackOverflow
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.
Official answer on StackOverflow
edited Dec 9 at 19:45
answered Dec 9 at 18:08
G. Spyridakis
1115
1115
add a comment |
add a comment |
I usually run
sudo chown username -R /dev/kvm
but this is only good for a while. Looking for a better solution.
There is also another command:
sudo adduser username kvm
add a comment |
I usually run
sudo chown username -R /dev/kvm
but this is only good for a while. Looking for a better solution.
There is also another command:
sudo adduser username kvm
add a comment |
I usually run
sudo chown username -R /dev/kvm
but this is only good for a while. Looking for a better solution.
There is also another command:
sudo adduser username kvm
I usually run
sudo chown username -R /dev/kvm
but this is only good for a while. Looking for a better solution.
There is also another command:
sudo adduser username kvm
answered Jul 25 at 22:46
ADNow
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1050621%2fkvm-is-required-to-run-this-avd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you check this Ask Ubuntu thread?
– Shashanth
Jul 4 at 4:01
1
Yes i have, but the thing is that my CPU does support virtualization and is enabled from BIOS!
– Nauman Afsar
Jul 10 at 8:31
You might try to just run 'kvm' as that will run a KVM with (x86) Bios with -enable-kvm being set. It will eventually stop as it has nothing to boot, but you will see if kvm can be used.
– Christian Ehrhardt
Jul 16 at 5:56