Config files used in LXD containers running gentoo
Admin Scripts for LXD containers
https://github.com/thermitegod/shell-scripts/blob/master/python/lxd_admin.py
https://github.com/thermitegod/shell-scripts/blob/master/python/lxd_image.py
https://github.com/thermitegod/shell-scripts/blob/master/python/lxd_setup.py
The main container should be named dev-gentoo-clang-minimal since it is kind of hardcoded in the admin scripts
lxc launch images:gentoo/current/amd64 dev-gentoo-clang-minimal
lxc config device add dev-gentoo-clang-minimal eth0 nic name=eth0 nictype=bridged parent=br0
lxc config set dev-gentoo-clang-minimal security.privileged true
lxc config device add dev-gentoo-clang-minimal repos disk source=/var/db/repos path=/var/db/repos
lxc config device add dev-gentoo-clang-minimal distfiles disk source=/var/distfiles path=/var/distfiles
lxc config device add dev-gentoo-clang-minimal packages disk source=/var/packages path=/var/packages
Does not work
https://wiki.gentoo.org/wiki/OpenRC/openrc-init
sys-apps/openrc[sysv-utils]
lxc config set dev-gentoo-clang-minimal raw.lxc 'lxc.init.cmd = /sbin/openrc-init'
Run
lxd-setup
Create containers from template file
https://github.com/thermitegod/shell-scripts/blob/master/python/template/config_lxd.py
lxd-admin -u
Since LXD hosted gentoo image is build with GCC, have to rebuild using clang
Rebuilds @world with either GCC or Clang based on package.env
https://github.com/thermitegod/shell-scripts/blob/master/python/gentoo_rebuild_world.py
dev-lang/php
www-servers/lighttpd
net-p2p/rtorrent
www-apps/rutorrent
app-misc/screen
net-p2p/transmission