Hello there, i just installed lxd on my opensuse 15.1 using zypper;
sudo zypper in lxd;
The following 4 NEW packages are going to be installed:
lxcfs lxcfs-hooks-lxc lxd lxd-bash-completion
sudo systemctl status lxd;
t=2019-11-07T19:41:33+0300 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
lxd.service: Main process exited, code=killed, status=11/SEGV
sudo systemctl stop lxd
sudo systemctl start lxd, hangis for 3 minutes, then same result.
Your post caught my eye just as I’m running… So what I’m posting is going to be brief…
I don’t know why a hypervisor is mentioned, it’s not required for Linux containers of course, and I can’t think of any reason why it’d be required for a container **manager **(no actual use for self-deployment). Documentation also says hardware CPU extensions not required.
Recommend you collect some information.
Open an elevated console running the following command and leave it running
journalctl -f
Now, with the above console running which will display system log events, start your lxd daemon and leave it running as long as you need.
I don’t use lxd, so can’t know for sure but suspect that it might have just timed out and stopped.
If you don’t see any significant system events, just use lxd to do what you need… It’s actually lxc which is needed for your actual containers.
root, su -;
zypper rm lxd criu liblxc1 libnet9 libuv1 lxcfs lxcfs-hooks-lxc lxd lxd-bash-completion python2-ipaddr python2-protobuf squashfs
zypper in lxd;
The following 11 NEW packages are going to be installed: criu liblxc1 libnet9 libuv1 lxcfs lxcfs-hooks-lxc lxd lxd-bash-completion python2-ipaddr python2-protobuf squashfs
systemctl start lxd, hangs;
here are full logs;
Nov 08 01:21:40 seven [RPM][4583]: Transaction ID 5dc498f4 started
Nov 08 01:21:40 seven [RPM][4583]: install liblxc1-3.2.1-lp151.4.5.1.x86_64: success
Nov 08 01:21:40 seven [RPM][4583]: install liblxc1-3.2.1-lp151.4.5.1.x86_64: success
Nov 08 01:21:40 seven [RPM][4583]: Transaction ID 5dc498f4 finished: 0
Nov 08 01:21:41 seven [RPM][4587]: Transaction ID 5dc498f5 started
Nov 08 01:21:41 seven systemd[1]: Reloading.
Nov 08 01:21:41 seven systemd[1]: nss-lookup.target: Dependency Before=nss-lookup.target dropped
Nov 08 01:21:41 seven systemd[1]: Reloading.
Nov 08 01:21:42 seven systemd[1]: nss-lookup.target: Dependency Before=nss-lookup.target dropped
Nov 08 01:21:42 seven [RPM][4587]: install lxcfs-3.1.2-lp151.2.3.1.x86_64: success
Nov 08 01:21:42 seven [RPM][4587]: install lxcfs-3.1.2-lp151.2.3.1.x86_64: success
Nov 08 01:21:42 seven [RPM][4587]: Transaction ID 5dc498f5 finished: 0
Nov 08 01:21:42 seven [RPM][4625]: Transaction ID 5dc498f6 started
Nov 08 01:21:42 seven [RPM][4625]: install lxcfs-hooks-lxc-3.1.2-lp151.2.3.1.noarch: success
Nov 08 01:21:42 seven [RPM][4625]: install lxcfs-hooks-lxc-3.1.2-lp151.2.3.1.noarch: success
Nov 08 01:21:42 seven [RPM][4625]: Transaction ID 5dc498f6 finished: 0
Nov 08 01:21:42 seven [RPM][4626]: Transaction ID 5dc498f6 started
Nov 08 01:21:43 seven [RPM][4626]: install libnet9-1.2~rc3-lp151.2.2.x86_64: success
Nov 08 01:21:43 seven [RPM][4626]: install libnet9-1.2~rc3-lp151.2.2.x86_64: success
Nov 08 01:21:43 seven [RPM][4626]: Transaction ID 5dc498f6 finished: 0
Nov 08 01:21:43 seven [RPM][4628]: Transaction ID 5dc498f7 started
Nov 08 01:21:43 seven [RPM][4628]: install libuv1-1.18.0-lp151.2.3.x86_64: success
Nov 08 01:21:43 seven [RPM][4628]: install libuv1-1.18.0-lp151.2.3.x86_64: success
Nov 08 01:21:43 seven [RPM][4628]: Transaction ID 5dc498f7 finished: 0
Nov 08 01:21:44 seven [RPM][4636]: Transaction ID 5dc498f8 started
Nov 08 01:21:44 seven [RPM][4636]: install python2-ipaddr-2.1.11-lp151.2.2.noarch: success
Nov 08 01:21:44 seven [RPM][4636]: install python2-ipaddr-2.1.11-lp151.2.2.noarch: success
Nov 08 01:21:44 seven [RPM][4636]: Transaction ID 5dc498f8 finished: 0
Nov 08 01:21:44 seven [RPM][4637]: Transaction ID 5dc498f8 started
Nov 08 01:21:44 seven [RPM][4637]: install python2-protobuf-3.5.0-lp151.4.7.x86_64: success
Nov 08 01:21:44 seven [RPM][4637]: install python2-protobuf-3.5.0-lp151.4.7.x86_64: success
Nov 08 01:21:44 seven [RPM][4637]: Transaction ID 5dc498f8 finished: 0
Nov 08 01:21:45 seven [RPM][4638]: Transaction ID 5dc498f9 started
Nov 08 01:21:45 seven [RPM][4638]: install squashfs-4.3-lp151.2.3.x86_64: success
Nov 08 01:21:45 seven [RPM][4638]: install squashfs-4.3-lp151.2.3.x86_64: success
Nov 08 01:21:45 seven [RPM][4638]: Transaction ID 5dc498f9 finished: 0
Nov 08 01:21:45 seven [RPM][4639]: Transaction ID 5dc498f9 started
Nov 08 01:21:45 seven [RPM][4639]: install criu-3.8.1-lp151.2.3.x86_64: success
Nov 08 01:21:45 seven [RPM][4639]: install criu-3.8.1-lp151.2.3.x86_64: success
Nov 08 01:21:45 seven [RPM][4639]: Transaction ID 5dc498f9 finished: 0
Nov 08 01:21:46 seven [RPM][4640]: Transaction ID 5dc498fa started
Nov 08 01:21:46 seven nscd[1214]: 1214 monitored file `/etc/passwd` was written to
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/passwd` (1)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/group` (3)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/passwd` (1)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/group` (3)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitored file `/etc/passwd` was written to
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/passwd` (1)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/group` (3)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/passwd` (1)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring file `/etc/group` (3)
Nov 08 01:21:46 seven nscd[1214]: 1214 monitoring directory `/etc` (2)
Nov 08 01:21:49 seven systemd[1]: Reloading.
Nov 08 01:21:49 seven systemd[1]: nss-lookup.target: Dependency Before=nss-lookup.target dropped
Nov 08 01:21:49 seven systemd[1]: Reloading.
Nov 08 01:21:49 seven systemd[1]: nss-lookup.target: Dependency Before=nss-lookup.target dropped
Nov 08 01:21:49 seven [RPM][4640]: install lxd-3.18-lp151.11.1.x86_64: success
Nov 08 01:21:49 seven [RPM][4640]: install lxd-3.18-lp151.11.1.x86_64: success
Nov 08 01:21:49 seven [RPM][4640]: Transaction ID 5dc498fa finished: 0
Nov 08 01:21:50 seven [RPM][4693]: Transaction ID 5dc498fe started
Nov 08 01:21:50 seven [RPM][4693]: install lxd-bash-completion-3.18-lp151.11.1.noarch: success
Nov 08 01:21:50 seven [RPM][4693]: install lxd-bash-completion-3.18-lp151.11.1.noarch: success
Nov 08 01:21:50 seven [RPM][4693]: Transaction ID 5dc498fe finished: 0
Nov 08 01:22:03 seven systemd[1]: Started FUSE filesystem for LXC.
Nov 08 01:22:03 seven systemd[1]: Reached target Network is Online.
Nov 08 01:22:03 seven systemd[1]: Starting LXD Container Hypervisor...
Nov 08 01:22:03 seven kernel: new mount options do not match the existing superblock, will be ignored
Nov 08 01:22:03 seven lxcfs[4709]: mount namespace: 5
Nov 08 01:22:03 seven lxcfs[4709]: hierarchies:
Nov 08 01:22:03 seven lxcfs[4709]: 0: fd: 6: rdma
Nov 08 01:22:03 seven lxcfs[4709]: 1: fd: 7: perf_event
Nov 08 01:22:03 seven lxcfs[4709]: 2: fd: 8: devices
Nov 08 01:22:03 seven lxcfs[4709]: 3: fd: 9: freezer
Nov 08 01:22:03 seven lxcfs[4709]: 4: fd: 10: blkio
Nov 08 01:22:03 seven lxcfs[4709]: 5: fd: 11: memory
Nov 08 01:22:03 seven lxcfs[4709]: 6: fd: 12: net_cls,net_prio
Nov 08 01:22:03 seven lxcfs[4709]: 7: fd: 13: hugetlb
Nov 08 01:22:03 seven lxcfs[4709]: 8: fd: 14: cpuset
Nov 08 01:22:03 seven lxcfs[4709]: 9: fd: 15: cpu,cpuacct
Nov 08 01:22:03 seven lxcfs[4709]: 10: fd: 16: pids
Nov 08 01:22:03 seven lxcfs[4709]: 11: fd: 17: name=systemd
Nov 08 01:22:03 seven lxcfs[4709]: 12: fd: 18: unified
Nov 08 01:22:03 seven lxd[4710]: t=2019-11-08T01:22:03+0300 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
Nov 08 01:22:03 seven systemd[1]: lxd.service: Main process exited, code=killed, status=11/SEGV
EDIT:
i did some googling some people has done the followings so i did, BUT STILL NOT WORKING;
chmod u+s /usr/lib/lxc/lxc-user-nic
[FONT=Helvetica]/etc/pam.d/common-session:session optional pam_cgfs.so -c all ## is supposed to make cgroup handler
[/FONT]
edit so i let it hanging till it self terminated with this output and logs;
systemctl start lxd
Job for lxd.service failed because a fatal signal was delivered to the control process.
See "systemctl status lxd.service" and "journalctl -xe" for details.
Nov 08 01:32:03 seven lxd[4711]: Error: LXD still not running after 600s timeout (Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection refused)
Nov 08 01:32:03 seven systemd[1]: lxd.service: Start-post operation timed out. Stopping.
Nov 08 01:32:03 seven systemd[1]: lxd.service: Control process exited, code=exited status=1
Nov 08 01:32:03 seven systemd[1]: Failed to start LXD Container Hypervisor.
Nov 08 01:32:03 seven systemd[1]: lxd.service: Unit entered failed state.
Nov 08 01:32:03 seven systemd[1]: lxd.service: Failed with result 'signal'.
Nov 08 01:32:03 seven systemd[1]: lxd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 08 01:32:03 seven systemd[1]: Stopped LXD Container Hypervisor.
Nov 08 01:32:03 seven systemd[1]: Starting LXD Container Hypervisor...
Nov 08 01:32:03 seven lxd[5373]: t=2019-11-08T01:32:03+0300 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
Nov 08 01:32:03 seven systemd[1]: lxd.service: Main process exited, code=killed, status=11/SEGV
Nov 08 01:33:26 seven systemd[1]: Starting Cleanup of Temporary Directories...
lxd -d
INFO[11-07|16:51:06] LXD 3.18 is starting in normal mode path=/var/lib/lxd
INFO[11-07|16:51:06] Kernel uid/gid map:
INFO[11-07|16:51:06] - u 0 0 4294967295
INFO[11-07|16:51:06] - g 0 0 4294967295
INFO[11-07|16:51:06] Configured LXD uid/gid map:
INFO[11-07|16:51:06] - u 0 400000000 500000001
INFO[11-07|16:51:06] - g 0 400000000 500000001
WARN[11-07|16:51:06] CGroup memory swap accounting is disabled, swap limits will be ignored.
INFO[11-07|16:51:06] Kernel features:
INFO[11-07|16:51:06] - netnsid-based network retrieval: no
INFO[11-07|16:51:06] - uevent injection: no
INFO[11-07|16:51:06] - seccomp listener: no
INFO[11-07|16:51:06] - unprivileged file capabilities: no
INFO[11-07|16:51:06] - shiftfs support: no
INFO[11-07|16:51:06] Initializing local database
DBUG[11-07|16:51:06] Initializing database gateway
DBUG[11-07|16:51:06] Start database node id=1 address=
INFO[11-07|16:51:06] Starting /dev/lxd handler:
INFO[11-07|16:51:06] - binding devlxd socket socket=/var/lib/lxd/devlxd/sock
INFO[11-07|16:51:06] REST API daemon:
INFO[11-07|16:51:06] - binding Unix socket socket=/var/lib/lxd/unix.socket
INFO[11-07|16:51:06] Initializing global database
DBUG[11-07|16:51:06] Dqlite: connected address=1 attempt=0
INFO[11-07|16:51:06] Initializing storage pools
DBUG[11-07|16:51:06] No existing storage pools detected
INFO[11-07|16:51:06] Initializing networks
DBUG[11-07|16:51:06] New task Operation: f2f5075f-5b97-4f3f-9e14-d2f67869b900
INFO[11-07|16:51:06] Pruning leftover image files
DBUG[11-07|16:51:06] Started task operation: f2f5075f-5b97-4f3f-9e14-d2f67869b900
INFO[11-07|16:51:06] Done pruning leftover image files
INFO[11-07|16:51:06] Loading daemon configuration
DBUG[11-07|16:51:06] Initialized inotify with file descriptor 23
DBUG[11-07|16:51:06] Success for task operation: f2f5075f-5b97-4f3f-9e14-d2f67869b900
DBUG[11-07|16:51:06] New task Operation: 3da1c9f5-a0d3-4da8-8646-d6ed445fbcfb
INFO[11-07|16:51:06] Pruning expired images
DBUG[11-07|16:51:06] Started task operation: 3da1c9f5-a0d3-4da8-8646-d6ed445fbcfb
INFO[11-07|16:51:06] Done pruning expired images
DBUG[11-07|16:51:06] New task Operation: ff9f8e5e-1b30-4648-a212-aa415be1ac03
DBUG[11-07|16:51:06] Success for task operation: 3da1c9f5-a0d3-4da8-8646-d6ed445fbcfb
INFO[11-07|16:51:06] Pruning expired container backups
DBUG[11-07|16:51:06] Started task operation: ff9f8e5e-1b30-4648-a212-aa415be1ac03
DBUG[11-07|16:51:06] Success for task operation: ff9f8e5e-1b30-4648-a212-aa415be1ac03
INFO[11-07|16:51:06] Done pruning expired container backups
DBUG[11-07|16:51:06] New task Operation: 404cbf64-4823-4e63-98f9-7d843f283e1f
DBUG[11-07|16:51:06] New task Operation: a890790f-c9f0-4bbe-93d5-cbdcc8b6fe70
INFO[11-07|16:51:06] Updating instance types
DBUG[11-07|16:51:06] Started task operation: 404cbf64-4823-4e63-98f9-7d843f283e1f
INFO[11-07|16:51:06] Expiring log files
DBUG[11-07|16:51:06] Started task operation: a890790f-c9f0-4bbe-93d5-cbdcc8b6fe70
INFO[11-07|16:51:06] Done updating instance types
INFO[11-07|16:51:06] Done expiring log files
DBUG[11-07|16:51:06] Success for task operation: a890790f-c9f0-4bbe-93d5-cbdcc8b6fe70
DBUG[11-07|16:51:11] Success for task operation: 404cbf64-4823-4e63-98f9-7d843f283e1f
^CINFO[11-07|16:51:14] Received 'interrupt signal', exiting
INFO[11-07|16:51:14] Starting shutdown sequence
INFO[11-07|16:51:14] Stopping REST API handler:
INFO[11-07|16:51:14] - closing socket socket=/var/lib/lxd/unix.socket
INFO[11-07|16:51:14] Stopping /dev/lxd handler:
INFO[11-07|16:51:14] - closing socket socket=/var/lib/lxd/devlxd/sock
INFO[11-07|16:51:14] Closing the database
DBUG[11-07|16:51:14] Stop database gateway
INFO[11-07|16:51:14] Unmounting temporary filesystems
INFO[11-07|16:51:14] Done unmounting temporary filesystems
Do you have some customization’s for tmpfs perhaps? Your core dump occurs at creating the storage pool as that’s what I see after your system core dumps.
Hi
If you have these then lxd is running, can you check for stale lxd running, if not, can you remove those two directories and try starting lxd again.