Error creating ubuntu 16 container under arch

2019-08-29 09:51发布

问题:

I am trying to install a Ubuntu container on Archlinux using LXC. I am following this guide:https://gist.github.com/manoj23/8a35849697945896cdaef77927c695a7

After I run this command:

lxc-create --name=ubuntu-16 --template=ubuntu -- --release xenial  --arch amd64 

I get the following error:

Bad template: ubuntu
Error creating container ubuntu-16

Why is this happening?

回答1:

It says in the error. Bad template.

You can see that in the current version of lxc there is no ubuntu template. The gist is probably for the previous version.

The LXC documentation does not really have any clear examples of using their updated method. The Ubunu LXC documentation does though. https://help.ubuntu.com/lts/serverguide/lxc.html