Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kvm setup for linux without default modules

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?

like image 689
hellyale Avatar asked Apr 19 '16 05:04

hellyale


People also ask

Is KVM enabled Linux?

Since KVM is part of Linux, it installs natively, enabling straightforward user experience and smooth integration.

How KVM works in Linux?

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.

Can you run KVM on Ubuntu?

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).

How do I know if KVM is enabled?

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.


1 Answers

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:

  • https://hub.docker.com/r/kelvinlawson/android-studio/
  • http://reul.space/blog/running-android-studio-from-a-docker-dot-io-container/
like image 91
jeorfevre Avatar answered Oct 23 '22 07:10

jeorfevre