Running android emulator during jenkins build
I have managed to fix the problem.
- Install Qemu-KVM and cpu-checker:
sudo apt install qemu-kvm cpu-checker
- Check if KVM is available (as
jenkins
user):$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
- Create group kvm and add
jenkins
to this group:addgroup kvm
usermod -a -G kvm jenkins
- Change group ownership for
/dev/kvm
:chgrp kvm /dev/kvm
- Create udev rule:
$ sudo nano /etc/udev/rules.d/60-qemu-kvm.rules
KERNEL=="kvm", GROUP="kvm", MODE="0660"
- Reboot