KVM is required to run this AVD












1














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




popup



But when I run simply kvm-ok it outputs:



INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question
























  • 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
















1














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




popup



But when I run simply kvm-ok it outputs:



INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question
























  • 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














1












1








1


0





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




popup



But when I run simply kvm-ok it outputs:



INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question















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




popup



But when I run simply kvm-ok it outputs:



INFO: /dev/kvm exists
KVM acceleration can be used






18.04 kvm android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










3 Answers
3






active

oldest

votes


















1














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






share|improve this answer























  • It is actually a permission denied on KVM rather on android emulator.
    – G. Spyridakis
    Dec 9 at 18:15



















1














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






share|improve this answer































    0














    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





    share|improve this answer





















      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      1














      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






      share|improve this answer























      • It is actually a permission denied on KVM rather on android emulator.
        – G. Spyridakis
        Dec 9 at 18:15
















      1














      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






      share|improve this answer























      • It is actually a permission denied on KVM rather on android emulator.
        – G. Spyridakis
        Dec 9 at 18:15














      1












      1








      1






      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






      share|improve this answer














      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







      share|improve this answer














      share|improve this answer



      share|improve this answer








      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


















      • 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













      1














      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






      share|improve this answer




























        1














        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






        share|improve this answer


























          1












          1








          1






          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






          share|improve this answer














          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 9 at 19:45

























          answered Dec 9 at 18:08









          G. Spyridakis

          1115




          1115























              0














              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





              share|improve this answer


























                0














                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





                share|improve this answer
























                  0












                  0








                  0






                  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





                  share|improve this answer












                  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






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 25 at 22:46









                  ADNow

                  1011




                  1011






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕