3 ms·
GCE 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 VM
by jbeda 12y ago
GCE 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.