Name Last Update
bin Loading commit data...
example_boxes Loading commit data...
lib Loading commit data...
.gitignore Loading commit data...
Gemfile Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
vagrant-lxd.gemspec Loading commit data...

vagrant-lxc

LXD provider for Vagrant 1.9.3

This is a Vagrant plugin that allows it to control and provision Linux Containers as an alternative to the built in VirtualBox provider for Linux hosts.

Features

  • Start and stop LXD managed container.
  • No port forwarding right now.
  • Uses LXD managed bridge network.

Requirements

  • Vagrant (tested with 1.9.3)
  • lxd (tested with 2.11)
  • All lxd dependencies (especially dnsmasq for LXD managed networking)

I tested the plugin on gentoo, installed via vagrant plugin install.

Installation

As long as is not publicly available at rubygems pleace clone the repo, Change to the checked out directory ad do:

rake build
vagrant plugin install pkg/vagrant-lxd-0.0.1.gem

Boxes

Some example boxes are provided within the example_box directory.

Configuration

Currently the provider knows only one config option.

Vagrant.configure("2") do |config|
  config.vm.provider :lxd do |lxd|
    lxd.privileged = true
  end
end

This will create a privileged instead of an unprivileged container.

Container naming

The defined VM name will be prefixed with vagrant. At the moment there is no logic to make them uniqe.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request