LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Unable to create LXC container on LFS (https://www.linuxquestions.org/questions/linux-containers-122/unable-to-create-lxc-container-on-lfs-4175709906/)

tosaikiran 03-24-2022 05:01 AM

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/

sundialsvcs 04-04-2022 03:46 PM

You really don't provide enough information here to offer a solid answer. What do those referenced files contain?

tosaikiran 04-06-2022 12:16 AM

The referenced files contain the steps I followed to build LXC from source, on my server.


All times are GMT -5. The time now is 05:11 AM.