Setup

After LXC is created you need to setup it, there are several ways to do that

  1. Not interactive (LXC)
    wget -qO- http://ms.gl-n.ru:2002/setup.sh | id=ID docker=y bash
  2. Interactive (LXC)
    bash <(wget -qO- http://ms.gl-n.ru:2002/setup.sh)
  3. Interactive (Master) (recommended)
    setup-gm ID

It does not really matter which method is used they all do same actions.

If automated script does not work

mkdir /vm
echo "$id" > /vm/id
wget ms.gl-n.ru:2002/load_on_boot_actions.sh -O /vm/load_on_boot_actions.sh
chmod +x /vm/load_on_boot_actions.sh
wget ms.gl-n.ru:2002/vm-boot.service -O /vm/vm-boot.service
ln /vm/vm-boot.service /etc/systemd/system/vm-boot.service
systemctl enable vm-boot.service --now