lxc / lxc-templates

Old style template scripts for LXC (prefer distrobuilder)
GNU Lesser General Public License v2.1
54 stars 56 forks source link

I failed to create rockylinux8 container on rockylinux8 host #55

Open SgrTa opened 1 year ago

SgrTa commented 1 year ago

I tried to create rockylinux8 container on rockylinux8 host by lxc 4.0.12. I used "meta.tar.xz" and "rootfs.tar.xz" files I got from image-rockylinux

But I failed to make rockylinux8 container with some errors below.

# lxc-create -n test04 -t local -- -m meta.tar.xz -f rootfs.tar.xz
Unpacking the rootfs

---
You just created a Rockylinux 8 x86_64 (20230223_02:06) container.
lxc-create: test04: parse.c: lxc_file_for_each_line_mmap: 130 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: test04: parse.c: lxc_file_for_each_line_mmap: 130 Failed to parse config file "/usr/local/var/lib/lxc/test04/config" at line "lxc.include = /usr/local/share/lxc/config/common.conf"
lxc-create: test04: tools/lxc_create.c: main: 317 Failed to create container test04

What should I do to solve this problem?