From 234a8154c5dc6cbf1bbf0da0d269eae5bf7d1e57 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Sat, 30 Mar 2024 22:32:00 +0800 Subject: [PATCH] vault backup: 2024-03-30 22:32:00 --- 05. 資料收集/Linux/lxc.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/05. 資料收集/Linux/lxc.md b/05. 資料收集/Linux/lxc.md index cbe9b42..3ed8166 100644 --- a/05. 資料收集/Linux/lxc.md +++ b/05. 資料收集/Linux/lxc.md @@ -18,8 +18,26 @@ EOF' sudo apt update sudo apt install incus -incus config set core.https_address :8443 ``` ## 設定 incus 使用 `sudo incus admin init` 來設定,會問一堆問題,如下: +``` +Would you like to use clustering? (yes/no) [default=no]: +Do you want to configure a new storage pool? (yes/no) [default=yes]: no +Would you like to create a new local network bridge? (yes/no) [default=yes]: no +Would you like to use an existing bridge or host interface? (yes/no) [default=no]: yes +Name of the existing bridge or host interface: enp3s0 +Would you like the server to be available over the network? (yes/no) [default=no]: yes +Address to bind to (not including port) [default=all]: +Port to bind to [default=8443]: +Would you like stale cached images to be updated automatically? (yes/no) [default=yes]: +Would you like a YAML "init" preseed to be printed? (yes/no) [default=no]: +``` + +大部分都預設就可以。 + +## 建立 pool +```shell +sudo incus storage create vmpool dir source=/lvm1/lxd_storage +``` \ No newline at end of file