24 lines
839 B
Markdown
24 lines
839 B
Markdown
# 準備
|
||
## 安裝 incus
|
||
根據 https://linuxcontainers.org/incus/docs/main/installing/#installing 的說明,Ubuntu 22.04 還沒辦法使用 apt 來安裝,因此依照 https://github.com/zabbly/incus 的說明來安裝:
|
||
```shell
|
||
curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint
|
||
mkdir -p /etc/apt/keyrings/
|
||
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
|
||
|
||
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
|
||
Enabled: yes
|
||
Types: deb
|
||
URIs: https://pkgs.zabbly.com/incus/stable
|
||
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
|
||
Components: main
|
||
Architectures: $(dpkg --print-architecture)
|
||
Signed-By: /etc/apt/keyrings/zabbly.asc
|
||
EOF'
|
||
|
||
apt-get update
|
||
apt-get install incus
|
||
incus config set core.https_address :8443
|
||
```
|
||
|
||
最後一行是打開 incus 的 port。 |