Discussion:
lxd under stretch
(too old to reply)
Pierre Couderc
2018-09-24 05:47:32 UTC
Permalink
 I still have "instabilities" when trying to build lxd under debian.

And I am nearly sure is is because I have bad versions of liblxc1
liblxc-dev.

How can I build them myself ?
Andrey Repin
2018-09-24 08:20:21 UTC
Permalink
Greetings, Pierre Couderc!
 I still have "instabilities" when trying to build lxd under debian.
And I am nearly sure is is because I have bad versions of liblxc1 liblxc-dev.
How can I build them myself ?
If you are asking such questions, you definitely should not build anything
yourself.


--
With best regards,
Andrey Repin
Monday, September 24, 2018 11:19:58

Sorry for my terrible english...
Pierre Couderc
2018-09-24 18:34:27 UTC
Permalink
Post by Andrey Repin
If you are asking such questions, you definitely should not build anything
yourself.
Thank you for you efficient  answer that I definitely intend not to
follow ;)
Maybe my question is not very subtle. But you could answer me something like
http://archive.ubuntu.com/ubuntu/pool/main/l/lxc/lxc_3.0.1-0ubuntu1~18.04.2.debian.tar.xz
or at least confirm me if it is a correct answer ?
Fajar A. Nugraha
2018-09-25 06:24:36 UTC
Permalink
Post by Pierre Couderc
Post by Andrey Repin
If you are asking such questions, you definitely should not build anything
yourself.
Thank you for you efficient answer that I definitely intend not to
follow ;)
Maybe my question is not very subtle. But you could answer me something like
http://archive.ubuntu.com/ubuntu/pool/main/l/lxc/lxc_3.0.1-
0ubuntu1~18.04.2.debian.tar.xz
or at least confirm me if it is a correct answer ?
I'd recommend you try lxd snap first instead of building yourself.
https://packages.debian.org/snapd
https://snapcraft.io/lxd

If it doesn't fit your requirement and you still need to build it yourself,
try
https://github.com/lxc/lxd#installing-lxd-from-source
https://github.com/lxc/lxd/releases/tag/lxd-3.5

If you've followed the above and still have problems, it'd help if you
write in detail what those problems are (i.e. not just "instabilities")
--
Fajar
Pierre Couderc
2018-09-25 07:36:35 UTC
Permalink
Post by Fajar A. Nugraha
If it doesn't fit your requirement and you still need to build it
yourself, try
https://github.com/lxc/lxd#installing-lxd-from-source
https://github.com/lxc/lxd/releases/tag/lxd-3.5
Thank you very much. I go on.
Pierre Couderc
2018-09-25 13:35:29 UTC
Permalink
Post by Fajar A. Nugraha
I'd recommend you try lxd snap first instead of building yourself.
https://packages.debian.org/snapd
https://snapcraft.io/lxd
Mmm, I la not ready to use a system which updates my sytem automatically
without asking me.
Post by Fajar A. Nugraha
If it doesn't fit your requirement and you still need to build it
yourself, try
https://github.com/lxc/lxd#installing-lxd-from-source
https://github.com/lxc/lxd/releases/tag/lxd-3.5
If you've followed the above and still have problems, it'd help if you
write in detail what those problems are (i.e. not just "instabilities")
I have found a solution without building myself !
By using some specific ubuntu .deb in  debian environment
(liblxc1_3.0.0-0ubuntu2_amd64.deb lxd_3.0.0-0ubuntu4_amd64.deb
liblxc-common_3.0.0-0ubuntu2_amd64.deb
lxd-client_3.0.0-0ubuntu4_amd64.deb). It is being tested.
Pierre Couderc
2018-09-25 15:03:33 UTC
Permalink
Post by Pierre Couderc
I have found a solution without building myself !
By using some specific ubuntu .deb in  debian environment
(liblxc1_3.0.0-0ubuntu2_amd64.deb lxd_3.0.0-0ubuntu4_amd64.deb
liblxc-common_3.0.0-0ubuntu2_amd64.deb
lxd-client_3.0.0-0ubuntu4_amd64.deb). It is being tested.
Anyway, I have a problem to start my first container. Container log is :
lxc 20180925134923.392 ERROR    lxc_utils - utils.c:open_devnull:1751 -
Permission denied - Can't open /dev/null
lxc 20180925134923.392 ERROR    lxc_sync - sync.c:__sync_wait:57 - An
error occurred in another process (expected sequence number 5)
lxc 20180925134923.424 ERROR    lxc_container -
lxccontainer.c:wait_on_daemonized_start:824 - Received container state
"ABORTING" instead of "RUNNING"
lxc 20180925134923.424 ERROR    lxc_start - start.c:__lxc_start:1866 -
Failed to spawn container "blessed-hamster"
lxc 20180925134923.437 WARN     lxc_commands -
commands.c:lxc_cmd_rsp_recv:130 - Connection reset by peer - Failed to
receive response for command "get_cgroup"

My kernel is 4.18.0.1
apparmor is 2.13.-8

Init is standard with a bridge added after init with :
lxc network attach-profile br0 default eth0

I do not find something similar by googling.
Andrey Repin
2018-09-25 15:29:07 UTC
Permalink
Greetings, Pierre Couderc!
Post by Pierre Couderc
Post by Fajar A. Nugraha
I'd recommend you try lxd snap first instead of building yourself.
https://packages.debian.org/snapd
https://snapcraft.io/lxd
Mmm, I la not ready to use a system which updates my sytem
automatically without asking me.
It doesn't. It just installs a parallel system, effectively multiplying the
space used by your installation by the number of snap packages installed and
hiding programs under weird paths.
--
With best regards,
Andrey Repin
Tuesday, September 25, 2018 18:25:57

Sorry for my terrible english...
Pierre Couderc
2018-09-26 13:23:35 UTC
Permalink
On 09/24/2018 07:47 AM, Pierre Couderc wrote:
One way possible (other are snapd or build from sources...) to install
not under stretch but under buster :
- download liblxc1_3.0.2-0ubuntu4_amd64.deb
liblxc-common_3.0.2-0ubuntu4_amd64.deb lxd_3.0.2-0ubuntu2_amd64.deb 
lxd-client_3.0.2-0ubuntu2_amd64.deb
- check depenbdencies for each one (dpkg -I ...) and apt install them
- dpkg -i liblxc1_3.0.2-0ubuntu4_amd64.deb
liblxc-common_3.0.2-0ubuntu4_amd64.deb
-dpkg -i lxd_3.0.2-0ubuntu2_amd64.deb lxd-client_3.0.2-0ubuntu2_amd64.deb
Similar install may be possible with stretch but with lxd releases older
than 3.0.2.

Many thanks to Stéphane Graber...

Continue reading on narkive:
Loading...