Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: LXD dose not start

  1. #1

    Question LXD dose not start

    Hello there, i just installed lxd on my opensuse 15.1 using zypper;
    Code:
    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.
    adding logs here;
    Code:
    tail -50 /var/log/lxd/lxd.log 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - uevent injection: no" 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - seccomp listener: no" 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - unprivileged file capabilities: no" 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - shiftfs support: no" 
    t=2019-11-07T19:39:50+0300 lvl=info msg="Initializing local database" 
    t=2019-11-07T19:39:50+0300 lvl=info msg="Starting /dev/lxd handler:" 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
    t=2019-11-07T19:39:50+0300 lvl=info msg="REST API daemon:" 
    t=2019-11-07T19:39:50+0300 lvl=info msg=" - binding Unix socket" socket=/var/lib/lxd/unix.socket
    t=2019-11-07T19:39:50+0300 lvl=info msg="Initializing global database" 
    t=2019-11-07T19:40:33+0300 lvl=info msg="LXD 3.18 is starting in normal mode" path=/var/lib/lxd
    t=2019-11-07T19:40:33+0300 lvl=info msg="Kernel uid/gid map:" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - u 0 0 4294967295" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - g 0 0 4294967295" 
    t=2019-11-07T19:40:33+0300 lvl=info msg="Configured LXD uid/gid map:" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - u 0 100000 65536" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - g 0 100000 65536" 
    t=2019-11-07T19:40:33+0300 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored." 
    t=2019-11-07T19:40:33+0300 lvl=info msg="Kernel features:" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - netnsid-based network retrieval: no" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - uevent injection: no" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - seccomp listener: no" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - unprivileged file capabilities: no" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - shiftfs support: no" 
    t=2019-11-07T19:40:33+0300 lvl=info msg="Initializing local database" 
    t=2019-11-07T19:40:33+0300 lvl=info msg="Starting /dev/lxd handler:" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
    t=2019-11-07T19:40:33+0300 lvl=info msg="REST API daemon:" 
    t=2019-11-07T19:40:33+0300 lvl=info msg=" - binding Unix socket" socket=/var/lib/lxd/unix.socket
    t=2019-11-07T19:40:33+0300 lvl=info msg="Initializing global database" 
    t=2019-11-07T19:41:33+0300 lvl=info msg="LXD 3.18 is starting in normal mode" path=/var/lib/lxd
    t=2019-11-07T19:41:33+0300 lvl=info msg="Kernel uid/gid map:" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - u 0 0 4294967295" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - g 0 0 4294967295" 
    t=2019-11-07T19:41:33+0300 lvl=info msg="Configured LXD uid/gid map:" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - u 0 100000 65536" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - g 0 100000 65536" 
    t=2019-11-07T19:41:33+0300 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored." 
    t=2019-11-07T19:41:33+0300 lvl=info msg="Kernel features:" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - netnsid-based network retrieval: no" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - uevent injection: no" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - seccomp listener: no" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - unprivileged file capabilities: no" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - shiftfs support: no" 
    t=2019-11-07T19:41:33+0300 lvl=info msg="Initializing local database" 
    t=2019-11-07T19:41:33+0300 lvl=info msg="Starting /dev/lxd handler:" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
    t=2019-11-07T19:41:33+0300 lvl=info msg="REST API daemon:" 
    t=2019-11-07T19:41:33+0300 lvl=info msg=" - binding Unix socket" socket=/var/lib/lxd/unix.socket
    t=2019-11-07T19:41:33+0300 lvl=info msg="Initializing global database"
    am i missing something? how do i get it to start please?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,517
    Blog Entries
    15

    Default Re: LXD dose not start

    Hi
    I see;

    Code:
    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
    
    Additional rpm output:
    ==>>> setting /usr/lib/lxc/lxc-user-nic to root:kvm 4750. (wrong permissions 0750)
    
    systemctl status lxd
    
    ● lxd.service - LXD Container Hypervisor
       Loaded: loaded (/usr/lib/systemd/system/lxd.service; disabled; vendor preset: disabled)
       Active: inactive (dead)
         Docs: man:lxd(1)
    
    systemctl start lxd
    systemctl status lxd
    
    ● lxd.service - LXD Container Hypervisor
       Loaded: loaded (/usr/lib/systemd/system/lxd.service; disabled; vendor preset: disabled)
       Active: active (running) since Thu 2019-11-07 10:53:38 CST; 1s ago
         Docs: man:lxd(1)
      Process: 5640 ExecStartPost=/usr/bin/lxd waitready --timeout=600 (code=exited, status=0/SUCCESS)
     Main PID: 5639 (lxd)
        Tasks: 23
       Memory: 43.2M
          CPU: 446ms
       CGroup: /system.slice/lxd.service
               └─5639 /usr/bin/lxd --group=lxd --logfile=/var/log/lxd/lxd.log
    
    Nov 07 10:53:36 grover-os151.homelinux.org systemd[1]: Starting LXD Container Hypervisor...
    Nov 07 10:53:36 grover-os151.homelinux.org lxd[5639]: t=2019-11-07T10:53:36-0600 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
    Nov 07 10:53:38 grover-os151.homelinux.org systemd[1]: Started LXD Container Hypervisor.
    I image your system and CPU supports virtualization and is enabled in the BIOS?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: LXD dose not start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    I see;

    Code:
    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
    
    Additional rpm output:
    ==>>> setting /usr/lib/lxc/lxc-user-nic to root:kvm 4750. (wrong permissions 0750)
    
    systemctl status lxd
    
    ● lxd.service - LXD Container Hypervisor
       Loaded: loaded (/usr/lib/systemd/system/lxd.service; disabled; vendor preset: disabled)
       Active: inactive (dead)
         Docs: man:lxd(1)
    
    systemctl start lxd
    systemctl status lxd
    
    ● lxd.service - LXD Container Hypervisor
       Loaded: loaded (/usr/lib/systemd/system/lxd.service; disabled; vendor preset: disabled)
       Active: active (running) since Thu 2019-11-07 10:53:38 CST; 1s ago
         Docs: man:lxd(1)
      Process: 5640 ExecStartPost=/usr/bin/lxd waitready --timeout=600 (code=exited, status=0/SUCCESS)
     Main PID: 5639 (lxd)
        Tasks: 23
       Memory: 43.2M
          CPU: 446ms
       CGroup: /system.slice/lxd.service
               └─5639 /usr/bin/lxd --group=lxd --logfile=/var/log/lxd/lxd.log
    
    Nov 07 10:53:36 grover-os151.homelinux.org systemd[1]: Starting LXD Container Hypervisor...
    Nov 07 10:53:36 grover-os151.homelinux.org lxd[5639]: t=2019-11-07T10:53:36-0600 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
    Nov 07 10:53:38 grover-os151.homelinux.org systemd[1]: Started LXD Container Hypervisor.
    I image your system and CPU supports virtualization and is enabled in the BIOS?
    Yes sir, virtualization is enabled.

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,517
    Blog Entries
    15

    Default Re: LXD dose not start

    Quote Originally Posted by seven_skies View Post
    Yes sir, virtualization is enabled.
    Hi
    Disk space ok? Try starting again and wait, does it finally start?

    My test Leap 15.1 is actually a qemu instance, so virtualized running a virtualization container....

    I also see more info in the log output, does yours stop at global, or other lines setup additional items?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,695
    Blog Entries
    2

    Default Re: LXD dose not start

    Your post caught my eye just as I'm running... So what I'm posting is going to be brief...

    1. 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.

    2. Recommend you collect some information.
    Open an elevated console running the following command and leave it running
    Code:
    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.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: LXD dose not start

    Quote Originally Posted by tsu2 View Post
    Your post caught my eye just as I'm running... So what I'm posting is going to be brief...

    1. 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.

    2. Recommend you collect some information.
    Open an elevated console running the following command and leave it running
    Code:
    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.

    TSU
    Hi,
    with logs on;
    Code:
    systemctl start lxd,; hangs....
    Starting LXD Container Hypervisor...
    t=2019-11-08T00:12:52+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
    till i ctl + c;
    systemctl stop lxc;
    Code:
    Stopped LXD Container Hypervisor.
    
    lxd.service: Unit entered failed state.
    lxd.service: Failed with result 'signal'.

  7. #7

    Default Re: LXD dose not start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Disk space ok? Try starting again and wait, does it finally start?

    My test Leap 15.1 is actually a qemu instance, so virtualized running a virtualization container....

    I also see more info in the log output, does yours stop at global, or other lines setup additional items?
    Disk space is ok, have more than 100 GB empty, i do use kvm too, infact some vms are running without issue.
    edit: disk format is ext4.

  8. #8

    Default Re: LXD dose not start

    additional log that i missed out:
    Code:
    Error: LXD still not running after 600s timeout (Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection refused)

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,517
    Blog Entries
    15

    Default Re: LXD dose not start

    Quote Originally Posted by seven_skies View Post
    additional log that i missed out:
    Code:
    Error: LXD still not running after 600s timeout (Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection refused)
    Hi
    Have you run lxd init command?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10

    Default Re: LXD dose not start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Have you run lxd init command?
    Code:
    sudo lxd init
    Error: Failed to connect to local LXD: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: connection refused

Page 1 of 5 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •