vagrant-lxd
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
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request