I use the btrfs [backing store](https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-backinstores) driver here, see its [man page](http://man7.org/linux/man-pages/man1/lxc-create.1.html) for more.
**Set the hostname to FQDN so you have it later with a Domain in your saltmaster**
Replace ```lxc.example.lan``` with the domain you have in ```/etc/default/lxc-net```
$ sed -i -e's|trusty64|trusty64.lxc.example.lan|' /etc/hosts
**Delete default "ubuntu" user (want salt to provision the id:1000 user)**
$ userdel -rf ubuntu
**Now** get back on your machine:
$ exit
**and** stop the base image you must made:
$ lxc-stop -n trusty64
### Do this every time you need a new testing/production machine
**Clone it and let your salt master provision it :)**
I use the [snapshot](http://man7.org/linux/man-pages/man1/lxc-clone.1.html) feature here.
replace ```jupiter``` with your own hostname.
$ lxc-clone -s trusty64 jupiter
$ lxc-start -n jupiter
**Get info from your new machine**
$ lxc-ls -f
**On the Master**
$ salt-key -a 'jupiter.*'
If you have a firewalled development saltmaster you may want to activate [auto_accept](http://docs.saltstack.com/en/latest/ref/configuration/master.html#auto-accept)
**Wanna do it again?**
Destroy the machine (**as lxd@localhost**)
$ lxc-destroy -n jupiter
Remove the key on the Master
$ salt-key -d 'jupiter.*'
Clone it again and let the master provision it (**again as lxd@localhost**)