Knowledge base of ~80+ markdown files across 14 domains (00-13), Logseq graph, hardware design files (KiCAD), infrastructure configs, and talas-wiki static site. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.7 KiB
Text
58 lines
1.7 KiB
Text
sudo -i
|
|
#####
|
|
# Ref : https://web.archive.org/web/20240000000000*/https://linuxcontainers.org/incus/docs/main/installing/
|
|
|
|
|
|
# add incus repository
|
|
dnf install 'dnf-command(copr)'
|
|
dnf copr enable ganto/lxc4
|
|
|
|
# install incus package
|
|
dnf install incus
|
|
|
|
# init permissions
|
|
newgrp incus-admin
|
|
usermod -aG incus-admin nmilovanovic
|
|
echo "root:1000000:1000000000" >> /etc/subuid
|
|
echo "root:1000000:1000000000" >> /etc/subgid
|
|
|
|
# initialize incus
|
|
incus admin init
|
|
|
|
# create zfs pool for incus
|
|
zfs create zroot/incus
|
|
zfs set mountpoint=/home zroot/incus
|
|
|
|
# create debian instance named postgresql in incus
|
|
incus storage create incus_storage zfs source=zroot/incus
|
|
incus launch images:debian/bookworm postgresql -s incus_storage
|
|
|
|
#set network
|
|
firewall-cmd --zone=trusted --change-interface=incusbr0 --permanent
|
|
firewall-cmd --reload
|
|
|
|
# launch a bash on container
|
|
incus shell postgresql
|
|
# or less efficient but same
|
|
incus exec postgresql -- /bin/bash
|
|
|
|
|
|
|
|
incus launch images:debian/bookworm pg-main -s incus_storage
|
|
incus launch images:debian/bookworm pg-pitr -s incus_storage
|
|
incus launch images:debian/bookworm anbl-pg-main -s incus_storage
|
|
incus launch images:debian/bookworm anbl-pg-replica -s incus_storage
|
|
|
|
|
|
incus launch images:debian/bookworm wafwaf -s incus_storage
|
|
incus launch images:debian/bookworm apache1 -s incus_storage
|
|
incus launch images:debian/bookworm apache2 -s incus_storage
|
|
|
|
|
|
|
|
incus project create <project>
|
|
incus project edit <project>
|
|
incus move <initial_instance_name> <new_instance_name> --project <source_project> --target-project <target_project>
|
|
incus move haproxy-main haproxy-main --project haproxy-group --target-project default
|
|
incus list --project <project>
|
|
incus project switch <project>
|