Libertine and Lxc
-
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.
-
@peaceblackhair two things:
- 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.
- 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.
-
@arubislander Thank you for your reply. Do you know which packages are required in order to create lxc container with libertine ?
-
@peaceblackhair I am sorry, I do not.
-
@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.