title: Running android emulator during jenkins build
body: <p>I have installed Jenkins and configured a build job with emulator running during build. But when I execute the job, I get error message that jenkins user doesn't have permission to run kvm. How can I fix it.</p>
  
  <pre><code>$ android list target
  [android] Using Android SDK: /opt/android/sdk
  $ adb start-server
  * daemon not running. starting it now on port 5973 *
  * daemon started successfully *
  $ adb start-server
  [android] Starting Android emulator
  [android] Erasing existing emulator data...
  $ emulator -ports 5971,5972 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_160_1024x768_android-15_x86 -no-snapshot-load -no-snapshot-save -wipe-data
  emulator: ERROR: x86 emulation currently requires hardware acceleration!
  Please ensure KVM is properly installed and usable.
  CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
  [android] Emulator did not appear to start; giving up
  $ adb disconnect localhost:5972
  [android] Stopping Android emulator
  $ adb kill-server
  </code></pre>
  
  <p>Permissions</p>
  
  <pre><code>$ ls -l /dev/kvm
  crw-rw----+ 1 root root 10, 232 May  6 13:46 /dev/kvm
  
  $ groups jenkins
  jenkins : jenkins
  </code></pre>