Ok, so the KVM setup guide in this question does not work for me,
this is because I am using crouton with a trusty (14.04) chroot.
Apparently somewhere along the line kvm modules were not shipped in ChromeOS or the crouton virtual images that I have knowledge of...
Since modules are not present, they are not modprobable.
How do I get, build, and deploy KVM, from such a starting point? To the point where I can successfully utilize Android Studio's built in emulator UI?
Since KVM is part of Linux, it installs natively, enabling straightforward user experience and smooth integration.
How does KVM work? KVM converts Linux into a type-1 (bare-metal) hypervisor. All hypervisors need some operating system-level components—such as a memory manager, process scheduler, input/output (I/O) stack, device drivers, security manager, a network stack, and more—to run VMs.
As a Linux based OS, Ubuntu supports a wide range of virtualization solutions. Aside from popular third-party apps, such as VirtualBox and VMWare, the Linux kernel has its own virtualization module called KVM (Kernel-based Virtual Machine).
You can check whether KVM support is enabled in the Linux kernel from Ubuntu using kvm-ok command which is a part of the cpu-checker package. It is not installed by default. But it is available in the official package repository of Ubuntu.
why not to go clean, easy and simple ?
If you can install docker on your environement, go for a simple solution : use docker to launch prepackaged android studio this supports emulation and also connected devices (via usb).
A good dockerfile (image) can be found here: https://github.com/hasuf/docker-dev-android . This supports emulation & android connected devices
References:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With