Lxc containers issue

Platform: x86_64
Cannot figure out how to get lxc containers to create (other than "none" for template. All LXC packages including liblxc are installed. The following is the error I get:

root@LEDE:/usr/share/lxc/config# lxc-create -n Unifi -t ubuntu
lxc-create: lxccontainer.c: create_run_template: 1196 No such file or directory - failed to execute template /usr/share/lxc/templates/lxc-ubuntu
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for Unifi failed
lxc-create: lxc_create.c: main: 274 Error creating container Unifi

The templates are correct template path. Even using the option to define the tempate path manually it throws this error.

What am I doing wrong? Even the LUCI lxc app wont load the templates and I get this in the syslog:

Thu May 25 04:16:52 2017 daemon.err uhttpd[1678]: lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for just_want_to_list_available_lxc_templates failed
Thu May 25 04:16:52 2017 daemon.err uhttpd[1678]: lxc-create: lxc_create.c: main: 274 Error creating container just_want_to_list_available_lxc_templates
<code>

1 Like