Last active 1747670022

jason's Avatar jason revised this gist 1747663214. Go to revision

1 file changed, 2 insertions, 2 deletions

debian-virt.md

@@ -30,7 +30,7 @@ EOF
30 30
31 31 ```shell
32 32 apt update
33 - apt install -yy incus incus-ui-canonical btrfs-progs
33 + apt install --ignore-missing -yy incus incus-ui-canonical btrfs-progs
34 34 ```
35 35
36 36 ## Add user to incus group
@@ -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 -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 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 ```

jason's Avatar jason revised this gist 1747661118. Go to revision

1 file changed, 1 insertion, 1 deletion

debian-virt.md

@@ -1,7 +1,7 @@
1 1 # Install Docker
2 2
3 3 ```shell
4 - curl -q -LSsf https://get.docker.com | bash
4 + curl -q -LSsf https://get.docker.com | bash && usermod -aG docker $USER
5 5 ```
6 6
7 7 # Setup incus

jason's Avatar jason revised this gist 1747661098. Go to revision

1 file changed, 6 insertions

debian-virt.md

@@ -1,3 +1,9 @@
1 + # Install Docker
2 +
3 + ```shell
4 + curl -q -LSsf https://get.docker.com | bash
5 + ```
6 +
1 7 # Setup incus
2 8
3 9 ## Ipstall apt key

jason's Avatar jason revised this gist 1747659578. Go to revision

1 file changed, 64 insertions

debian-virt.md(file created)

@@ -0,0 +1,64 @@
1 + # Setup incus
2 +
3 + ## Ipstall apt key
4 + ```shell
5 + curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
6 + ```
7 +
8 + ## Create repo file
9 +
10 + ```shell
11 + cat <<EOF | tee /etc/apt/sources.list.d/incus.sources
12 + Enabled: yes
13 + Types: deb
14 + URIs: https://pkgs.zabbly.com/incus/stable
15 + Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
16 + Components: main
17 + Architectures: $(dpkg --print-architecture)
18 + Signed-By: /etc/apt/keyrings/zabbly.asc
19 +
20 + EOF
21 + ```
22 +
23 + ## Install packages
24 +
25 + ```shell
26 + apt update
27 + apt install -yy incus incus-ui-canonical btrfs-progs
28 + ```
29 +
30 + ## Add user to incus group
31 +
32 + ```shell
33 + usermod -a -G incus-admin $USER && reboot
34 + ```
35 +
36 + ## Init incus
37 +
38 + ```shell
39 + incus admin init
40 + ```
41 +
42 + ---
43 +
44 + # Install libvirt/qemu
45 +
46 + ```shell
47 + if grep -q -iE 'vmx|svm' /proc/cpuinfo; then
48 + apt install -yy qemu qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon python3 python3-pip && \
49 + systemctl enable libvirtd
50 + fi
51 + ```
52 +
53 + ## Setup networking
54 +
55 + ```shell
56 + sudo virsh net-start default
57 + sudo virsh net-autostart default
58 + ```
59 +
60 + ## Add user to kvm groups
61 +
62 + ```shell
63 + usermod -aG libvirt,kvm,libvirt-qemu,input,disk $USER
64 + ```
Newer Older