Skip to content

nodoubleg/vagrant-vboxlxd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant vboxlxd

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.

Getting it running

Prereqs

  1. 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.
  2. It's highly recommended to install the vagrant-vbguest plugin:vagrant plugin install vagrant-vbguest
  3. 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.

Handy scripts added:

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.

About

easy lxd in VirtualBox, with Vagrant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages