Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| virtualization:lxd:install-incus [2026/09/27 18:32] – 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 << | sh -c 'cat << | ||
| Line 46: | Line 27: | ||
| </ | </ | ||
| - | ===== 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 | ||
| </ | </ | ||
| - | + | My Prefer Configuration: | |
| - | ===== 6. Install Incus UI (incus-ui-canonical) | + | {{ : |
| + | ===== 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: | + | |
| < | < | ||
| - | incus config set core.https_address :8443 | + | # Spesifik address |
| + | incus config set core.https_address=10.14.3.1: | ||
| + | # Any Address (Not Recomended) | ||
| + | incus config set core.https_address=0.0.0.0:8443 | ||
| </ | </ | ||
| + | Sekarang Incus UI dapat diakses di browser dengan address dari server (contoh, https:// | ||
| - | ===== 8. Akses UI ===== | + | {{ :virtualization:lxd:screenshot_2026-09-27_19-01-01.png?nolink& |
| - | + | ||
| - | Buka browser ke: | + | |
| - | + | ||
| - | < | + | |
| - | 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/ | + | |
| - | + | ||
| - | ===== 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, | + | |
| - | * 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. | + | |