This commit is contained in:
colben 2025-01-05 21:55:11 +08:00
parent 38eaf9e74b
commit e9a2a836de

View File

@ -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配置网络