kvm setup for linux without default modules
Asked Answered
D

1

7

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?

Dipnoan answered 19/4, 2016 at 5:22 Comment(3)
In a chroot env you need to get the package manager working then install the kernel headers etc for the Host machine version.Quesada
@Quesada abstractly I know what you mean, I have a couple of working package managers. When you say host machine do you mean headers for ChromeOS? or do you mean headers in the trusty chroot?Dipnoan
I'm not 100% sure what you're trying to achieve. If the Host kernel ie in your case I believe it's Chrome OS was not build to support KVM then you cannot build a module and insert it into that kernel, it won't work because the necessary plumbing won't exists in the kernel for it.Quesada
F
3

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:

Fatigued answered 4/5, 2016 at 18:37 Comment(11)
Also if the prepackaged android studio requires kvm then I still have the same issue...Dipnoan
I don't think that you'll have the same issue docker is running in a virtual (separate environnement). Worth the cost to try. Using it over linux and windows myself with no problems at all. :)Fatigued
Does this include emulator support?Dipnoan
Updated response. Yes supported !Fatigued
Emilator is supportedFatigued
this is a turnaround, but works like a charm. Havve you been testing it hellyale. Can you set my response as correct response for bounty please. If needing more support let me know, even by chat.Fatigued
Will test today, didn't have time yesturdayDipnoan
Post http:///var/run/docker.sock/v1.18/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? No idea what this is... also it looks like this is going to be Android Studio 1.1 I need 2.1, or the newest Android Studio versionDipnoan
Got to go take an exam though, ill resume laterDipnoan
seems can't redirect, this post might help you now : #27528837Fatigued
docker appears to be just another rabbithole of errors. I'm already far enough down the kvm rabbithole, I have android studio installed already, so i dont need to dock it, what I need is kvm.Dipnoan

© 2022 - 2024 — McMap. All rights reserved.