UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Libertine and Lxc

    Scheduled Pinned Locked Moved Libertine
    5 Posts 3 Posters 908 Views 1 Watching
    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.
      • P Offline
        peaceblackhair
        last edited by

        Hello, I'm trying to run an lxc container with libertine. In the documentation, it's mentioned as
        "-t type can be either chroot or lxc. The default is chroot , which is compatible with every device.

        If the kernel of your device supports it, lxc is suggested. "

        I'm using volla phone and the kernel version is 4.4.146+ so, by the kernel lxc must be supported.

        Whenever i try to create lxc container with libertine with this command "

        libertine-container-manager create -i test -t lxc
        
        libertine-container-manager:123: ERROR: create():	Failed to create container: 'No module named 'libertine.LxcContainer''
        

        I'm getting this error. To fix the error i tried to install lxd and try to create a container from lxd however i can't even init the lxd :

        sudo lxd init
        
        error: Unable to talk to LXD: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: connect: no such file or directory
        
        

        it looks like unix.socket file is missing, and i try to create it manually and set the ownership to lxd group however it didn't work.

        Is it possible to work with lxd in UT or what's the part im missing ?

        Thanks.

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @peaceblackhair
          last edited by arubislander

          @peaceblackhair two things:

          1. There are two totally separate, but related technologies that provide the lxc command and one is lxd, as you tried, and another is lxc. I suspect libertine in 16.04 uses the latter. But I may be wrong.
          2. But more pertinent to your problems. While Libertine in 16.04 does support creating lxc containers (as opposed to lxd containers, hence 1) to keep the root image size small enough the necessary packages were left out and are not installed.
            Installing them yourself, while possible, would require you to do some repairing of your system to get it up and running again every time you switched channels or potentially got a full imagine update, and is therefore understandably unsupported.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            peaceblackhair @arubislander
            last edited by

            @arubislander Thank you for your reply. Do you know which packages are required in order to create lxc container with libertine ?

            arubislanderA dobeyD 2 Replies Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @peaceblackhair
              last edited by

              @peaceblackhair I am sorry, I do not.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              • dobeyD Offline
                dobey @peaceblackhair
                last edited by

                @peaceblackhair said in Libertine and Lxc:

                Do you know which packages are required in order to create lxc container with libertine ?

                The python3-libertine-lxc package is required for lxc to work in libertine. This is not included by default currently, because the stack of packages it pulls in results in python2 being installed, which takes up too much space in the root filesystem.

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