yunohost_dans_lxc
Ceci est une ancienne révision du document !
Table des matières
Un conteneur LXC pour Yunohost
Objectif : Migrer le serveur (VPS) de duniter.be vers un conteneur LXC sur un serveur plus costaud.
(Attention, Yunohost n'est actuellement disponible que pour Debian Stretch et pas encore pour Debian Buster!)
# lxc-create -t download -n yunohost -- --dist debian --release stretch --arch amd64 # cat /var/lib/lxc/yunohost/config lxc.start.auto = 1 # Distribution configuration lxc.include = /usr/share/lxc/config/common.conf lxc.arch = linux64 # Container specific configuration lxc.rootfs.path = dir:/var/lib/lxc/yunohost/rootfs lxc.uts.name = yunohost # Network configuration lxc.net.0.type = veth lxc.net.0.link = lxcbr0 lxc.net.0.flags = up lxc.net.0.hwaddr = 00:16:3e:9e:94:00 # cat /etc/lxc/dnsmasq.conf (...) dhcp-host=yunohost,10.0.3.6 # systemctl restart lxc-net # lxc-start yunohost # lxc-ls -f NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED yunohost RUNNING 1 - 10.0.3.6 - false
Installation de Yunohost
Documentation : Installing YunoHost manually
# lxc-attach yunohost root@yunohost:/# apt install curl root@yunohost:/# curl https://install.yunohost.org | bash
Reverse Proxy Nginx
yunohost_dans_lxc.1578514188.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)