Skip to content

b0d0nne11/docker-machine-kvm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-machine-kvm

KVM driver for docker-machine

This driver leverages the new plugin architecture being developed for Docker Machine.

Dependencies

This driver leverages libvirt and the libvirt-go library to create and manage KVM based virtual machines. It has been tested with Ubuntu 12.04 through 15.04 and should work on most platforms with KVM/libvirt support. If you run into compatibility problems, please file an issue.

Capabilities

  • boot2docker.iso based images

  • Dual Network

    • eth1 - A host private network called docker-machines is automatically created to ensure we always have connectivity to the VMs. The docker-machine ip command will always return this IP address which is only accessible from your local system.
    • eth0 - You can specify any libvirt named network. If you don't specify one, the "default" named network will be used.
      • If you have exotic networking topolgies (openvswitch, etc.), you can use virsh edit mymachinename after creation, modify the first network definition by hand, then reboot the VM for the changes to take effect.
      • Typically this would be your "public" network accessible from external systems
      • To retrieve the IP address of this network, you can run a command like the following:
      docker-machine ssh mymachinename "ip -one -4 addr show dev eth0|cut -f7 -d' '"
  • Other Tunables

    • Virtual CPU count via --kvm-cpu-count
    • Disk size via --kvm-disk-size
    • RAM via --kvm-memory

About

KVM driver for docker-machine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.6%
  • Makefile 0.4%