Noob question: How to create additional storage? (loop file based, dir, etc.)

To create a loop file based storage, just don’t specify a source, this works for btrfs, zfs and lvm:

  • lxc storage create NAME zfs
  • lxc storage create NAME btrfs
  • lxc storage create NAME lvm

If you just want to use an existing directory to store containers directly, you can do that with the dir backend, though this is our most limited backend feature and performance wise.

  • lxc storage create NAME dir source=/some/empty/directory