Talk:LXD

Possible incorrect command
I had to do cat /etc/subuid > /etc/subgid since the wiki article is creating uids (--add-subuids) twice instead of gid.


 * Already fixed for a while now. Thanks for the note and sorry for the copy'n'paste typo. -- Holgersson (talk) 15:07, 24 March 2019 (UTC)

Wrong subuids/subgids
With current lxd release had to use another subuids/subgids range as the one given in the wiki.

usermod --add-subuids 1000000-1001000000 root usermod --add-subgids 1000000-1001000000 root

Soratobuneko (talk) 22:04, 13 February 2021 (UTC)


 * This has now been fixed in the wiki.
 * Aisha (talk) 05:08, 5 May 2021 (UTC)

Networking doesn't work in openrc system
I got lxd working on systemd system, but with an openrc gentoo following the instructions I have the following issue:


 * net.lxdbr0 has to be created manually (linking to net.lo?)
 * without further configuration net.lxdbr0 fails to start trying to use dhcp
 * no network autoconfigured in containers

How to solve that?

Soratobuneko (talk) 22:15, 13 February 2021 (UTC)


 * I've found the correct IPv4 for lxdbr0 in /var/lib/lxd/networks/lxdbr0/dnsmasq.pid. You can read in that file the following option passed to dnsmasq: --listen-address=10.247.92.1. Using that IP address for lxdbr0 solves the IP(v4) networking problem.


 * But still. It feels a bit hacky and I'd like better instructions to setup correctly the lxd bridge. Soratobuneko (talk) 08:17, 14 February 2021 (UTC)

Conflicting information on cgroups in troubleshooting section
The troubleshooting section has two subsections with directly conflicting information - Containers not starting under OpenRC and Running systemd based containers on OpenRC hosts. I have confirmed that the second section, with setting cgroups="unified" and the other changes mentioned, allows me to run systemd containers. The first section seems spurious and incorrect. I will remove it soon unless someone responds here that it has helped them.

Aisha (talk) 05:13, 5 May 2021 (UTC)


 * Removed old information.
 * Aisha (talk) 19:24, 14 May 2021 (UTC)