"Go" Configuring VM acceleration on Linux

Source: Internet
Author: User

Configuring VM acceleration on Linux

Linux-based Systems support virtual machine acceleration through, the KVM software package. Follow instructions for installing KVM on your Linux system, and verify this KVM is enabled. In addition to following the installation instructions, be aware of these configuration requirements:

    • Running KVM requires specific user permissions, make sure are sufficient permissions according to the KVM Installatio n instructions.
    • If You use another virtualization technology on your Linux platform, unload its kernel driver before running the x86 Emula Tor. For example, the VirtualBox driver program is vboxdrv .

To run a x86-based emulator with VM acceleration:

  • If you is running the emulator from the command line, start the emulator with an x86-based AVD and include the KVM option S
    -<avd_name>----enable-KVM      

    Note: You must provide an x86-based AVD configuration name, otherwise VM acceleration is not enabled.

  • If you is running the emulator from Android Studio, run your Android application with an x86-based AVD and include the KV M options:
      1. in Android Studio, click your Android Module folder and then select  Run > Edit configurations. .
      2. in the left panel of the  run/debug configurations  dialog, select your Android Run Configur ation or create a new configuration.
      3. under the  Target Device  options, select the x86-based AVD you created previously.
      4. in the  Emulator  tab, in the  Additional command line Options  field, Enter:
        -qemu -m 512 -enable -KVM           
      5. Run your Android project using this run configuration.

Important: When using -qemu the command line option, make sure it was the last parameter in your command. All subsequent options is interpreted as qemu-specific parameters.

Note: issue:195031 Emulator tab not available in Android Studio 1.5

"Go" Configuring VM acceleration on Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.