Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| virtualization:lxd:install-incus [2026/09/27 18:26] – created ilyasa | virtualization:lxd:install-incus [2026/09/28 02:47] (current) – ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | {{indexmenu_n> |
| - | + | ====== | |
| - | Semua perintah dijalankan sebagai root. | + | |
| - | + | ||
| - | ===== 1. Cek OS yang Didukung ===== | + | |
| - | + | ||
| - | Paket tersedia untuk: Ubuntu 22.04/ | + | |
| - | + | ||
| - | ===== 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 | ||
| + | < | ||
| curl -fsSL https:// | curl -fsSL https:// | ||
| - | + | </ | |
| - | Fingerprint yang benar: 4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD | + | < |
| - | + | ||
| - | Buat folder keyrings: | + | |
| mkdir -p / | mkdir -p / | ||
| - | |||
| - | Simpan key: | ||
| - | |||
| curl -fsSL https:// | curl -fsSL https:// | ||
| + | </ | ||
| - | ===== 3. Tambah Repository ===== | + | ===== Tambah Repository ===== |
| - | + | Pilih channel | |
| - | Pilih salah satu channel: lts-6.0, lts-7.0, stable, atau daily. Contoh pakai stable: | + | < |
| - | + | sh -c 'cat <<REPOEOF | |
| - | sh -c 'cat <<EOF > / | + | |
| Enabled: yes | Enabled: yes | ||
| Types: deb | Types: deb | ||
| Line 36: | Line 24: | ||
| Signed-By: / | Signed-By: / | ||
| - | EOF' | + | REPOEOF' |
| - | + | </ | |
| - | ===== 4. Update & Install Incus ===== | + | |
| + | ===== Install Incus ===== | ||
| + | < | ||
| apt-get update | apt-get update | ||
| - | |||
| apt-get install incus | apt-get install incus | ||
| + | </ | ||
| - | ===== 5. Inisialisasi Incus ===== | + | ===== Inisialisasi Incus ===== |
| + | < | ||
| incus admin init | incus admin init | ||
| - | + | </ | |
| - | ===== 6. Install Incus UI (incus-ui-canonical) | + | My Prefer Configuration: |
| + | {{ : | ||
| + | ===== Install Incus UI ===== | ||
| + | < | ||
| apt-get install incus-ui-canonical | apt-get install incus-ui-canonical | ||
| + | </ | ||
| - | ===== 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: | + | < |
| - | + | # Spesifik address | |
| - | incus config set core.https_address | + | 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 |
| - | + | ||
| - | https:// | + | |
| - | + | ||
| - | Terima sertifikat self-signed, | + | |
| - | + | ||
| - | ===== Catatan Paket ===== | + | |
| - | + | ||
| - | - incus-client: | + | |
| - | - incus-ui-canonical: | + | |
| - | + | ||
| - | + | ||
| - | ====== Setup Storage Pool ====== | + | |
| - | + | ||
| - | Storage pool wajib ada. Tanpa storage, Incus tidak bisa membuat container/ | + | |
| - | + | ||
| - | ===== 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 | + | |
| - | - 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. | + | {{ : |