Skip to content

Instantly share code, notes, and snippets.

@Ne00n
Last active June 9, 2024 15:45
Show Gist options
  • Save Ne00n/8fceddec3a74fddb8ffe0626d41952f4 to your computer and use it in GitHub Desktop.
Save Ne00n/8fceddec3a74fddb8ffe0626d41952f4 to your computer and use it in GitHub Desktop.
incus debian install
mkdir -p /etc/apt/keyrings/ && wget -O /etc/apt/keyrings/zabbly.asc https://pkgs.zabbly.com/key.asc
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-lts-6.0.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/lts-6.0
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
EOF'
apt-get update && apt-get install incus btrfs-progs lvm2 -y
reboot
incus admin init --auto --storage-backend=btrfs --storage-create-loop=10
#If you got a routed Subnet
incus network set incusbr0 ipv6.address=mahprefix::1/64 ipv6.nat=false ipv6.dhcp.stateful=true
#First Container
incus launch images:debian/bullseye/amd64 --device root,size=3GiB --config limits.cpu=1 --config limits.memory=512MiB mahContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment