5

I'm running Ubuntu 12.04. According to the Ubuntu Server Guide, there should be a -t download template option for the lxc-create command. However I get the following output:

sudo lxc-create -t download -n container-name
lxc-create: No such file or directory - bad template: download

lxc-create: bad template: download

2 Answers 2

14

Under Ubuntu 14.04+ you can install LXC templates with

sudo apt-get install lxc-templates

(Unfortunately the templates are not installed by default with sudo apt-get install lxc)

3
  • Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about what this command is supposed to do. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) Commented Dec 28, 2015 at 20:45
  • The question is rather specific to 12.04.
    – muru
    Commented Dec 28, 2015 at 21:34
  • This works for Ubuntu 18.04 and should be correct answer.
    – Karlom
    Commented Jun 5, 2021 at 15:22
4

That's the guide for 14.04 - the link with lts links to the guide for the latest LTS version (currently 14.04). The 12.04 guide uses different arguments for -t:

sudo lxc-create -t ubuntu -n CN

Presumably, the download template was introduced after 12.04.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .