<div dir="ltr"><div class="gmail_quote"><div dir="ltr">вт, 8 нояб. 2016 г. в 13:57, Andrey Repin <<a href="mailto:anrdaemon@yandex.ru">anrdaemon@yandex.ru</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings, Andriy Tovstik!<br class="gmail_msg">
<br class="gmail_msg">
>>> I am learning LXC features because we are going to implement it in our<br class="gmail_msg">
>>> production environment.<br class="gmail_msg">
>><br class="gmail_msg">
>> LXC or LXD? Your configuration smells the latter.<br class="gmail_msg">
<br class="gmail_msg">
> LXD, you are right. But AFAIK LXD is an extension that was built over LXC<br class="gmail_msg">
> subsystem, isn't it?<br class="gmail_msg">
<br class="gmail_msg">
LXD is an environment by and in itself. It uses different configuration tools<br class="gmail_msg">
to setup and manage containers. </blockquote><div> </div><div>Ok, lets forget about lxc, lets talking about lxd.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
My (overly simplified) explanation of use case is that LXC is what I'd use if<br class="gmail_msg">
I need to setup a system once and forget (as a figure of speech) it exists,<br class="gmail_msg">
while LXD is a tool for mass-deployment of applications/appliances. With<br class="gmail_msg">
leaning to the latter, since LXD deploys entire stack in a single container.<br class="gmail_msg"></blockquote><div> </div><div>I have big plans :) so LXD looks more suitable for me <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
>>> Could somebody explain me is there any well documented way to mount<br class="gmail_msg">
>>> additional filesystems or (preferable) block devices into Unprivileged<br class="gmail_msg">
>>> containers? is it supports live migration of container?<br class="gmail_msg">
>><br class="gmail_msg">
>> You could do better at explaining, what you need that for. It'll speed up the<br class="gmail_msg">
>> answer.<br class="gmail_msg">
>> Normally, you don't need to "mount block devices into container".<br class="gmail_msg">
<br class="gmail_msg">
> Well... I'm going to use LXD to isolate two applications that will be<br class="gmail_msg">
> heavily loaded. May be it will be necessary to give for each other dedicated storage.<br class="gmail_msg">
<br class="gmail_msg">
You can do that by just mounting that dedicated storage in the profile. You<br class="gmail_msg">
don't really need block devices inside a container, unless your use case<br class="gmail_msg">
demands specifically block-level access. <br class="gmail_msg"></blockquote><div><br></div><div>Ok, let me clarify my question. As i've read in <a href="https://github.com/lxc/lxd/blob/master/doc/configuration.md">https://github.com/lxc/lxd/blob/master/doc/configuration.md</a> there are two storage option can be mounted into container:</div><div><br></div><div>disk and unix-block device. I played with the both ones. Lets talk about disk device. As you can see in my example i've used disk device with a block device as a source. I can change source option and set directory as a source. Anyway i recieve "permission denied" error when i try to access to this directory inside my container... Remember we talk about unprivileged container. Privileged container works fine. I have found a lot of topics about this problem, but i'm seeking for official, best practice soluiton.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--<br class="gmail_msg">
With best regards,<br class="gmail_msg">
Andrey Repin<br class="gmail_msg">
Tuesday, November 8, 2016 14:25:33<br class="gmail_msg">
<br class="gmail_msg">
Sorry for my terrible english...<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
lxc-users mailing list<br class="gmail_msg">
<a href="mailto:lxc-users@lists.linuxcontainers.org" class="gmail_msg" target="_blank">lxc-users@lists.linuxcontainers.org</a><br class="gmail_msg">
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">WBR, Andriy Tovstik</div></div>