# LXC/LXD as an alternative to Virtualbox for local development

**URL:** https://discourse.roots.io/t/lxc-lxd-as-an-alternative-to-virtualbox-for-local-development/5149
**Category:** trellis
**Created:** 2015-10-28T14:47:17Z
**Posts:** 63
**Showing post:** 37 of 63

## Post 37 by @treb0r — 2016-08-14T05:53:18Z

Hey @chipk great to hear you have LXD working!

I have seen the Vagrant provider plugin for LXC but unfortunately it won’t work with LXD (as far as I can tell anyway).

I owe the roots guys another blog post about this stuff, this time about using Vagrant with LXD but have struggled to find enough documentation to get it working properly.

Having said that, I have been making progress and have been in touch with Canonical about a couple of issues. A few tips for getting up and running manually without Vagrant:

That gist from @bloodearnest above will allow you to mount a shared directory without the need to make the target directory world writable.

Also, before provisioning your dev environment, check out this thread:

> [@'sudoer_passwords' is undefined (LXD)](https://discourse.roots.io/t/sudoer-passwords-is-undefined-lxd/6493/3):
>
> @treb0r The sudoer password definitions are used in the users role. Standard Trellis runs dev.yml for development and server.yml for staging/production. Given that dev.yml does not run the users role, [roots/trellis#560](https://github.com/roots/trellis/pull/560) removed the unused sudoer password definitions from group\_vars/development. However, I see that you are probably provisioning your [LXD container](https://roots.io/linux-containers-lxd-as-an-alternative-to-virtualbox-for-wordpress-development/) as development using server.yml. This means the users role will run and need the sudoer password definitions, but will no longer find …

…and make sure to add back those sudoer password definitions.

Let me know if you need a hand.

---

_[View the full topic](https://discourse.roots.io/t/lxc-lxd-as-an-alternative-to-virtualbox-for-local-development/5149)._
