4 ms·
Is it possible to run a KVM VM inside one of the containers? I have an application for launching and managing VMs and letting people spin up a Google container
by jff 12y ago
Is it possible to run a KVM VM inside one of the containers? I have an application for launching and managing VMs and letting people spin up a Google container to try it out would be neat.
- jbeda 12y agoGCE doesn't support nested virtualization. But if you are running Kubernetes on bare metal, there is no reason you couldn't map in /dev/kvm and have k8s run VMs for you. I haven't done it though :)
- jff 12y agoOk, I've done VMs inside docker already which has been fine, was hoping GCE would let me do it on Google's systems.
- abakker 12y agoAs someone who doesn't know, why would you want to run VMs inside of a docker container? Wouldn't this have tremendous overhead relative to just running the hypervisor?
- jff 12y agoIf you use the -privileged flag, docker containers can access /dev/kvm and start low-overhead KVM instances. It's advantageous for me, because I can say "hey check out this software" and they just have to run a single docker command, compared to installing Go, apt-getting a bunch of packages, fetching our repo, compiling, etc.