Hello.
When I’m trying to launch containers, I receive the following error:
doks@deb-workstation:~$ sudo lxc launch images:debian/12 deb-container
Creating deb-container
Starting deb-container
Error: Failed to run: /usr/bin/lxd forkstart deb-container /var/lib/lxd/containers /var/log/lxd/deb-container/lxc.conf: exit status 1
Try `lxc info --show-log local:deb-container` for more info
By doing the proposed command, I don’t get anything helpful to me:
doks@deb-workstation:~$ lxc info --show-log local:deb-container
Name: deb-container
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2023/09/16 19:33 MSK
Last Used: 2023/09/16 19:33 MSK
Log:
lxc deb-container 20230916163307.890 ERROR cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_mount:2139 - Нет такого файла или каталога - Failed to create cgroup at_mnt 24()
lxc deb-container 20230916163307.890 ERROR conf - ../src/lxc/conf.c:lxc_mount_auto_mounts:852 - Нет такого файла или каталога - Failed to mount "/sys/fs/cgroup"
lxc deb-container 20230916163307.890 ERROR conf - ../src/lxc/conf.c:lxc_setup:4433 - Failed to setup remaining automatic mounts
lxc deb-container 20230916163307.890 ERROR start - ../src/lxc/start.c:do_start:1272 - Failed to setup container "deb-container"
lxc deb-container 20230916163307.890 ERROR sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc deb-container 20230916163307.899 WARN network - ../src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "veth20e2d497"
lxc deb-container 20230916163307.900 ERROR lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc deb-container 20230916163307.900 ERROR start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "deb-container"
lxc deb-container 20230916163307.900 WARN start - ../src/lxc/start.c:lxc_abort:1036 - Нет такого процесса - Failed to send SIGKILL via pidfd 19 for process 11676
lxc 20230916163312.997 ERROR af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Соединение разорвано другой стороной - Failed to receive response
lxc 20230916163312.997 ERROR commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_state"
I’ve set managed network during lxd init
command running.
Storage pool I’ve set manually because I use LVM: I allocated logical volume and created pool with btrfs driver.
Also, I faced with another problem: option source.wipe=true
doesn’t work, so I used wipefs --all
command before creating pool. I think I’ll make another topic for that.
Then, I added storage device to default profile.
Below the default profile:
doks@deb-workstation:/mnt/lxd/pool1$ lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: pool1
type: disk
name: default
used_by:
- /1.0/instances/deb-container
And, the result of running another command, if it can be useful:
oks@deb-workstation:~$ lxc config show deb-container --expanded
architecture: x86_64
config:
image.architecture: amd64
image.description: Debian bookworm amd64 (20230916_05:24)
image.os: Debian
image.release: bookworm
image.serial: "20230916_05:24"
image.type: squashfs
image.variant: default
volatile.base_image: d63281561cb79e5e67babc3899dbd463409ba6c40fc4b3d4059becd96bc02e0c
volatile.cloud-init.instance-id: d9f8097d-7711-48c3-8dc3-a5cb697735fa
volatile.eth0.hwaddr: 00:16:3e:0a:88:41
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":10000001},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":10000001}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":10000001},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":10000001}]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: STOPPED
volatile.uuid: cff23426-58bf-4060-9865-a9576b5daac6
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: pool1
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
I’m new to this. Please help me to figure out what’s wrong.