Nested LXD, how?
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Fri Oct 23 20:38:25 UTC 2015
OMG! This is so cool!! Thank you so much!!! :-D
Now, the million dollar question... I'll be playing with LXD on
OpenStack... Is there an elegant solution for this?
I mean, how can OpenStack launch a LXD containers, with
"security.nesting 1" automatically ?
Better to include this tip on your next blog post too! ;-)
Thank you again!
On 23 October 2015 at 15:55, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> On the host, edit /etc/subuid and /etc/subgid to allocate sufficient uid
> ranges. In the root:firstuid:range entries, change range to be, let's say,
> 200000. So something like
> (I'm showing both root and lxd bc which to use depends on your lxd version,
> I think)
> Initialize a container,
> lxc init wily w1
> lxc config set w1 security.nesting 1
> lxc start w1
> Now inside w1, edit /etc/subuid and /etc/subgid to make sure the root
> allcoations do not go past 200000. so set them to say:
> Now you should be able to launch a container inside w1. (I just tried
> this in a fresh vm, worked here)
> I should do a blog post on this soon.
> Quoting Martinx - ジェームズ (thiagocmartinsc at gmail.com):
>> I need to create 4, or more, LXD containers, inside 1 LXD container.
>> How to do that?
>> The first LXD container, is running on a KVM (or bare-metal) host,
>> with Ubuntu 14.04 + LXD 0.20 (ppa:ubuntu-lxc/lxd-stable).
>> I really appreciate any help!
>> I'm seeing that both LXC itself, and LXD, supported nested containers but, how?
>> I'm trying but, it doesn't work...
>> Thanks in advance!
>> ubuntu-server mailing list
>> ubuntu-server at lists.ubuntu.com
>> More info: https://wiki.ubuntu.com/ServerTeam
More information about the ubuntu-server