From e9a2a836de75220a967ebcabbc812b1746a8d990 Mon Sep 17 00:00:00 2001 From: colben Date: Sun, 5 Jan 2025 21:55:11 +0800 Subject: [PATCH] update --- content/post/incus-install.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/post/incus-install.md b/content/post/incus-install.md index 8b6a78e..00878fc 100644 --- a/content/post/incus-install.md +++ b/content/post/incus-install.md @@ -79,7 +79,7 @@ categories: ["kvm", "container"] # 卸载自带的 qemu 包 yum remove qemu-img qemu-kvm-common qemu-kvm-core # 安装完整的 qemu 环境 - curl -LO curl -LO https://mirror.ghettoforge.org/distributions/gf/el/9/gf/x86_64/gf-release-9-13.gf.el9.noarch.rpm + curl -LO https://mirror.ghettoforge.org/distributions/gf/el/9/gf/x86_64/gf-release-9-13.gf.el9.noarch.rpm rpm -ivh gf-release-9-13.gf.el9.noarch.rpm dnf --enablerepo=gf install qemu-system-x86 ``` @@ -97,7 +97,8 @@ categories: ["kvm", "container"] - 增加清华 lxc 镜像源 ```BASH - incus remote add tuna https://mirrors.tuna.tsinghua.edu.cn/lxc-images/ --protocol=simplestreams --public + incus remote add tuna https://mirrors.tuna.tsinghua.edu.cn/lxc-images/ \ + --protocol=simplestreams --public incus remote list # 查看镜像源 ``` @@ -265,7 +266,8 @@ incus3 | eth0: 192.168.1.3 | 10.10.10.3 | Rocky9 | /dev/sdb | 10.10.10.3 incus - 拉取 alpine lxc 镜像,与单机环境对应操作一样 - 在 incus2 节点中启动一个系统级容器 alpine-lxc ```BASH - incus launch local:alpine/3.21 alpine-lxc --network incusbr --storage pool1 --target incus2 + incus launch local:alpine/3.21 alpine-lxc \ + --network incusbr --storage pool1 --target incus2 ``` - 进入 alpine-lxc,配置网络