How to use kvm in a Centos 6 docker container through a docker machine

I am trying to use kvm in a Centos 6 docker container through a docker machine. My vm docker machine (based on vmware fusion) supports nested virtual machines, but in my docker container I see:

modprobe kvm
FATAL: Could not load /lib/modules/4.1.12-boot2docker/modules.dep: No such file or directory
modprobe kvm_intel
FATAL: Could not load /lib/modules/4.1.12-boot2docker/modules.dep: No such file or directory

Any idea what I am missing?

+4
source share
3 answers

Docker is not a virtual machine. This is a way to package your application.

So, I think that starting KVM-Kernel Virtual Machine is not possible inside the docker container.

You can read about the difference between Docker and other virtualization at: https://www.docker.com/what-docker

+3

You can use a simple KVM container in DockerHub . The source code is available on GitHub and has been tested on DockerHosts with Ubuntu 16.04, Centos 7, Centos-Atomic 7.2, and RancherOS.

0
source

All Articles