Skip to content

Commit

Permalink
Implement libvirt/KVM support
Browse files Browse the repository at this point in the history
This adds a new driver for machine supporting the libvirt
and KVM back-end.  At present, it assumes "default" libvirt
NAT networking using dnsmasq.
  • Loading branch information
Daniel Hiltgen committed Feb 26, 2015
1 parent f9278b9 commit e5d159c
Show file tree
Hide file tree
Showing 5 changed files with 624 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM golang:1.3-cross
RUN apt-get update && apt-get install -y --no-install-recommends openssh-client
RUN apt-get update && apt-get install -y --no-install-recommends openssh-client libvirt-dev

# TODO: Vendor these `go get` commands using Godep.
RUN go get github.com/mitchellh/gox
RUN go get github.com/aktau/github-release
RUN go get github.com/tools/godep
RUN go get code.google.com/p/go.tools/cmd/cover
RUN go get github.com/alexzorin/libvirt-go

ENV GOPATH /go/src/github.com/docker/machine/Godeps/_workspace:/go
ENV MACHINE_BINARY /go/src/github.com/docker/machine/docker-machine
Expand Down
1 change: 1 addition & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
_ "github.com/docker/machine/drivers/digitalocean"
_ "github.com/docker/machine/drivers/google"
_ "github.com/docker/machine/drivers/hyperv"
_ "github.com/docker/machine/drivers/libvirt"
_ "github.com/docker/machine/drivers/none"
_ "github.com/docker/machine/drivers/openstack"
_ "github.com/docker/machine/drivers/rackspace"
Expand Down
1 change: 1 addition & 0 deletions drivers/libvirt/libvirt.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package libvirt
Loading

0 comments on commit e5d159c

Please sign in to comment.