jason revised this gist 8 months ago. Go to revision
1 file changed, 1 insertion, 1 deletion
debian-virt.md
| @@ -12,7 +12,7 @@ apt update && apt upgrade -yy && apt dist-upgrade -yy && sleep 5 && reboot | |||
| 12 | 12 | # Install Packages | |
| 13 | 13 | ||
| 14 | 14 | ```shell | |
| 15 | - | apt install -yy curl wget vim-nox | |
| 15 | + | apt install -yy curl wget git vim-nox | |
| 16 | 16 | ``` | |
| 17 | 17 | ||
| 18 | 18 | # Install Docker | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 10 insertions, 4 deletions
debian-virt.md
| @@ -3,13 +3,13 @@ | |||
| 3 | 3 | passwd | |
| 4 | 4 | ``` | |
| 5 | 5 | ||
| 6 | - | ## Update system | |
| 6 | + | # Update system | |
| 7 | 7 | ||
| 8 | 8 | ```shell | |
| 9 | 9 | apt update && apt upgrade -yy && apt dist-upgrade -yy && sleep 5 && reboot | |
| 10 | 10 | ``` | |
| 11 | 11 | ||
| 12 | - | ## Install Packages | |
| 12 | + | # Install Packages | |
| 13 | 13 | ||
| 14 | 14 | ```shell | |
| 15 | 15 | apt install -yy curl wget vim-nox | |
| @@ -18,7 +18,13 @@ apt install -yy curl wget vim-nox | |||
| 18 | 18 | # Install Docker | |
| 19 | 19 | ||
| 20 | 20 | ```shell | |
| 21 | - | curl -q -LSsf https://get.docker.com | bash | |
| 21 | + | curl -q -LSsf https://get.docker.com | bash | |
| 22 | + | ||
| 23 | + | ``` | |
| 24 | + | ||
| 25 | + | ## Add user to docker group | |
| 26 | + | ||
| 27 | + | ```shell | |
| 22 | 28 | usermod -aG docker $USER | |
| 23 | 29 | ``` | |
| 24 | 30 | ||
| @@ -54,7 +60,7 @@ apt install --ignore-missing -yy incus incus-ui-canonical btrfs-progs | |||
| 54 | 60 | ## Add user to incus group | |
| 55 | 61 | ||
| 56 | 62 | ```shell | |
| 57 | - | usermod -a -G incus-admin $USER && reboot | |
| 63 | + | usermod -a -G incus-admin $USER | |
| 58 | 64 | ``` | |
| 59 | 65 | ||
| 60 | 66 | ## Init incus | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 2 insertions, 1 deletion
debian-virt.md
| @@ -18,7 +18,8 @@ apt install -yy curl wget vim-nox | |||
| 18 | 18 | # Install Docker | |
| 19 | 19 | ||
| 20 | 20 | ```shell | |
| 21 | - | curl -q -LSsf https://get.docker.com | bash && usermod -aG docker $USER | |
| 21 | + | curl -q -LSsf https://get.docker.com | bash | |
| 22 | + | usermod -aG docker $USER | |
| 22 | 23 | ``` | |
| 23 | 24 | ||
| 24 | 25 | # Setup incus | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 2 deletions
debian-virt.md
| @@ -1,5 +1,3 @@ | |||
| 1 | - | # Install HestiaCP on debian 12 | |
| 2 | - | ||
| 3 | 1 | ## Update root password | |
| 4 | 2 | ```shell | |
| 5 | 3 | passwd | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 19 insertions
debian-virt.md
| @@ -1,3 +1,22 @@ | |||
| 1 | + | # Install HestiaCP on debian 12 | |
| 2 | + | ||
| 3 | + | ## Update root password | |
| 4 | + | ```shell | |
| 5 | + | passwd | |
| 6 | + | ``` | |
| 7 | + | ||
| 8 | + | ## Update system | |
| 9 | + | ||
| 10 | + | ```shell | |
| 11 | + | apt update && apt upgrade -yy && apt dist-upgrade -yy && sleep 5 && reboot | |
| 12 | + | ``` | |
| 13 | + | ||
| 14 | + | ## Install Packages | |
| 15 | + | ||
| 16 | + | ```shell | |
| 17 | + | apt install -yy curl wget vim-nox | |
| 18 | + | ``` | |
| 19 | + | ||
| 1 | 20 | # Install Docker | |
| 2 | 21 | ||
| 3 | 22 | ```shell | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 3 insertions, 1 deletion
debian-virt.md
| @@ -59,7 +59,9 @@ fi | |||
| 59 | 59 | ## Add user to kvm groups | |
| 60 | 60 | ||
| 61 | 61 | ```shell | |
| 62 | - | usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER && sleep 5 && reboot | |
| 62 | + | for group in libvirt kvm libvirt-qemu;do | |
| 63 | + | usermod -a -G $group $USER | |
| 64 | + | done && sleep 5 && reboot | |
| 63 | 65 | ``` | |
| 64 | 66 | ||
| 65 | 67 | ## Setup networking | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 2 insertions, 2 deletions
debian-virt.md
| @@ -56,14 +56,14 @@ apt install --ignore-missing -yy qemu-kvm qemu-system qemu-utils libvirt-clients | |||
| 56 | 56 | fi | |
| 57 | 57 | ``` | |
| 58 | 58 | ||
| 59 | - | ## Setup networking | |
| 60 | - | ||
| 61 | 59 | ## Add user to kvm groups | |
| 62 | 60 | ||
| 63 | 61 | ```shell | |
| 64 | 62 | usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER && sleep 5 && reboot | |
| 65 | 63 | ``` | |
| 66 | 64 | ||
| 65 | + | ## Setup networking | |
| 66 | + | ||
| 67 | 67 | ```shell | |
| 68 | 68 | sudo virsh net-start default | |
| 69 | 69 | sudo virsh net-autostart default | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 14 deletions
debian-virt.md
| @@ -68,17 +68,3 @@ usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER && sleep 5 && reboot | |||
| 68 | 68 | sudo virsh net-start default | |
| 69 | 69 | sudo virsh net-autostart default | |
| 70 | 70 | ``` | |
| 71 | - | ||
| 72 | - | ## WebUI | |
| 73 | - | ||
| 74 | - | ```shell | |
| 75 | - | apt install -y python3-pip pkg-config libnl-route-3-dev | |
| 76 | - | pip3 install -r https://raw.githubusercontent.com/kimchi-project/kimchi/master/requirements-UBUNTU.txt | |
| 77 | - | ``` | |
| 78 | - | ||
| 79 | - | ```shell | |
| 80 | - | curl -q -LSsf https://github.com/kimchi-project/wok/releases/download/3.0.0/wok-3.0.0-0.debian.noarch.deb -o /tmp/wok.deb | |
| 81 | - | curl -q -LSsf https://github.com/kimchi-project/kimchi/releases/download/3.0.0/kimchi-3.0.0-0.noarch.deb -o /tmp/kimchi.deb | |
| 82 | - | apt install -y /tmp/wok.deb /tmp/kimchi.deb | |
| 83 | - | ``` | |
| 84 | - | ||
jason revised this gist 8 months ago. Go to revision
1 file changed, 5 insertions, 5 deletions
debian-virt.md
| @@ -58,15 +58,15 @@ fi | |||
| 58 | 58 | ||
| 59 | 59 | ## Setup networking | |
| 60 | 60 | ||
| 61 | + | ## Add user to kvm groups | |
| 62 | + | ||
| 61 | 63 | ```shell | |
| 62 | - | sudo virsh net-start default | |
| 63 | - | sudo virsh net-autostart default | |
| 64 | + | usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER && sleep 5 && reboot | |
| 64 | 65 | ``` | |
| 65 | 66 | ||
| 66 | - | ## Add user to kvm groups | |
| 67 | - | ||
| 68 | 67 | ```shell | |
| 69 | - | usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER | |
| 68 | + | sudo virsh net-start default | |
| 69 | + | sudo virsh net-autostart default | |
| 70 | 70 | ``` | |
| 71 | 71 | ||
| 72 | 72 | ## WebUI | |
jason revised this gist 8 months ago. Go to revision
1 file changed, 16 insertions, 2 deletions
debian-virt.md
| @@ -51,7 +51,7 @@ incus admin init | |||
| 51 | 51 | ||
| 52 | 52 | ```shell | |
| 53 | 53 | if grep -q -iE 'vmx|svm' /proc/cpuinfo; then | |
| 54 | - | apt install --ignore-missing -yy qemu qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon python3 python3-pip && \ | |
| 54 | + | apt install --ignore-missing -yy qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon python3 python3-pip && \ | |
| 55 | 55 | systemctl enable libvirtd | |
| 56 | 56 | fi | |
| 57 | 57 | ``` | |
| @@ -67,4 +67,18 @@ sudo virsh net-autostart default | |||
| 67 | 67 | ||
| 68 | 68 | ```shell | |
| 69 | 69 | usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER | |
| 70 | - | ``` | |
| 70 | + | ``` | |
| 71 | + | ||
| 72 | + | ## WebUI | |
| 73 | + | ||
| 74 | + | ```shell | |
| 75 | + | apt install -y python3-pip pkg-config libnl-route-3-dev | |
| 76 | + | pip3 install -r https://raw.githubusercontent.com/kimchi-project/kimchi/master/requirements-UBUNTU.txt | |
| 77 | + | ``` | |
| 78 | + | ||
| 79 | + | ```shell | |
| 80 | + | curl -q -LSsf https://github.com/kimchi-project/wok/releases/download/3.0.0/wok-3.0.0-0.debian.noarch.deb -o /tmp/wok.deb | |
| 81 | + | curl -q -LSsf https://github.com/kimchi-project/kimchi/releases/download/3.0.0/kimchi-3.0.0-0.noarch.deb -o /tmp/kimchi.deb | |
| 82 | + | apt install -y /tmp/wok.deb /tmp/kimchi.deb | |
| 83 | + | ``` | |
| 84 | + | ||