Vagrant is cool but spinning up ephemeral, throwaway VMs with it is slow and tedious. lxd is cool but doesn't run locally on macOS or Windows. This Vagrant environment will spin up a modest Ubuntu Xenial VM, initialize LXD on a separate virtual disk with ZFS, apply an opinionated config, and cache some lxc images to make things more responsive.
If you want something a bit more permanent than this, you'll want to natively run an lxd client and create a separate LXD host.
- For now, you need VirtualBox and Vagrant. It's best if you have vagrant 1.8+, as this tries to make use of
linked_clone
. - It's highly recommended to install the
vagrant-vbguest
plugin:vagrant plugin install vagrant-vbguest
- If you have a proxy hanging around, you might want to install vagrant-vbguest to help speed up repetitive package installs, depending on how awesome your ISP is.
Just a vagrant up
and vagrant ssh
is all you need to get running.
script | description |
---|---|
ephem |
Gives you a shell in an ephemeral container. The container is deleted when the shell exits. Great when you need a throwaway container for a simple, single task. |
nuke_all_lxc |
Quickly-ish forcefully deletes all running containers. |