Last active 1747670022

Revision 30580851ce166669d70a7eda447718aa4ef7afcd

debian-virt.md Raw

Install HestiaCP on debian 12

Update root password

passwd

Update system

apt update && apt upgrade -yy && apt dist-upgrade -yy && sleep 5 && reboot

Install Packages

apt install -yy curl wget vim-nox

Install Docker

curl -q -LSsf https://get.docker.com | bash && usermod -aG docker $USER

Setup incus

Ipstall apt key

curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc

Create repo file

cat <<EOF | tee /etc/apt/sources.list.d/incus.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
 
EOF

Install packages

apt update
apt install --ignore-missing -yy incus incus-ui-canonical btrfs-progs

Add user to incus group

usermod -a -G incus-admin $USER && reboot

Init incus

incus admin init

Install libvirt/qemu

if grep -q -iE 'vmx|svm' /proc/cpuinfo; then
apt install --ignore-missing -yy qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon python3 python3-pip && \
  systemctl enable libvirtd
fi

Add user to kvm groups

for group in libvirt kvm libvirt-qemu;do 
  usermod -a -G $group $USER
done && sleep 5 && reboot

Setup networking

sudo virsh net-start default
sudo virsh net-autostart default