LinuxQuestions.org
Review your favorite Linux distribution.
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 03-24-2022, 05:01 AM   #1
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Rep: Reputation: Disabled
Unable to create LXC container on LFS


Hi,

I am trying to run a container ( Ubuntu ) on a LFS server using the LXC. Below are the details of my test setup for reference.

Server Config

CPU : AMD64
RAM : 32GB
HDD : 1TB

OS : LFS
Version : 11.0

LXC Version: 4.0.0-devel

Command : lxc-create --template download --name test
Error Seen :

Distribution:
ubuntu
Release:
jammy
Architecture:
amd64

Using image from local cache
Unpacking the rootfs

---
You just created an Ubuntu jammy amd64 (20220323_20:07) container.

To enable SSH, run: apt install openssh-server
No default root or user password are set by LXC.
lxc-create: test_ubuntu: parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file "/usr/local/share/lxc/config/common.conf" at line "lxc.seccomp.profile = /usr/local/share/lxc/config/common.seccomp"
lxc-create: test_ubuntu: parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file "/usr/local/var/lib/lxc/test_ubuntu/config" at line "lxc.include = /usr/local/share/lxc/config/common.conf"
lxc-create: test_ubuntu: tools/lxc_create.c: main: 317 Failed to create container test_ubuntu


Am I missing any dependency, I have followed the following link in building the LXC and LXD on my LFS server.

Ref :
LXC : https://github.com/lxc/lxc/
 
Old 04-04-2022, 03:46 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
You really don't provide enough information here to offer a solid answer. What do those referenced files contain?
 
Old 04-06-2022, 12:16 AM   #3
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
The referenced files contain the steps I followed to build LXC from source, on my server.
 
  


Reply

Tags
lfs, lxc



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] File lxc-slackware in package lxc needs updated drumz Slackware 7 11-13-2021 02:13 PM
Slackware-current, migration from LXC 2 to LXC 4 petejc Slackware 4 08-31-2021 01:54 PM
[SOLVED] "lxc list" vs "lxc-ls" yknivag Linux - Virtualization and Cloud 1 03-09-2017 05:53 AM
Unable to start unprivileged Lxc container on Debian Sid hurd Debian 0 02-02-2015 10:45 PM
How to end a Linux Container (LXC) from within? Skaperen Linux - Virtualization and Cloud 0 06-14-2011 09:37 AM

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

All times are GMT -5. The time now is 03:04 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