LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 10-07-2016, 02:30 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Rep: Reputation: 44
lxccontainer.c:container_destroy:2387


Hi, this is my first approach to LXC and I followed this beginners how-to:
https://linuxcontainers.org/lxc/getting-started/

My system:
Code:
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
I stuck in the guide where I try execute following command (my understanding is that it will give me a choice of container and it will create it):
Code:
$ lxc-create -t download -n -l DEBUG -o /tmp/lxc-create -n u1
I redirected BUG tracing to /tmp/lxc-create and here is the output:
Code:
$ tail -100f /tmp/lxc-create 
     lxc-create 20161007090257.627 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536
     lxc-create 20161007090257.627 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536
     lxc-create 20161007090257.726 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536
     lxc-create 20161007090257.726 INFO     lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536
     lxc-create 20161007090857.770 ERROR    lxc_container - lxccontainer.c:create_run_template:1290 - container creation template for u1 failed
     lxc-create 20161007090857.774 INFO     lxc_container - lxccontainer.c:container_destroy:2387 - Destroyed rootfs for u1
     lxc-create 20161007090857.778 INFO     lxc_container - lxccontainer.c:container_destroy:2403 - Destroyed directory for u1
     lxc-create 20161007090857.778 ERROR    lxc_create_ui - tools/lxc_create.c:main:318 - Error creating container u1
Im not sure what these ERRORs mean. Could be I should create some rootpoint/dir/file system for my new container but dont know where. Anyway it would be described in this how-to.
Does anyone have a clue whats wrong here?
 
Old 05-26-2017, 02:57 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
lxc-create fails

Try this with root privileges.

sudo lxc-create

or

sudo su -

then lxc-create
 
Old 05-31-2017, 03:28 AM   #3
simosx
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 11
LXD/LXC (often called LXD) is an enhancement over plain LXC, and I suggest that you give a try for this LXD.
LXD takes the standard LXC functionality and makes it more usable; LXD acts like a hypervisor
and even includes repositories for ready-made images for Ubuntu and several other distributions.

In regard to the issue you are facing, you can have unprivileged (no 'sudo') containers with LXD.

Have a look at https://linuxcontainers.org/lxd/getting-started-cli/
You can try LXD online (free) at https://linuxcontainers.org/lxd/try-it/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration