ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing LXD on Ubuntu 18.04 (The Right Way)

    IT Discussion
    3
    10
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage
      last edited by Alex Sage

      Ubuntu 18.04 comes with LXD installed as a DEB package, however the recommended way to install it is via snap.

      Note: If you do a netboot installation LXD is not installed

      On a fresh installation without LXD configured:

      sudo apt remove --purge lxd lxd-client liblxc1 lxcfs
      

      Then install LXD via snap

      sudo snap install lxd
      

      On a existing system with LXD configured/containers running:

      install LXD via snap

       sudo snap install lxd
      

      Then migrate to the snap install of LXD

      sudo lxd.migrate
      
      1 Reply Last reply Reply Quote -1
      • black3dynamiteB
        black3dynamite
        last edited by

        Any source to backup installing lxd via snap?

        What do you have against installing it via apt?

        A 2 Replies Last reply Reply Quote 0
        • A
          Alex Sage @black3dynamite
          last edited by

          @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

          Any source to backup installing lxd via snap?

          https://github.com/lxc/lxd/issues/4757

          black3dynamiteB 1 Reply Last reply Reply Quote 1
          • A
            Alex Sage @black3dynamite
            last edited by

            @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

            What do you have against installing it via apt?

            Nothing.

            1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @Alex Sage
              last edited by black3dynamite

              @aaronstuder said in Installing LXD on Ubuntu 18.04 (The Right Way):

              @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

              Any source to backup installing lxd via snap?

              https://github.com/lxc/lxd/issues/4757

              Oh, so LXD from now on will only be available using snap.

              Have you tried installing LXD on Fedora using Snap?

              A scottalanmillerS 2 Replies Last reply Reply Quote 0
              • A
                Alex Sage @black3dynamite
                last edited by

                @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

                Have you tried install LXD on Fedora using Snap?

                Yup. Works Great!

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @Alex Sage
                  last edited by

                  @aaronstuder said in Installing LXD on Ubuntu 18.04 (The Right Way):

                  @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

                  Have you tried install LXD on Fedora using Snap?

                  Yup. Works Great!

                  With SELinux enabled too?

                  A 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @black3dynamite
                    last edited by

                    @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

                    @aaronstuder said in Installing LXD on Ubuntu 18.04 (The Right Way):

                    @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

                    Any source to backup installing lxd via snap?

                    https://github.com/lxc/lxd/issues/4757

                    Oh, so LXD from now on will only be available using snap.

                    Have you tried installing LXD on Fedora using Snap?

                    That's how we use it on Fedora.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Alex Sage @black3dynamite
                      last edited by Alex Sage

                      @black3dynamite said in Installing LXD on Ubuntu 18.04 (The Right Way):

                      With SELinux enabled too?

                      I was only testing, and I don't really remember.

                      I prefer LXD on Ubuntu since they are both canonical.

                      1 Reply Last reply Reply Quote 0
                      • A
                        Alex Sage
                        last edited by

                        Just tested again with a F28 minimal netinstall.

                        Sadly, it doesn't seem to be working.

                        Getting an error starting services.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post