Sorry to open another post (there is already 2 about this error here and here) but I can’t make my container start.
The container is running on a LXD server, I stop it, snapshot it and move it to another LXD server but the container don’t start on the new server.
Profile is the same, storage is the same (ZFS), here is log :
Name: suivi
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/02/19 19:24 UTC
Status: Running
Type: container
Profiles: lanprofile
Pid: 1827403
Ips:
lo: inet 127.0.0.1
lo: inet6 ::1
eth0: inet6 fe80::216:3eff:fe80:a764 br0
Resources:
Processes: 1
Disk usage:
root: 92.25GB
CPU usage:
CPU usage (in seconds): 0
Memory usage:
Memory (current): 2.33MB
Memory (peak): 2.45MB
Network usage:
eth0:
Bytes received: 1.87kB
Bytes sent: 586B
Packets received: 13
Packets sent: 7
lo:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
Log:
lxc suivi 20210308192729.853 WARN cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1126 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.monitor.suivi"
lxc suivi 20210308192729.858 WARN cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1126 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.payload.suivi"
lxc suivi 20210308192729.886 ERROR conf - conf.c:turn_into_dependent_mounts:3065 - No such file or directory - Failed to recursively turn old root mount tree into dependent mount. Continuing...
lxc suivi 20210308192729.905 ERROR utils - utils.c:__safe_mount_beneath_at:1106 - Function not implemented - Failed to open 30(dev)
My profile:
config: {}
description: Default LXD profile
devices:
eth0:
nictype: macvlan
parent: br0
type: nic
root:
path: /
pool: default
type: disk
name: lanprofile
used_by:
- /1.0/instances/dokuwiki
- /1.0/instances/suivi
(it did the same for dokuwiki
container and no problem at all)
suivi
container is an upgrade from LXC and is priviledged
Bridge definition (/etc/netplan/01-netcfg.yaml)
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
bridges:
br0:
dhcp4: yes
interfaces:
- eno1
I can lxc exec
into container here is dmesg
output :
[1464273.058698] mace80c9573: renamed from eth0
[1464275.060036] audit: type=1400 audit(1615232376.887:170): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="lxd-suivi_</var/snap/lxd/common/lxd>" pid=1834495 comm="apparmor_parser"
[1464291.772974] audit: type=1400 audit(1615232393.599:171): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxd-suivi_</var/snap/lxd/common/lxd>" pid=1834730 comm="apparmor_parser"
[1464291.858765] eth0: renamed from macce9636b4
Container configuration :
lxc config show suivi
architecture: x86_64
config:
image.architecture: amd64
image.description: Alpine 3.13 amd64 (20210115_13:00)
image.os: Alpine
image.release: "3.13"
image.serial: "20210115_13:00"
image.type: root.tar.xz
image.variant: default
security.privileged: "true"
volatile.base_image: e1727aceac1099a18d4405a7600f6fb865953ace23b277df1506898bf05395b2
volatile.eth0.host_name: macfbda2f73
volatile.eth0.hwaddr: 00:16:3e:80:a7:64
volatile.eth0.last_state.created: "false"
volatile.eth0.name: eth0
volatile.idmap.base: "0"
volatile.idmap.current: '[]'
volatile.idmap.next: '[]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: RUNNING
volatile.uuid: ae63edff-842c-4241-b34e-11569cb1a5e1
devices: {}
ephemeral: false
profiles:
- lanprofile
stateful: false
description: ""
Image os, description, release, etc are not correct, it’s due to my method of migration from LXC to LXD (creation of a small container et replacement of rootfs like suggested by @stgraber )
Container is “RUNNING” but not totally :
$ lxc ls
+----------+---------+-------------------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+----------+---------+-------------------+------+-----------+-----------+
| dokuwiki | RUNNING | 10.1.2.123 (eth0) | | CONTAINER | 0 |
+----------+---------+-------------------+------+-----------+-----------+
| suivi | RUNNING | | | CONTAINER | 0 |
+----------+---------+-------------------+------+-----------+-----------+
I try to stop my container, mount it’s file system (sudo zfs mount tank/containers/suivi
) , delete backup.yaml file (sudo rm /var/snap/lxd/common/lxd/storage-pools/default/containers/suivi/backup.yaml
), unmount (sudo zfs mount tank/containers/suivi
) and start again the container, no more success.
Thanks for your help
Yoann