virtualization:lxd:install-incus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
virtualization:lxd:install-incus [2026/09/27 18:26] – created ilyasavirtualization:lxd:install-incus [2026/09/28 02:47] (current) – ilyasa
Line 1: Line 1:
-====== Instalasi Incus (Repo Zabbly) ====== +{{indexmenu_n> 0002}} 
- +====== Installasi Incus ======
-Semua perintah dijalankan sebagai root. +
- +
-===== 1. Cek OS yang Didukung ===== +
- +
-Paket tersedia untuk: Ubuntu 22.04/24.04/26.04, Debian 12/13 (amd64 & arm64). +
- +
-===== 2. Import Repository Key ===== +
- +
-Cek fingerprint key dulu:+
  
 +===== Import Repository Key =====
 +Cek fingerprint key dulu, harus sama dengan 4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD
 +<code>
 curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint
- +</code> 
-Fingerprint yang benar: 4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD +<code>
- +
-Buat folder keyrings: +
 mkdir -p /etc/apt/keyrings/ mkdir -p /etc/apt/keyrings/
- 
-Simpan key: 
- 
 curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
 +</code>
  
-===== 3. Tambah Repository ===== +===== Tambah Repository ===== 
- +Pilih channel stable (bisa juga lts-6.0, lts-7.0, atau daily) 
-Pilih salah satu channel: lts-6.0, lts-7.0, stable, atau daily. Contoh pakai stable: +<code> 
- +sh -c 'cat <<REPOEOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
-sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources+
 Enabled: yes Enabled: yes
 Types: deb Types: deb
Line 36: Line 24:
 Signed-By: /etc/apt/keyrings/zabbly.asc Signed-By: /etc/apt/keyrings/zabbly.asc
  
-EOF' +REPOEOF' 
- +</code>
-===== 4. Update & Install Incus =====+
  
 +===== Install Incus =====
 +<code>
 apt-get update apt-get update
- 
 apt-get install incus apt-get install incus
 +</code>
  
-===== 5. Inisialisasi Incus ===== +===== Inisialisasi Incus ===== 
 +<code>
 incus admin init incus admin init
- +</code> 
-===== 6. Install Incus UI (incus-ui-canonical) ===== +My Prefer Configuration: 
 +{{ :virtualization:lxd:incus-config-init.png?nolink&700 |}} 
 +===== Install Incus UI ===== 
 +<code>
 apt-get install incus-ui-canonical apt-get install incus-ui-canonical
 +</code>
  
-===== 7. Aktifkan Network Listener untuk UI ===== +===== Konfigurasi Incus UI ===== 
- +Cari interface yang ingin diexpose atau kalau tidak peduli dengan security anda bisa expose dengan any address 
-Agar UI bisa diakses, Incus harus listen di network. Bisa diaktifkan saat incus admin init, atau manual: +<code> 
- +# Spesifik address 
-incus config set core.https_address :8443 +incus config set core.https_address=10.14.3.1:8443 
- +# Any Address (Not Recomended) 
-===== 8. Akses UI ===== +incus config set core.https_address=0.0.0.0:8443 
- +</code> 
-Buka browser ke: +Sekarang Incus UI dapat diakses di browser dengan address dari server (contoh, https://10.14.3.1:8443). Ikuti instruksi untuk menambah ca certificate sesuai browser yang anda gunakan.
- +
-https://localhost:8443 +
- +
-Terima sertifikat self-signed, lalu ikuti proses login. +
- +
-===== Catatan Paket ===== +
- +
-- incus-client: paket berisi CLI saja, untuk mengelola remote server. +
-- incus-ui-canonical: versi re-branded dari LXD UI, dokumentasi tambahan bisa dilihat di dokumentasi LXD terkait akses UI. +
- +
- +
-====== Setup Storage Pool ====== +
- +
-Storage pool wajib ada. Tanpa storage, Incus tidak bisa membuat container/VM karena root disk instance disimpan di situ. +
- +
-===== Kapan Diatur ===== +
- +
-Storage pool otomatis ditanyakan saat menjalankan: +
- +
-incus admin init +
- +
-Pertanyaan yang muncul saat interaktif: +
-- Create a new storage pool? -> yes +
-- Name of storage pool -> default: default +
-- Storage backend -> pilihan: dir, btrfs, zfs, lvm +
- +
-===== Rekomendasi Backend ===== +
- +
-- zfs atau btrfs: direkomendasikan (mendukung snapshot, copy-on-write, lebih cepat). +
-- dir: paling simpel, tapi tidak efisien (tanpa snapshot cepat, tanpa dedup). +
-- lvm: cocok kalau sudah pakai LVM di server. +
- +
-===== Setup Manual (kalau skip saat init) ===== +
- +
-Buat storage pool manual, misal pakai direktori: +
- +
-incus storage create default dir +
- +
-Atau pakai ZFS (butuh paket zfsutils-linux): +
- +
-incus storage create default zfs +
- +
-Cek storage pool yang ada: +
- +
-incus storage list +
- +
-===== Untuk Kasus TA (Proxmox VE + Triple Play) =====+
  
-Kalau Incus ini dipakai di dalam VM Proxmox untuk lab FTTH/Triple Play, storage backend zfs biasanya paling pas kalau disk VM cukup besar dan butuh snapshot cepat untuk rollback saat testing konfigurasi VoIP/IPTV.+{{ :virtualization:lxd:screenshot_2026-09-27_19-01-01.png?nolink&600 |}}
  • virtualization/lxd/install-incus.1790508394.txt.gz
  • Last modified: 2026/10/08 04:33
  • (external edit)